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