Skip to content

Commit 3f0d6de

Browse files
committed
Jenkinsfile: add parameters to allow overriding common.mk options
This allows overriding some of the options in common.mk, for example to test a specific branch or PR that has not yet been merged in upstream. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent b742b3a commit 3f0d6de

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Jenkinsfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,26 @@
22

33
def branch = env.CHANGE_TARGET ?: env.BRANCH_NAME
44

5+
properties(
6+
[
7+
parameters([
8+
string(name: 'GO_VERSION', defaultValue: '', description: 'Version of Go to use to build.'),
9+
string(name: 'DOCKER_CLI_REPO', defaultValue: '', description: 'Docker CLI git source repository.'),
10+
string(name: 'DOCKER_CLI_REF', defaultValue: '', description: 'Docker CLI reference to build from (usually a branch).'),
11+
string(name: 'DOCKER_ENGINE_REPO', defaultValue: '', description: 'Docker Engine git source repository.'),
12+
string(name: 'DOCKER_ENGINE_REF', defaultValue: '', description: 'Docker Engine reference to build from (usually a branch).'),
13+
string(name: 'DOCKER_SCAN_REPO', defaultValue: '', description: 'Docker Scan git source repository.'),
14+
string(name: 'DOCKER_SCAN_REF', defaultValue: '', description: 'Docker Scan reference to build from (usually a branch).'),
15+
string(name: 'DOCKER_COMPOSE_REPO', defaultValue: '', description: 'Docker Compose git source repository.'),
16+
string(name: 'DOCKER_COMPOSE_REF', defaultValue: '', description: 'Docker Compose reference to build from (usually a branch).'),
17+
string(name: 'DOCKER_BUILDX_REPO', defaultValue: '', description: 'Docker Buildx git source repository.'),
18+
string(name: 'DOCKER_BUILDX_REF', defaultValue: '', description: 'Docker Buildx reference to build from (usually a branch).'),
19+
string(name: 'CONTAINERD_VERSION', defaultValue: '', description: 'Containerd version to build for the static packages. Leave empty to build the default version as specified in the Dockerfile in moby/moby.'),
20+
string(name: 'RUNC_VERSION', defaultValue: '', description: 'Runc version to build for the static packages. Leave empty to build the default version as specified in the Dockerfile in moby/moby.'),
21+
])
22+
]
23+
)
24+
525
def pkgs = [
626
[target: "centos-7", image: "centos:7", arches: ["amd64", "aarch64"]], // (EOL: June 30, 2024)
727
[target: "centos-8", image: "quay.io/centos/centos:stream8", arches: ["amd64", "aarch64"]],

0 commit comments

Comments
 (0)