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:
69 - comment-added-contains-event:
70 comment-contains-value: 'remerge'
72 - project-compare-type: 'ANT'
73 project-pattern: '{project}'
75 - branch-compare-type: 'ANT'
76 branch-pattern: '**/{branch}'
79 pattern: 'docs/**|.gitignore'
80 readable-message: true
87 - 'opnfv-build-defaults'
88 - 'daisy4nfv-merge-defaults':
89 gs-pathname: '{gs-pathname}'
93 description: "Built on $NODE_NAME"
98 - name: 'daisy4nfv-merge-basic-{stream}'
99 current-parameters: false
100 predefined-parameters: |
101 GERRIT_BRANCH=$GERRIT_BRANCH
102 GERRIT_REFSPEC=$GERRIT_REFSPEC
103 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
104 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
105 node-parameters: false
106 kill-phase-on: FAILURE
110 condition: SUCCESSFUL
112 - name: 'daisy4nfv-merge-build-{stream}'
113 current-parameters: false
114 predefined-parameters: |
115 GERRIT_BRANCH=$GERRIT_BRANCH
116 GERRIT_REFSPEC=$GERRIT_REFSPEC
117 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
118 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
119 node-parameters: false
120 kill-phase-on: FAILURE
124 condition: SUCCESSFUL
126 - name: 'daisy4nfv-merge-deploy-virtual-{stream}'
127 current-parameters: false
128 predefined-parameters: |
129 GERRIT_BRANCH=$GERRIT_BRANCH
130 GERRIT_REFSPEC=$GERRIT_REFSPEC
131 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
132 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
133 node-parameters: false
134 kill-phase-on: FAILURE
138 condition: SUCCESSFUL
140 - name: 'daisy4nfv-merge-smoke-test-{stream}'
141 current-parameters: false
142 predefined-parameters: |
143 GERRIT_BRANCH=$GERRIT_BRANCH
144 GERRIT_REFSPEC=$GERRIT_REFSPEC
145 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
146 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
147 node-parameters: false
148 kill-phase-on: FAILURE
152 condition: SUCCESSFUL
154 - name: 'daisy4nfv-merge-promote-{stream}'
155 current-parameters: false
156 predefined-parameters: |
157 GERRIT_BRANCH=$GERRIT_BRANCH
158 GERRIT_REFSPEC=$GERRIT_REFSPEC
159 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
160 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
161 node-parameters: false
162 kill-phase-on: FAILURE
166 name: 'daisy4nfv-merge-{phase}-{stream}'
168 disabled: '{obj:disabled}'
178 use-build-blocker: true
180 - 'daisy4nfv-merge-deploy-.*'
181 - 'daisy4nfv-merge-test-.*'
185 - gerrit-trigger-scm:
186 credentials-id: '{ssh-credentials}'
187 refspec: '$GERRIT_REFSPEC'
188 choosing-strategy: 'gerrit'
191 - ssh-agent-credentials:
193 - '{ssh-credentials}'
203 - '{slave-label}-defaults'
204 - 'daisy4nfv-merge-defaults':
205 gs-pathname: '{gs-pathname}'
208 - description-setter:
209 description: "Built on $NODE_NAME"
210 - '{project}-merge-{phase}-macro'
211 #####################################
213 #####################################
215 name: 'daisy-merge-basic-macro'
218 !include-raw: ./daisy4nfv-basic.sh
221 name: 'daisy-merge-build-macro'
225 - ./daisy4nfv-build.sh
226 - ./daisy4nfv-upload-artifact.sh
227 - ./daisy4nfv-workspace-cleanup.sh
230 name: 'daisy-merge-deploy-virtual-macro'
234 - ./daisy4nfv-download-artifact.sh
235 - ./daisy4nfv-virtual-deploy.sh
236 - ./daisy4nfv-workspace-cleanup.sh
239 name: 'daisy-merge-smoke-test-macro'
244 echo "Not activated!"
247 name: 'daisy-merge-promote-macro'
252 echo "Not activated!"
253 #####################################
255 #####################################
257 name: 'daisy4nfv-merge-defaults'
260 name: BUILD_DIRECTORY
261 default: $WORKSPACE/build_output
262 description: "Directory where the build artifact will be located upon the completion of the build."
264 name: CACHE_DIRECTORY
265 default: $HOME/opnfv/cache/$INSTALLER_TYPE
266 description: "Directory where the cache to be used during the build is located."
269 default: artifacts.opnfv.org/$PROJECT{gs-pathname}
270 description: "URL to Google Storage."