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}'
35 - 'opnfv-build-ubuntu-defaults'
42 server-name: 'gerrit.opnfv.org'
44 - patchset-created-event:
45 exclude-drafts: 'false'
46 exclude-trivial-rebase: 'false'
47 exclude-no-code-change: 'false'
48 - draft-published-event
49 - comment-added-contains-event:
50 comment-contains-value: 'recheck'
51 - comment-added-contains-event:
52 comment-contains-value: 'reverify'
54 - project-compare-type: 'ANT'
55 project-pattern: '{project}'
57 - branch-compare-type: 'ANT'
58 branch-pattern: '**/{branch}'
59 disable-strict-forbidden-file-verification: 'true'
62 pattern: 'docs/**|.gitignore'
65 - 'builder-onosfw-helloworld'
68 name: 'onosfw-daily-{stream}'
70 disabled: '{obj:disabled}'
76 - 'opnfv-build-ubuntu-defaults'
86 - project: 'onosfw-build-{stream}'
91 name: 'onosfw-build-{stream}'
93 disabled: '{obj:disabled}'
99 - 'opnfv-build-ubuntu-defaults'
102 default: '$GS_BASE{gs-pathname}'
103 description: "Directory where the build artifact will be located upon the completion of the build."
109 - 'builder-onosfw-helloworld'
111 ########################
113 ########################
115 name: 'builder-onosfw-build'
123 # log info to console
124 echo "Starting the build of $PROJECT. This could take some time..."
125 echo "--------------------------------------------------------"
128 # create the cache directory if it doesn't exist
129 [[ -d $CACHE_DIRECTORY ]] || mkdir -p $CACHE_DIRECTORY
130 [[ -d $BUILD_DIRECTORY ]] || mkdir -p $BUILD_DIRECTORY
132 # set OPNFV_ARTIFACT_VERSION
133 export OPNFV_ARTIFACT_VERSION=$(date -u +"%Y-%m-%d_%H-%M-%S")
137 ./ci/build.sh $BUILD_DIRECTORY/
139 # list the build artifacts
140 ls -al $BUILD_DIRECTORY
142 # save information regarding artifact into file
144 echo "OPNFV_ARTIFACT_VERSION=$OPNFV_ARTIFACT_VERSION"
145 echo "OPNFV_GIT_URL=$(git config --get remote.origin.url)"
146 echo "OPNFV_GIT_SHA1=$(git rev-parse HEAD)"
147 echo "OPNFV_ARTIFACT_URL=$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso"
148 echo "OPNFV_ARTIFACT_SHA512SUM=$(sha512sum $BUILD_DIRECTORY/onosfw.iso | cut -d' ' -f1)"
149 echo "OPNFV_BUILD_URL=$BUILD_URL"
150 ) > $BUILD_DIRECTORY/opnfv.properties
152 echo "--------------------------------------------------------"
157 name: 'builder-onosfw-upload-artifact'
165 # log info to console
166 echo "Uploading the $INSTALLER artifact. This could take some time..."
167 echo "--------------------------------------------------------"
170 # source the opnfv.properties to get ARTIFACT_VERSION
171 source $BUILD_DIRECTORY/opnfv.properties
173 # upload artifact and additional files to google storage
174 gsutil cp $BUILD_DIRECTORY/onosfw.iso gs://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso > gsutil.iso.log 2>&1
175 gsutil cp $BUILD_DIRECTORY/opnfv.properties gs://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.properties > gsutil.properties.log 2>&1
176 gsutil cp $BUILD_DIRECTORY/opnfv.properties gs://$GS_URL/latest.properties > gsutil.latest.log 2>&1
179 echo "--------------------------------------------------------"
181 echo "Artifact is available as http://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso"
185 name: 'builder-onosfw-helloworld'