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'
43 server-name: 'gerrit.opnfv.org'
45 - patchset-created-event:
46 exclude-drafts: 'false'
47 exclude-trivial-rebase: 'false'
48 exclude-no-code-change: 'false'
49 - draft-published-event
50 - comment-added-contains-event:
51 comment-contains-value: 'recheck'
52 - comment-added-contains-event:
53 comment-contains-value: 'reverify'
55 - project-compare-type: 'ANT'
56 project-pattern: '{project}'
58 - branch-compare-type: 'ANT'
59 branch-pattern: '**/{branch}'
62 pattern: 'docs/**|.gitignore'
65 - 'builder-onosfw-helloworld'
68 name: 'onosfw-daily-{stream}'
70 disabled: '{obj:disabled}'
77 - 'opnfv-build-ubuntu-defaults'
87 - project: 'onosfw-build-{stream}'
92 name: 'onosfw-build-{stream}'
94 disabled: '{obj:disabled}'
101 - 'opnfv-build-ubuntu-defaults'
104 default: '$GS_BASE{gs-pathname}'
105 description: "Directory where the build artifact will be located upon the completion of the build."
111 - 'builder-onosfw-helloworld'
113 ########################
115 ########################
117 name: 'builder-onosfw-build'
125 # log info to console
126 echo "Starting the build of $PROJECT. This could take some time..."
127 echo "--------------------------------------------------------"
130 # create the cache directory if it doesn't exist
131 [[ -d $CACHE_DIRECTORY ]] || mkdir -p $CACHE_DIRECTORY
132 [[ -d $BUILD_DIRECTORY ]] || mkdir -p $BUILD_DIRECTORY
134 # set OPNFV_ARTIFACT_VERSION
135 export OPNFV_ARTIFACT_VERSION=$(date -u +"%Y-%m-%d_%H-%M-%S")
139 ./ci/build.sh $BUILD_DIRECTORY/
141 # list the build artifacts
142 ls -al $BUILD_DIRECTORY
144 # save information regarding artifact into file
146 echo "OPNFV_ARTIFACT_VERSION=$OPNFV_ARTIFACT_VERSION"
147 echo "OPNFV_GIT_URL=$(git config --get remote.origin.url)"
148 echo "OPNFV_GIT_SHA1=$(git rev-parse HEAD)"
149 echo "OPNFV_ARTIFACT_URL=$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso"
150 echo "OPNFV_ARTIFACT_SHA512SUM=$(sha512sum $BUILD_DIRECTORY/onosfw.iso | cut -d' ' -f1)"
151 echo "OPNFV_BUILD_URL=$BUILD_URL"
152 ) > $BUILD_DIRECTORY/opnfv.properties
154 echo "--------------------------------------------------------"
159 name: 'builder-onosfw-upload-artifact'
167 # log info to console
168 echo "Uploading the $INSTALLER artifact. This could take some time..."
169 echo "--------------------------------------------------------"
172 # source the opnfv.properties to get ARTIFACT_VERSION
173 source $BUILD_DIRECTORY/opnfv.properties
175 # upload artifact and additional files to google storage
176 gsutil cp $BUILD_DIRECTORY/onosfw.iso gs://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso > gsutil.iso.log 2>&1
177 gsutil cp $BUILD_DIRECTORY/opnfv.properties gs://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.properties > gsutil.properties.log 2>&1
178 gsutil cp $BUILD_DIRECTORY/opnfv.properties gs://$GS_URL/latest.properties > gsutil.latest.log 2>&1
181 echo "--------------------------------------------------------"
183 echo "Artifact is available as http://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso"
187 name: 'builder-onosfw-helloworld'