From 6ab8e5620470f6d7146bf3464c5a617526ea3622 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 31 Mar 2022 10:56:15 +0200 Subject: [PATCH] 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 --- Jenkinsfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 9581e4f730..4f7f83fede 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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"]],