diff options
author | Josep Puigdemont <josep.puigdemont@enea.com> | 2016-04-22 11:07:40 +0200 |
---|---|---|
committer | Josep Puigdemont <josep.puigdemont@enea.com> | 2016-04-22 11:16:17 +0200 |
commit | 9a07b1737dd78f1f1bb8baeb3604379211ee84cf (patch) | |
tree | 26bd38a0d64a4ed762a9bf983d476568a0386619 /ci/build.sh | |
parent | 8bbaf656043e99b265487dfc9c85ac37ca17abba (diff) |
Pass revision version to the build fuel system
Fuel makes use of the REVSTATE variable in the make file to alter the
name of the resulting ISO image. We need to honor the revision specified
by the jenkins build system at OPNFV, and pass this variable along to
fuel@opnfv.
Change-Id: I1f80dfcae313058dd9a4486bbbfdfbb0b52ea405
Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
Diffstat (limited to 'ci/build.sh')
-rwxr-xr-x | ci/build.sh | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/ci/build.sh b/ci/build.sh index 99de559a..38be2547 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -32,11 +32,20 @@ SCRIPT_DIR=$(readlink -f $(dirname ${BASH_SOURCE[0]})) BUILD_BASE="${SCRIPT_DIR}/upstream/fuel/build" RESULT_DIR="${BUILD_BASE}/release" -make release || error_exit "Make release failed" +make REVSTATE="${OPNFV_ARTIFACT_VERSION}" release || + error_exit "Make release failed" -write_gitinfo >> ${BUILD_BASE}/gitinfo.txt +write_gitinfo >> ${BUILD_BASE}/gitinfo_armband.txt echo "Copying results to $OUTPUT_DIR" sort ${BUILD_BASE}/gitinfo*.txt > ${OUTPUT_DIR}/gitinfo.txt cp ${RESULT_DIR}/*.iso ${OUTPUT_DIR}/ cp ${RESULT_DIR}/*.iso.txt ${OUTPUT_DIR}/ + +# We need to build our own ODL plugin, and when this happens, fuel +# renames the iso to unofficial-opnfv-${REVSTATE}.iso, so here we remove +# the prefix: +pushd ${OUTPUT_DIR} > /dev/null +rename 's/^unofficial-//' *.iso +rename 's/^unofficial-//' *.iso.txt +popd > /dev/null |