1 # this is the job configuration for bgs
12 - 'genesis-{installer}-verify'
13 - 'genesis-{installer}-merge'
14 - 'genesis-{installer}-daily-master'
16 # stream: branch with - in place of / (eg. stable-helium)
17 # branch: branch (eg. stable/helium)
24 ########################
26 ########################
29 name: 'genesis-{installer}-verify'
31 project-type: freestyle
38 artifactDaysToKeep: -1
44 default: $WORKSPACE/build_output
47 default: https://gerrit.opnfv.org/gerrit/genesis
55 credentials-id: '{ssh-credentials}'
56 refspec: '$GERRIT_REFSPEC'
57 choosing-strategy: 'gerrit'
60 - ssh-agent-credentials:
61 user: '{ssh-credentials}'
66 - patchset-created-event:
67 exclude-drafts: 'false'
68 exclude-trivial-rebase: 'false'
69 exclude-no-code-change: 'false'
70 - draft-published-event
71 - comment-added-contains-event:
72 comment-contains-value: 'recheck'
73 - comment-added-contains-event:
74 comment-contains-value: 'reverify'
76 - project-compare-type: 'ANT'
77 project-pattern: 'genesis'
79 - branch-compare-type: 'ANT'
80 branch-pattern: '**/master'
85 pattern: '{installer}/**'
89 - '{installer}-verify'
92 name: 'genesis-{installer}-merge'
94 # builder-merge job to run JJB update
96 # This job's purpose is to update all the JJB
98 project-type: freestyle
105 artifactDaysToKeep: -1
110 name: BUILD_DIRECTORY
111 default: $WORKSPACE/build_output
114 default: https://gerrit.opnfv.org/gerrit/genesis
121 - gerrit-trigger-scm:
122 credentials-id: '{ssh-credentials}'
124 choosing-strategy: 'default'
127 - ssh-agent-credentials:
128 user: '{ssh-credentials}'
133 - change-merged-event
134 - comment-added-contains-event:
135 comment-contains-value: 'remerge'
137 - project-compare-type: 'ANT'
138 project-pattern: 'genesis'
140 - branch-compare-type: 'ANT'
141 branch-pattern: '**/master'
146 pattern: '{installer}/**'
149 - '{installer}-merge'
152 name: 'genesis-{installer}-daily-master'
154 project-type: freestyle
160 name: BUILD_DIRECTORY
161 default: $WORKSPACE/build_output
162 description: "Directory where the build artifact will be located upon the completion of the build."
165 default: 'artifacts.opnfv.org/genesis/{installer}'
166 description: "URL to Google Storage."
169 default: '{installer}'
170 description: "Installer to use."
173 default: https://gerrit.opnfv.org/gerrit/genesis
176 default: origin/master
177 description: "Branch to build, deploy and test."
180 default: refs/heads/master
181 description: "Refspec to retrieve."
189 refspec: $GERRIT_REFSPEC
192 - pollscm: '@midnight'
197 artifactDaysToKeep: -1
198 artifactNumToKeep: -1
201 - '{installer}-daily-master'
203 ########################
205 ########################
223 name: foreman-daily-master
240 # set/create the cache location
241 OPNFV_FUEL_CACHE="$(dirname $WORKSPACE)/opnfv_fuel_cache"
242 [[ -d $OPNFV_FUEL_CACHE ]] || mkdir -p $OPNFV_FUEL_CACHE
245 cd $WORKSPACE/fuel/ci
246 ./build.sh -c file://$OPNFV_FUEL_CACHE $BUILD_DIRECTORY
248 # list the build artifacts
249 ls -al $BUILD_DIRECTORY
261 # set/create the cache location
262 OPNFV_FUEL_CACHE="$(dirname $WORKSPACE)/opnfv_fuel_cache"
263 [[ -d $OPNFV_FUEL_CACHE ]] || mkdir -p $OPNFV_FUEL_CACHE
266 cd $WORKSPACE/fuel/ci
267 ./build.sh -c file://$OPNFV_FUEL_CACHE $BUILD_DIRECTORY
269 # list the build artifacts
270 ls -al $BUILD_DIRECTORY
273 name: fuel-daily-master
282 # set/create the cache location
283 OPNFV_FUEL_CACHE="$(dirname $WORKSPACE)/opnfv_fuel_cache"
284 [[ -d $OPNFV_FUEL_CACHE ]] || mkdir -p $OPNFV_FUEL_CACHE
287 cd $WORKSPACE/fuel/ci
288 ./build.sh -f t -v $BUILD_ID -c file://$OPNFV_FUEL_CACHE $BUILD_DIRECTORY
297 # list the build artifacts
298 ls -al $BUILD_DIRECTORY
302 # save information regarding artifact into file
304 echo "OPNFV_GIT_URL=$(git config --get remote.origin.url)"
305 echo "OPNFV_GIT_SHA1=$(git rev-parse HEAD)"
306 echo "OPNFV_ARTIFACT_URL=$GS_URL/opnfv-$BUILD_ID.iso"
307 echo "OPNFV_BUILD_URL=$BUILD_URL"
308 echo "OPNFV_BUILD=OK"
309 ) > opnfv-$BUILD_ID.properties
311 # copy artifact property file as latest.properties
312 # so we can directly get info regarding latest artifact
313 /bin/cp -f opnfv-$BUILD_ID.properties latest.properties
315 # upload artifact and additional files to google storage
316 gsutil cp opnfv-$BUILD_ID.iso gs://$GS_URL/opnfv-$BUILD_ID.iso
317 gsutil cp opnfv-$BUILD_ID.properties gs://$GS_URL/opnfv-$BUILD_ID.properties
318 gsutil cp latest.properties gs://$GS_URL/latest.properties
327 # get the latest.properties file in order to get info regarding latest artifact
328 gsutil cp gs://$GS_URL/latest.properties latest.properties
330 # check if we got the file
331 [[ -f latest.properties ]] || exit 1
333 # source the file so we get OPNFV vars
334 source latest.properties
336 # list OPNFV env vars for info
340 gsutil cp gs://$OPNFV_ARTIFACT_URL $WORKSPACE/opnfv.iso
343 ls -al $WORKSPACE/opnfv.iso
346 name: opensteak-verify
354 name: opensteak-merge
362 name: opensteak-daily-master
385 name: juju-daily-master