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
16 # branch: 'stable/brahmaputra'
17 # gs-pathname: '/brahmaputra'
21 ########################
23 ########################
25 name: 'onosfw-verify-{stream}'
32 - 'opnfv-build-defaults'
36 credentials-id: '{ssh-credentials}'
37 refspec: '$GERRIT_REFSPEC'
38 choosing-strategy: 'gerrit'
43 - patchset-created-event:
44 exclude-drafts: 'false'
45 exclude-trivial-rebase: 'false'
46 exclude-no-code-change: 'false'
47 - draft-published-event
48 - comment-added-contains-event:
49 comment-contains-value: 'recheck'
50 - comment-added-contains-event:
51 comment-contains-value: 'reverify'
53 - project-compare-type: 'ANT'
54 project-pattern: '{project}'
56 - branch-compare-type: 'ANT'
57 branch-pattern: '**/{branch}'
60 pattern: 'docs/**|.gitignore'
63 - 'builder-onosfw-helloworld'
66 name: 'onosfw-daily-{stream}'
71 - 'opnfv-build-defaults'
75 credentials-id: '{ssh-credentials}'
84 - project: 'onosfw-build-{stream}'
89 name: 'onosfw-build-{stream}'
94 - 'opnfv-build-defaults'
98 credentials-id: '{ssh-credentials}'
103 - 'builder-onosfw-helloworld'
107 ########################
109 ########################
111 name: 'builder-onosfw-build'
119 # log info to console
120 echo "Starting the build of $PROJECT. This could take some time..."
121 echo "--------------------------------------------------------"
124 # create the cache directory if it doesn't exist
125 [[ -d $CACHE_DIRECTORY ]] || mkdir -p $CACHE_DIRECTORY
126 [[ -d $BUILD_DIRECTORY ]] || mkdir -p $BUILD_DIRECTORY
128 # set OPNFV_ARTIFACT_VERSION
129 export OPNFV_ARTIFACT_VERSION=$(date -u +"%Y-%m-%d_%H-%M-%S")
133 ./ci/build.sh $BUILD_DIRECTORY/
135 # list the build artifacts
136 ls -al $BUILD_DIRECTORY
138 # save information regarding artifact into file
140 echo "OPNFV_ARTIFACT_VERSION=$OPNFV_ARTIFACT_VERSION"
141 echo "OPNFV_GIT_URL=$(git config --get remote.origin.url)"
142 echo "OPNFV_GIT_SHA1=$(git rev-parse HEAD)"
143 echo "OPNFV_ARTIFACT_URL=$GS_BASE/opnfv-$OPNFV_ARTIFACT_VERSION.iso"
144 echo "OPNFV_ARTIFACT_MD5SUM=$(md5sum $BUILD_DIRECTORY/onosfw.iso | cut -d' ' -f1)"
145 echo "OPNFV_BUILD_URL=$BUILD_URL"
146 ) > $BUILD_DIRECTORY/opnfv.properties
148 echo "--------------------------------------------------------"
153 name: 'builder-onosfw-upload-artifact'
161 # log info to console
162 echo "Uploading the $INSTALLER artifact. This could take some time..."
163 echo "--------------------------------------------------------"
166 # source the opnfv.properties to get ARTIFACT_VERSION
167 source $BUILD_DIRECTORY/opnfv.properties
169 # upload artifact and additional files to google storage
170 gsutil cp $BUILD_DIRECTORY/onosfw.iso gs://$GS_BASE/opnfv-$OPNFV_ARTIFACT_VERSION.iso > gsutil.iso.log 2>&1
171 gsutil cp $BUILD_DIRECTORY/opnfv.properties gs://$GS_BASE/opnfv-$OPNFV_ARTIFACT_VERSION.properties > gsutil.properties.log 2>&1
172 gsutil cp $BUILD_DIRECTORY/opnfv.properties gs://$GS_BASE/latest.properties > gsutil.latest.log 2>&1
175 echo "--------------------------------------------------------"
177 echo "Artifact is available as http://$GS_BASE/opnfv-$OPNFV_ARTIFACT_VERSION.iso"
181 name: 'builder-onosfw-helloworld'