blob: 148c2286ac8fdce3b7874bd2eb5c33f7ea3bfbc4 [file] [log] [blame]
Zack Williams1e325b22019-07-24 17:52:57 -07001---
2# Github-specific docker image building + dockerhub publishing tasks
3
4- job-template:
5 id: docker-publish-github
6 name: 'docker-publish-github_{project}'
7 description: |
8 Created by {id} job-template from ci-management/jjb/docker-publish.yaml
9
10 properties:
11 - cord-infra-properties:
12 build-days-to-keep: '{build-days-to-keep}'
13 artifact-num-to-keep: '{artifact-num-to-keep}'
14 - github:
15 url: 'https://github.com/{github-organization}/{project}'
16 display-status: 'docker-publish'
17
18 triggers:
You Wangfd869052020-03-13 11:23:11 -070019 - cord-infra-github-pr-trigger-merge:
20 project: '{project}'
Zack Williams1e325b22019-07-24 17:52:57 -070021
22 wrappers:
23 - lf-infra-wrappers:
24 build-timeout: '{build-timeout}'
25 jenkins-ssh-credential: '{jenkins-ssh-credential}'
26
27 parameters:
28 - string:
Zack Williamsb3292082019-10-11 17:15:18 -070029 name: buildNode
Zack Williams1e325b22019-07-24 17:52:57 -070030 default: 'ubuntu16.04-basebuild-1c-2g'
31 description: 'Name of the Jenkins node to run the job on'
32
33 - string:
34 name: gitUrl
35 default: 'https://github.com/{github-organization}/{project}'
36 description: 'URL to the git repo (on github)'
37
38 - string:
39 name: gitRef
40 default: 'master'
41 description: 'git ref to build (commit hash or tag)'
42
43 - string:
44 name: projectName
45 default: '{project}'
46 description: 'Name of the project in the Github Organization'
47
48 - string:
49 name: branchName
50 default: 'master'
51 description: 'Branch of the project - always master in the GitHub case'
52
53 - string:
54 name: dockerRepo
55 default: '{docker-repo}'
56 description: "Docker repository to push to ('opencord', 'xosproject', etc.)"
57
58 - string:
59 name: dockerRegistry
60 default: '{docker-registry}'
61 description: "Docker registry to push to (blank for DockerHub)"
62
63 # AWS CPU arch names: `x86_64` `arm64` (which don't align to vendor names... *sigh*)
64 - string:
65 name: dockerArchList
66 default: 'x86_64'
67 description: "List of architectures to build containers on, pipe separated (nonfunctional currently)"
68
Matteo Scandolo3aba73a2019-09-27 09:03:38 -070069 - string:
70 name: maintainers
71 default: '{maintainers}'
72 description: "The person that sould be notified if this job fails"
73
Zack Williams1e325b22019-07-24 17:52:57 -070074 project-type: pipeline
75 concurrent: true
76
77 dsl: !include-raw-escape: pipeline/docker-publish.groovy