blob: f9f878a45daca5fa95362fea7068eeaef5bc645d [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: |
Zack Williamsb3292082019-10-11 17:15:18 -07008 Created by {id} job-template from ci-management/jjb/docker-publish.yaml, script pipeline/docker-publish.groovy
Zack Williamse16a9bd2019-03-21 23:02:24 -07009
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:
Zack Williamsb030c652019-07-29 12:44:12 -070025 build-timeout: '{build-timeout}'
Zack Williamse16a9bd2019-03-21 23:02:24 -070026 jenkins-ssh-credential: '{jenkins-ssh-credential}'
27
28 parameters:
29 - string:
Zack Williamsb3292082019-10-11 17:15:18 -070030 name: buildNode
Zack Williamse16a9bd2019-03-21 23:02:24 -070031 default: 'ubuntu16.04-basebuild-1c-2g'
Zack Williamsb3292082019-10-11 17:15:18 -070032 description: 'Name of the Jenkins build executor to run the job on'
Zack Williamse16a9bd2019-03-21 23:02:24 -070033
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 Williams8d92d6d2019-04-16 18:12:12 -070045 name: projectName
46 default: '$GERRIT_PROJECT'
47 description: 'Name of the project in Gerrit'
48
49 - string:
50 name: branchName
51 default: '$GERRIT_BRANCH'
52 description: 'Branch of the project in Gerrit'
53
54 - string:
Zack Williamse16a9bd2019-03-21 23:02:24 -070055 name: dockerRepo
56 default: '{docker-repo}'
57 description: "Docker repository to push to ('opencord', 'xosproject', etc.)"
58
Zack Williams38126df2019-03-21 23:02:24 -070059 - string:
60 name: dockerRegistry
61 default: '{docker-registry}'
62 description: "Docker registry to push to (blank for DockerHub)"
63
Zack Williamse16a9bd2019-03-21 23:02:24 -070064 # AWS CPU arch names: `x86_64` `arm64` (which don't align to vendor names... *sigh*)
65 - string:
66 name: dockerArchList
67 default: 'x86_64'
68 description: "List of architectures to build containers on, pipe separated (nonfunctional currently)"
69
Matteo Scandolo3aba73a2019-09-27 09:03:38 -070070 - string:
71 name: maintainers
72 default: '{maintainers}'
73 description: "The person that sould be notified if this job fails"
74
Zack Williamse16a9bd2019-03-21 23:02:24 -070075 project-type: pipeline
76 concurrent: true
77
78 dsl: !include-raw-escape: pipeline/docker-publish.groovy