blob: 5df422685f94418a700c80e91847acc4b0b010e9 [file] [log] [blame]
Andy Bavierc5178522018-12-12 15:36:30 -07001---
2# CORD docker image building + dockerhub publishing tasks
3
4- project:
5 name: voltha-publish
6
7 # add repos that have documentation to the project list in both jobs
8 jobs:
9 - 'voltha-publish':
10 project-regexp: 'voltha'
Andy Bavierfb9545e2019-04-24 12:58:43 -070011 branch-regexp: '^(master|voltha-1.6|voltha-1.7)$'
Andy Bavierc5178522018-12-12 15:36:30 -070012 executor-node: 'imagebuilder'
13 dependency-jobs: ''
14
15- job-template:
16 id: voltha-publish
17 name: 'voltha-publish'
18 description: |
19 Created by {id} job-template from ci-management/jjb/voltha-publish.yaml
20
21 triggers:
22 - cord-infra-gerrit-trigger-merge:
23 gerrit-server-name: '{gerrit-server-name}'
24 project-regexp: '{project-regexp}'
25 branch-regexp: '{branch-regexp}'
26 file-include-regexp: '{all-files-regexp}'
27 dependency-jobs: '{dependency-jobs}'
28
29 properties:
30 - cord-infra-properties:
31 build-days-to-keep: '{build-days-to-keep}'
32 artifact-num-to-keep: '{artifact-num-to-keep}'
33
34 wrappers:
35 - lf-infra-wrappers:
36 build-timeout: '{build-timeout}'
37 jenkins-ssh-credential: '{jenkins-ssh-credential}'
38
39 parameters:
40 - string:
41 name: executorNode
42 default: '{executor-node}'
43 description: 'Name of the Jenkins node to run the job on'
44
45 - string:
46 name: manifestUrl
47 default: '{gerrit-server-url}/{cord-repo-manifest}'
48 description: 'URL to the repo manifest'
49
50 - string:
51 name: manifestBranch
52 default: '$GERRIT_BRANCH'
53 description: 'Name of the repo branch to use'
54
55 - string:
56 name: failureEmail
57 default: '{failure-email-address}, $GERRIT_PATCHSET_UPLOADER_EMAIL'
58 description: 'On job failure, send an email to these addresses'
59
60 project-type: pipeline
61 concurrent: false
62
63 dsl: !include-raw-escape: pipeline/voltha-publish.groovy