From a4250c50a0dd51a3c1bb89df928ca5604284f4f0 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 d551e9cc7a..bc17d98b02 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"]],