blob: 1c7d1907e2a3a279ad0094a9c45a7f5761aaf75e [file] [log] [blame]
Zack Williamse16a9bd2019-03-21 23:02:24 -07001---
2# generic docker image building + dockerhub publishing tasks
3
4- job-template:
5 id: docker-publish
6 name: 'docker-publish_{project}'
7 description: |
8 Created by {id} job-template from ci-management/jjb/docker-publish.yaml
9
10 triggers:
11 - cord-infra-gerrit-trigger-merge:
12 gerrit-server-name: '{gerrit-server-name}'
13 project-regexp: '^{project}$'
14 branch-regexp: '{all-branches-regexp}'
15 file-include-regexp: '{all-files-regexp}'
16 dependency-jobs: '{dependency-jobs}'
17
18 properties:
19 - cord-infra-properties:
20 build-days-to-keep: '{build-days-to-keep}'
21 artifact-num-to-keep: '{artifact-num-to-keep}'
22
23 wrappers:
24 - lf-infra-wrappers:
25 build-timeout: '30'
26 jenkins-ssh-credential: '{jenkins-ssh-credential}'
27
28 parameters:
29 - string:
30 name: executorNode
31 default: 'ubuntu16.04-basebuild-1c-2g'
32 description: 'Name of the Jenkins node to run the job on'
33
34 - string:
35 name: gitUrl
36 default: '{gerrit-server-url}/{project}'
37 description: 'URL to the git repo'
38
39 - string:
Zack Williams38126df2019-03-21 23:02:24 -070040 name: gitRef
41 default: '$GERRIT_PATCHSET_REVISION'
42 description: 'git ref to build (commit hash or tag)'
43
44 - string:
Zack Williamse16a9bd2019-03-21 23:02:24 -070045 name: dockerRepo
46 default: '{docker-repo}'
47 description: "Docker repository to push to ('opencord', 'xosproject', etc.)"
48
Zack Williams38126df2019-03-21 23:02:24 -070049 - string:
50 name: dockerRegistry
51 default: '{docker-registry}'
52 description: "Docker registry to push to (blank for DockerHub)"
53
Zack Williamse16a9bd2019-03-21 23:02:24 -070054 # AWS CPU arch names: `x86_64` `arm64` (which don't align to vendor names... *sigh*)
55 - string:
56 name: dockerArchList
57 default: 'x86_64'
58 description: "List of architectures to build containers on, pipe separated (nonfunctional currently)"
59
60 project-type: pipeline
61 concurrent: true
62
63 dsl: !include-raw-escape: pipeline/docker-publish.groovy