Skip to content

Commit

Permalink
Jenkinsfile: add parameters to allow overriding common.mk options
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
thaJeztah committed Mar 31, 2022
1 parent b742b3a commit a4250c5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@

def branch = env.CHANGE_TARGET ?: env.BRANCH_NAME

properties(
[
parameters([
string(name: 'GO_VERSION', description: 'Version of Go to use to build.'),
string(name: 'DOCKER_CLI_REPO', description: 'Docker CLI git source repository.'),
string(name: 'DOCKER_CLI_REF', description: 'Docker CLI reference to build from (usually a branch).'),
string(name: 'DOCKER_ENGINE_REPO', description: 'Docker Engine git source repository.'),
string(name: 'DOCKER_ENGINE_REF', description: 'Docker Engine reference to build from (usually a branch).'),
string(name: 'DOCKER_SCAN_REPO', description: 'Docker Scan git source repository.'),
string(name: 'DOCKER_SCAN_REF', description: 'Docker Scan reference to build from (usually a branch).'),
string(name: 'DOCKER_COMPOSE_REPO', description: 'Docker Compose git source repository.'),
string(name: 'DOCKER_COMPOSE_REF', description: 'Docker Compose reference to build from (usually a branch).'),
string(name: 'DOCKER_BUILDX_REPO', description: 'Docker Buildx git source repository.'),
string(name: 'DOCKER_BUILDX_REF', description: 'Docker Buildx reference to build from (usually a branch).'),
string(name: 'CONTAINERD_VERSION', description: 'Containerd version to build for the static packages. Leave empty to build the default version as specified in the Dockerfile in moby/moby.'),
string(name: 'RUNC_VERSION', description: 'Runc version to build for the static packages. Leave empty to build the default version as specified in the Dockerfile in moby/moby.'),
])
]
)

def pkgs = [
[target: "centos-7", image: "centos:7", arches: ["amd64", "aarch64"]], // (EOL: June 30, 2024)
[target: "centos-8", image: "quay.io/centos/centos:stream8", arches: ["amd64", "aarch64"]],
Expand Down

0 comments on commit a4250c5

Please sign in to comment.