6 - 'onosfw-verify-{stream}'
7 - 'onosfw-daily-{stream}'
8 - 'onosfw-build-{stream}'
10 # only master branch is enabled at the moment to keep no of jobs sane
17 branch: 'stable/{stream}'
18 gs-pathname: '/{stream}'
23 ########################
25 ########################
27 name: 'onosfw-verify-{stream}'
29 disabled: '{obj:disabled}'
36 - 'opnfv-build-ubuntu-defaults'
40 credentials-id: '{ssh-credentials}'
41 refspec: '$GERRIT_REFSPEC'
42 choosing-strategy: 'gerrit'
46 server-name: 'gerrit.opnfv.org'
48 - patchset-created-event:
49 exclude-drafts: 'false'
50 exclude-trivial-rebase: 'false'
51 exclude-no-code-change: 'false'
52 - draft-published-event
53 - comment-added-contains-event:
54 comment-contains-value: 'recheck'
55 - comment-added-contains-event:
56 comment-contains-value: 'reverify'
58 - project-compare-type: 'ANT'
59 project-pattern: '{project}'
61 - branch-compare-type: 'ANT'
62 branch-pattern: '**/{branch}'
65 pattern: 'docs/**|.gitignore'
68 - 'builder-onosfw-helloworld'
71 name: 'onosfw-daily-{stream}'
73 disabled: '{obj:disabled}'
78 - 'opnfv-build-ubuntu-defaults'
82 credentials-id: '{ssh-credentials}'
91 - project: 'onosfw-build-{stream}'
96 name: 'onosfw-build-{stream}'
98 disabled: '{obj:disabled}'
103 - 'opnfv-build-ubuntu-defaults'
106 default: '$GS_BASE{gs-pathname}'
107 description: "Directory where the build artifact will be located upon the completion of the build."
111 credentials-id: '{ssh-credentials}'
116 - 'builder-onosfw-helloworld'
118 ########################
120 ########################
122 name: 'builder-onosfw-build'
130 # log info to console
131 echo "Starting the build of $PROJECT. This could take some time..."
132 echo "--------------------------------------------------------"
135 # create the cache directory if it doesn't exist
136 [[ -d $CACHE_DIRECTORY ]] || mkdir -p $CACHE_DIRECTORY
137 [[ -d $BUILD_DIRECTORY ]] || mkdir -p $BUILD_DIRECTORY
139 # set OPNFV_ARTIFACT_VERSION
140 export OPNFV_ARTIFACT_VERSION=$(date -u +"%Y-%m-%d_%H-%M-%S")
144 ./ci/build.sh $BUILD_DIRECTORY/
146 # list the build artifacts
147 ls -al $BUILD_DIRECTORY
149 # save information regarding artifact into file
151 echo "OPNFV_ARTIFACT_VERSION=$OPNFV_ARTIFACT_VERSION"
152 echo "OPNFV_GIT_URL=$(git config --get remote.origin.url)"
153 echo "OPNFV_GIT_SHA1=$(git rev-parse HEAD)"
154 echo "OPNFV_ARTIFACT_URL=$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso"
155 echo "OPNFV_ARTIFACT_SHA512SUM=$(sha512sum $BUILD_DIRECTORY/onosfw.iso | cut -d' ' -f1)"
156 echo "OPNFV_BUILD_URL=$BUILD_URL"
157 ) > $BUILD_DIRECTORY/opnfv.properties
159 echo "--------------------------------------------------------"
164 name: 'builder-onosfw-upload-artifact'
172 # log info to console
173 echo "Uploading the $INSTALLER artifact. This could take some time..."
174 echo "--------------------------------------------------------"
177 # source the opnfv.properties to get ARTIFACT_VERSION
178 source $BUILD_DIRECTORY/opnfv.properties
180 # upload artifact and additional files to google storage
181 gsutil cp $BUILD_DIRECTORY/onosfw.iso gs://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso > gsutil.iso.log 2>&1
182 gsutil cp $BUILD_DIRECTORY/opnfv.properties gs://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.properties > gsutil.properties.log 2>&1
183 gsutil cp $BUILD_DIRECTORY/opnfv.properties gs://$GS_URL/latest.properties > gsutil.latest.log 2>&1
186 echo "--------------------------------------------------------"
188 echo "Artifact is available as http://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso"
192 name: 'builder-onosfw-helloworld'