1 # this is the job configuration for bgs
12 - 'genesis-{installer}-verify'
13 - 'genesis-{installer}-merge'
14 - 'genesis-{installer}-daily-{stream}'
15 - 'genesis-build-docs'
17 # stream: branch with - in place of / (eg. stable-helium)
18 # branch: branch (eg. stable/helium)
25 ########################
27 ########################
30 name: 'genesis-{installer}-verify'
32 project-type: freestyle
39 artifactDaysToKeep: -1
45 default: $WORKSPACE/build_output
48 default: https://gerrit.opnfv.org/gerrit/genesis
56 credentials-id: '{ssh-credentials}'
57 refspec: '$GERRIT_REFSPEC'
58 choosing-strategy: 'gerrit'
61 - ssh-agent-credentials:
62 user: '{ssh-credentials}'
67 - patchset-created-event:
68 exclude-drafts: 'false'
69 exclude-trivial-rebase: 'false'
70 exclude-no-code-change: 'false'
71 - draft-published-event
72 - comment-added-contains-event:
73 comment-contains-value: 'recheck'
74 - comment-added-contains-event:
75 comment-contains-value: 'reverify'
77 - project-compare-type: 'ANT'
78 project-pattern: 'genesis'
80 - branch-compare-type: 'ANT'
81 branch-pattern: '**/master'
86 pattern: '{installer}/**'
90 - '{installer}-verify'
93 name: 'genesis-{installer}-merge'
95 # builder-merge job to run JJB update
97 # This job's purpose is to update all the JJB
99 project-type: freestyle
106 artifactDaysToKeep: -1
111 name: BUILD_DIRECTORY
112 default: $WORKSPACE/build_output
115 default: https://gerrit.opnfv.org/gerrit/genesis
122 - gerrit-trigger-scm:
123 credentials-id: '{ssh-credentials}'
125 choosing-strategy: 'default'
128 - ssh-agent-credentials:
129 user: '{ssh-credentials}'
134 - change-merged-event
135 - comment-added-contains-event:
136 comment-contains-value: 'remerge'
138 - project-compare-type: 'ANT'
139 project-pattern: 'genesis'
141 - branch-compare-type: 'ANT'
142 branch-pattern: '**/master'
147 pattern: '{installer}/**'
150 - '{installer}-merge'
153 name: 'genesis-{installer}-daily-{stream}'
155 project-type: freestyle
161 name: BUILD_DIRECTORY
162 default: $WORKSPACE/build_output
163 description: "Directory where the build artifact will be located upon the completion of the build."
166 default: 'artifacts.opnfv.org/genesis/{installer}'
167 description: "URL to Google Storage."
170 default: '{installer}'
171 description: "Installer to use."
174 default: https://gerrit.opnfv.org/gerrit/genesis
177 default: origin/master
178 description: "Branch to build, deploy and test."
181 default: refs/heads/master
182 description: "Refspec to retrieve."
190 refspec: $GERRIT_REFSPEC
193 - pollscm: '@midnight'
198 artifactDaysToKeep: -1
199 artifactNumToKeep: -1
202 - '{installer}-daily-master'
205 name: 'genesis-build-docs'
207 project-type: freestyle
212 artifactDaysToKeep: -1
222 - gerrit-trigger-scm:
223 credentials-id: '{ssh-credentials}'
225 choosing-strategy: 'default'
228 - ssh-agent-credentials:
229 user: '{ssh-credentials}'
234 - change-merged-event
235 - comment-added-contains-event:
236 comment-contains-value: 'remerge'
238 - project-compare-type: 'ANT'
239 project-pattern: 'genesis'
241 - branch-compare-type: 'ANT'
242 branch-pattern: '**/master'
246 !include-raw build-docu.sh
248 ########################
250 ########################
261 # get the dependencies - temporary fix for RC0
262 [[ -d $WORKSPACE/foreman/build ]] || mkdir -p $WORKSPACE/foreman/build
263 cp /home/jenkins/Downloads/opnfv_iso/* $WORKSPACE/foreman/build/
265 # below lines perhaps need to be enabled in order to fetch images from internet
266 # as we are having disk space issues on ericsson-build slave
267 #wget http://ftp.riken.jp/Linux/centos/7.0.1406/isos/x86_64/CentOS-7.0-1406-x86_64-Minimal.iso
268 #wget http://download.virtualbox.org/virtualbox/rpm/fedora/20/x86_64/VirtualBox-4.3-4.3.26_98988_fedora18-1.x86_64.rpm
269 #wget http://repos.duss-janser.ch/vagrant/vagrant_1.7.2_x86_64.rpm
272 cd $WORKSPACE/foreman/ci
273 ./build.sh $BUILD_DIRECTORY
275 # list the build artifacts
276 ls -al $BUILD_DIRECTORY
278 # remove the BUILD_DIRECTORY to reclaim some space
279 /bin/rm -rf $BUILD_DIRECTORY
291 # get the dependencies - temporary fix for RC0
292 [[ -d $WORKSPACE/foreman/build ]] || mkdir -p $WORKSPACE/foreman/build
293 cp /home/jenkins/Downloads/opnfv_iso/* $WORKSPACE/foreman/build/
295 # below lines perhaps need to be enabled in order to fetch images from internet
296 # as we are having disk space issues on ericsson-build slave
297 #wget http://ftp.riken.jp/Linux/centos/7.0.1406/isos/x86_64/CentOS-7.0-1406-x86_64-Minimal.iso
298 #wget http://download.virtualbox.org/virtualbox/rpm/fedora/20/x86_64/VirtualBox-4.3-4.3.26_98988_fedora18-1.x86_64.rpm
299 #wget http://repos.duss-janser.ch/vagrant/vagrant_1.7.2_x86_64.rpm
302 cd $WORKSPACE/foreman/ci
303 ./build.sh $BUILD_DIRECTORY
305 # list the build artifacts
306 ls -al $BUILD_DIRECTORY
308 # remove the BUILD_DIRECTORY to reclaim some space
309 /bin/rm -rf $BUILD_DIRECTORY
312 name: foreman-daily-master
321 # get the dependencies - temporary fix for RC0
322 [[ -d $WORKSPACE/foreman/build ]] || mkdir -p $WORKSPACE/foreman/build
323 cp /home/jenkins/Downloads/opnfv_iso/* $WORKSPACE/foreman/build/
325 # below lines perhaps need to be enabled in order to fetch images from internet
326 # as we are having disk space issues on ericsson-build slave
327 #wget http://ftp.riken.jp/Linux/centos/7.0.1406/isos/x86_64/CentOS-7.0-1406-x86_64-Minimal.iso
328 #wget http://download.virtualbox.org/virtualbox/rpm/fedora/20/x86_64/VirtualBox-4.3-4.3.26_98988_fedora18-1.x86_64.rpm
329 #wget http://repos.duss-janser.ch/vagrant/vagrant_1.7.2_x86_64.rpm
332 cd $WORKSPACE/foreman/ci
333 ./build.sh -v $BUILD_ID $BUILD_DIRECTORY
342 # list the build artifacts
343 ls -al $BUILD_DIRECTORY
347 # save information regarding artifact into file
349 echo "OPNFV_GIT_URL=$(git config --get remote.origin.url)"
350 echo "OPNFV_GIT_SHA1=$(git rev-parse HEAD)"
351 echo "OPNFV_ARTIFACT_URL=$GS_URL/opnfv-$BUILD_ID.iso"
352 echo "OPNFV_BUILD_URL=$BUILD_URL"
353 echo "OPNFV_BUILD=OK"
354 ) > opnfv-$BUILD_ID.properties
356 # copy artifact property file as latest.properties
357 # so we can directly get info regarding latest artifact
358 /bin/cp -f opnfv-$BUILD_ID.properties latest.properties
360 # upload artifact and additional files to google storage
361 gsutil cp OPNFV-CentOS-7-x86_64-$BUILD_ID.iso gs://$GS_URL/opnfv-$BUILD_ID.iso
362 gsutil cp opnfv-$BUILD_ID.properties gs://$GS_URL/opnfv-$BUILD_ID.properties
363 gsutil cp latest.properties gs://$GS_URL/latest.properties
372 # get the latest.properties file in order to get info regarding latest artifact
373 gsutil cp gs://$GS_URL/latest.properties latest.properties
375 # check if we got the file
376 [[ -f latest.properties ]] || exit 1
378 # source the file so we get OPNFV vars
379 source latest.properties
382 gsutil cp gs://$OPNFV_ARTIFACT_URL $WORKSPACE/opnfv.iso
385 ls -al $WORKSPACE/opnfv.iso
387 # remove the BUILD_DIRECTORY and downlaoded artifact to reclaim some space
388 /bin/rm -rf $BUILD_DIRECTORY
389 /bin/rm -rf $WORKSPACE/opnfv.iso
401 # set/create the cache location
402 OPNFV_FUEL_CACHE="$(dirname $WORKSPACE)/opnfv_fuel_cache"
403 [[ -d $OPNFV_FUEL_CACHE ]] || mkdir -p $OPNFV_FUEL_CACHE
406 cd $WORKSPACE/fuel/ci
407 ./build.sh -c file://$OPNFV_FUEL_CACHE $BUILD_DIRECTORY
409 # list the build artifacts
410 ls -al $BUILD_DIRECTORY
412 # remove the BUILD_DIRECTORY to reclaim some space
413 /bin/rm -rf $BUILD_DIRECTORY
425 # set/create the cache location
426 OPNFV_FUEL_CACHE="$(dirname $WORKSPACE)/opnfv_fuel_cache"
427 [[ -d $OPNFV_FUEL_CACHE ]] || mkdir -p $OPNFV_FUEL_CACHE
430 cd $WORKSPACE/fuel/ci
431 ./build.sh -c file://$OPNFV_FUEL_CACHE $BUILD_DIRECTORY
433 # list the build artifacts
434 ls -al $BUILD_DIRECTORY
436 # remove the BUILD_DIRECTORY to reclaim some space
437 /bin/rm -rf $BUILD_DIRECTORY
440 name: fuel-daily-master
449 # set/create the cache location
450 OPNFV_FUEL_CACHE="$(dirname $WORKSPACE)/opnfv_fuel_cache"
451 [[ -d $OPNFV_FUEL_CACHE ]] || mkdir -p $OPNFV_FUEL_CACHE
454 cd $WORKSPACE/fuel/ci
455 ./build.sh -f t -v $BUILD_ID -c file://$OPNFV_FUEL_CACHE $BUILD_DIRECTORY
464 # list the build artifacts
465 ls -al $BUILD_DIRECTORY
469 # save information regarding artifact into file
471 echo "OPNFV_GIT_URL=$(git config --get remote.origin.url)"
472 echo "OPNFV_GIT_SHA1=$(git rev-parse HEAD)"
473 echo "OPNFV_ARTIFACT_URL=$GS_URL/opnfv-$BUILD_ID.iso"
474 echo "OPNFV_BUILD_URL=$BUILD_URL"
475 echo "OPNFV_BUILD=OK"
476 ) > opnfv-$BUILD_ID.properties
478 # copy artifact property file as latest.properties
479 # so we can directly get info regarding latest artifact
480 /bin/cp -f opnfv-$BUILD_ID.properties latest.properties
482 # upload artifact and additional files to google storage
483 gsutil cp opnfv-$BUILD_ID.iso gs://$GS_URL/opnfv-$BUILD_ID.iso
484 gsutil cp opnfv-$BUILD_ID.properties gs://$GS_URL/opnfv-$BUILD_ID.properties
485 gsutil cp latest.properties gs://$GS_URL/latest.properties
494 # get the latest.properties file in order to get info regarding latest artifact
495 gsutil cp gs://$GS_URL/latest.properties latest.properties
497 # check if we got the file
498 [[ -f latest.properties ]] || exit 1
500 # source the file so we get OPNFV vars
501 source latest.properties
504 gsutil cp gs://$OPNFV_ARTIFACT_URL $WORKSPACE/opnfv.iso
507 ls -al $WORKSPACE/opnfv.iso
509 # remove the BUILD_DIRECTORY and downlaoded artifact to reclaim some space
510 /bin/rm -rf $BUILD_DIRECTORY
511 /bin/rm -rf $WORKSPACE/opnfv.iso
514 name: opensteak-verify
522 name: opensteak-merge
530 name: opensteak-daily-master
553 name: juju-daily-master