blob: 50bbbef7b939f31bd576822fec6d5cde760a91c0 [file] [log] [blame]
pierventre4a959602020-11-02 14:46:19 +01001# tost-onos docker image building + aether publishing tasks
2
3- job-template:
4 id: tost-onos-docker-publish
5 name: 'tost-onos-docker-publish{name-extension}'
6 disabled: '{disable-job}'
7 description: |
8 Created by {id} job-template from ci-management/jjb/tost-onos-jobs.yaml, script pipeline/tost-onos-publish.groovy<br/>
9 Runs docker-build with the following env. variables - '{extraEnvironmentVars}' and then publish the image on {docker-registry}/{docker-repo}. <br/>
10 Triggered also nightly. <br/>
11
12 triggers:
13 - onf-infra-gerrit-trigger-merge:
14 gerrit-server-name: '{gerrit-server-name}'
15 project-regexp: '{project}'
16 branch-regexp: '{branch-regexp}'
17 file-include-regexp: '{all-files-regexp}'
18 dependency-jobs: '{dependency-jobs}'
19 - timed: "@midnight"
20
21 properties:
22 - onf-infra-onfstaff-private:
23 - onf-infra-properties:
24 build-days-to-keep: '{build-days-to-keep}'
25 artifact-num-to-keep: '{artifact-num-to-keep}'
26
27 wrappers:
28 - lf-infra-wrappers:
29 build-timeout: '{build-timeout}'
30 jenkins-ssh-credential: '{jenkins-ssh-credential}'
31
32 parameters:
33 - string:
34 name: buildNode
35 default: '{bigger-build-node}'
36 description: 'Name of the Jenkins build executor to run the job on'
37
38 - string:
39 name: gitUrl
40 default: '$GIT_URL/$GERRIT_PROJECT'
41 description: 'URL to the git repo'
42
43 - string:
44 name: GERRIT_PATCHSET_REVISION
45 default: 'master'
46 description: 'git ref to build (commit hash or tag)'
47
48 - string:
49 name: GERRIT_REFSPEC
50 default: 'refs/heads/master'
51 description: 'git refSpec to build (refs/changes/)'
52
53 - string:
54 name: GERRIT_PROJECT
55 default: 'tost-onos'
56 description: 'Name of the project in Gerrit'
57
58 - string:
59 name: GERRIT_BRANCH
60 default: 'master'
61 description: 'Branch of the project in Gerrit'
62
63 - string:
64 name: dockerRepo
65 default: '{docker-repo}'
66 description: "Docker repository to push to ('onosproject', etc.)"
67
68 - string:
69 name: dockerRegistry
70 default: '{docker-registry}'
71 description: "Docker registry to push to (blank for DockerHub)"
72
73 # AWS CPU arch names: `x86_64` `arm64` (which don't align to vendor names... *sigh*)
74 - string:
75 name: dockerArchList
76 default: 'x86_64'
77 description: "List of architectures to build containers on, pipe separated (nonfunctional currently)"
78
79 - string:
80 name: maintainers
81 default: '{maintainers}'
82 description: "The person that should be notified if this job fails"
83
84 - string:
85 name: extraEnvironmentVars
86 default: '{extraEnvironmentVars}'
87 description: "Provide extra environment variables to the build"
88
89 project-type: pipeline
90 concurrent: true
91 extraEnvironmentVars: ""
92 sandbox: true
93
94 dsl: !include-raw-escape: ../pipeline/tost-onos-publish.groovy