2 name: 'daisy4nfv-merge-jobs'
5 #####################################
7 #####################################
13 #####################################
15 #####################################
18 slave-label: 'opnfv-build-centos'
20 slave-label: 'opnfv-build-centos'
22 slave-label: 'opnfv-build-centos'
24 slave-label: 'opnfv-build-centos'
26 slave-label: 'opnfv-build-centos'
27 #####################################
29 #####################################
31 - 'daisy4nfv-merge-{stream}'
32 - 'daisy4nfv-merge-{phase}-{stream}'
33 #####################################
35 #####################################
37 name: 'daisy4nfv-merge-{stream}'
39 project-type: multijob
53 credentials-id: '{ssh-credentials}'
54 refspec: '$GERRIT_REFSPEC'
55 choosing-strategy: 'gerrit'
58 - ssh-agent-credentials:
67 server-name: 'gerrit.opnfv.org'
70 - comment-added-contains-event:
71 comment-contains-value: 'remerge'
73 - project-compare-type: 'ANT'
74 project-pattern: '{project}'
76 - branch-compare-type: 'ANT'
77 branch-pattern: '**/{branch}'
80 pattern: 'docs/**|.gitignore'
81 readable-message: true
88 - 'opnfv-build-defaults'
89 - 'daisy4nfv-merge-defaults':
90 gs-pathname: '{gs-pathname}'
94 description: "Built on $NODE_NAME"
99 - name: 'daisy4nfv-merge-basic-{stream}'
100 current-parameters: false
101 predefined-parameters: |
102 GERRIT_BRANCH=$GERRIT_BRANCH
103 GERRIT_REFSPEC=$GERRIT_REFSPEC
104 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
105 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
106 node-parameters: false
107 kill-phase-on: FAILURE
111 condition: SUCCESSFUL
113 - name: 'daisy4nfv-merge-build-{stream}'
114 current-parameters: false
115 predefined-parameters: |
116 GERRIT_BRANCH=$GERRIT_BRANCH
117 GERRIT_REFSPEC=$GERRIT_REFSPEC
118 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
119 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
120 node-parameters: false
121 kill-phase-on: FAILURE
125 condition: SUCCESSFUL
127 - name: 'daisy4nfv-merge-deploy-virtual-{stream}'
128 current-parameters: false
129 predefined-parameters: |
130 GERRIT_BRANCH=$GERRIT_BRANCH
131 GERRIT_REFSPEC=$GERRIT_REFSPEC
132 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
133 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
134 node-parameters: false
135 kill-phase-on: FAILURE
139 condition: SUCCESSFUL
141 - name: 'daisy4nfv-merge-smoke-test-{stream}'
142 current-parameters: false
143 predefined-parameters: |
144 GERRIT_BRANCH=$GERRIT_BRANCH
145 GERRIT_REFSPEC=$GERRIT_REFSPEC
146 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
147 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
148 node-parameters: false
149 kill-phase-on: FAILURE
153 condition: SUCCESSFUL
155 - name: 'daisy4nfv-merge-promote-{stream}'
156 current-parameters: false
157 predefined-parameters: |
158 GERRIT_BRANCH=$GERRIT_BRANCH
159 GERRIT_REFSPEC=$GERRIT_REFSPEC
160 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
161 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
162 node-parameters: false
163 kill-phase-on: FAILURE
167 name: 'daisy4nfv-merge-{phase}-{stream}'
169 disabled: '{obj:disabled}'
179 use-build-blocker: true
181 - 'daisy4nfv-merge-deploy-.*'
182 - 'daisy4nfv-merge-test-.*'
186 - gerrit-trigger-scm:
187 credentials-id: '{ssh-credentials}'
188 refspec: '$GERRIT_REFSPEC'
189 choosing-strategy: 'gerrit'
192 - ssh-agent-credentials:
194 - '{ssh-credentials}'
204 - '{slave-label}-defaults'
205 - 'daisy4nfv-merge-defaults':
206 gs-pathname: '{gs-pathname}'
209 - description-setter:
210 description: "Built on $NODE_NAME"
211 - '{project}-merge-{phase}-macro'
212 #####################################
214 #####################################
216 name: 'daisy-merge-basic-macro'
219 !include-raw: ./daisy4nfv-basic.sh
222 name: 'daisy-merge-build-macro'
226 - ./daisy4nfv-build.sh
227 - ./daisy4nfv-upload-artifact.sh
228 - ./daisy4nfv-workspace-cleanup.sh
231 name: 'daisy-merge-deploy-virtual-macro'
235 - ./daisy4nfv-download-artifact.sh
236 - ./daisy4nfv-virtual-deploy.sh
237 - ./daisy4nfv-workspace-cleanup.sh
240 name: 'daisy-merge-smoke-test-macro'
245 echo "Not activated!"
248 name: 'daisy-merge-promote-macro'
253 echo "Not activated!"
254 #####################################
256 #####################################
258 name: 'daisy4nfv-merge-defaults'
261 name: BUILD_DIRECTORY
262 default: $WORKSPACE/build_output
263 description: "Directory where the build artifact will be located upon the completion of the build."
265 name: CACHE_DIRECTORY
266 default: $HOME/opnfv/cache/$INSTALLER_TYPE
267 description: "Directory where the cache to be used during the build is located."
270 default: artifacts.opnfv.org/$PROJECT{gs-pathname}
271 description: "URL to Google Storage."