blob: d8b824627ba186428742e7ebfa1bc02cf96b4c29 [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)$'
Zack Williamsb3292082019-10-11 17:15:18 -070012 build-node: 'ubuntu16.04-basebuild-1c-2g'
Andy Bavierc5178522018-12-12 15:36:30 -070013 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:
Zack Williamsb3292082019-10-11 17:15:18 -070041 name: buildNode
42 default: '{build-node}'
Andy Bavierc5178522018-12-12 15:36:30 -070043 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:
Andy Bavierc5178522018-12-12 15:36:30 -070056 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