diff options
Diffstat (limited to 'base-images/base-images.jjb')
-rw-r--r-- | base-images/base-images.jjb | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/base-images/base-images.jjb b/base-images/base-images.jjb new file mode 100644 index 0000000..265e644 --- /dev/null +++ b/base-images/base-images.jjb @@ -0,0 +1,54 @@ +- job-template: + name: docker-images/base-images/all + defaults: global + project-type: pipeline + properties: + - inject: + properties-content: | + JOB_DEFINITION_GIT={job-definition-git} + JOB_DEFINITION_GIT_BRANCH={job-definition-git-branch} + pipeline: + script: | + node('docker') {{ + git(url: env.JOB_DEFINITION_GIT, branch: env.JOB_DEFINITION_GIT_BRANCH, poll: false) + load "base-images/base-images-all.jpl" + }} + sandbox: false + +- job-template: + name: docker-images/base-images/{platform}-{arch} + defaults: global + project-type: pipeline + properties: + - inject: + properties-content: | + PLATFORM={platform} + ARCH={arch} + DOCKER_REGISTRY_URI_SCHEME={docker-registry-uri-scheme} + DOCKER_REGISTRY={docker-registry} + DOCKER_REGISTRY_CREDENTIALS={docker-registry-credentials} + JOB_DEFINITION_GIT={job-definition-git} + JOB_DEFINITION_GIT_BRANCH={job-definition-git-branch} + pipeline: + # If we run a pipeline definition directly from SCM, it's always + # sandboxed, which means it can do ~nothing. Work around this by + # loading the script manually. + script: | + node('docker') {{ + git(url: env.JOB_DEFINITION_GIT, branch: env.JOB_DEFINITION_GIT_BRANCH, poll: false) + load "base-images/build-image.jpl" + }} + sandbox: false + +- project: + name: docker-images/base-images + defaults: base-image-axes + jobs: + - docker-images/base-images/{platform}-{arch} + - docker-images/base-images/all + +- defaults: + !include: base-images/base-image-axes.yaml + +- defaults: + !include: defaults.yaml |