diff options
author | 2015-11-26 22:09:51 +0100 | |
---|---|---|
committer | 2015-11-27 11:32:07 +0000 | |
commit | e0d76f879b5ae0927b6312ae51bf53485e538ee2 (patch) | |
tree | 78c577a080a777797a785c0c78414b532fd276d3 /jjb/fuel/fuel-build.sh | |
parent | 7cf2f3c180a713ccd396e5fbb0bd9097b929b81c (diff) |
Enable fuel verify builds without cache if requested
Change-Id: I77a75852cb2ba0aae70dc68f719cd93a15b27859
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Diffstat (limited to 'jjb/fuel/fuel-build.sh')
-rwxr-xr-x | jjb/fuel/fuel-build.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/jjb/fuel/fuel-build.sh b/jjb/fuel/fuel-build.sh index 51c2a7402..00617ce54 100755 --- a/jjb/fuel/fuel-build.sh +++ b/jjb/fuel/fuel-build.sh @@ -19,9 +19,16 @@ else export OPNFV_ARTIFACT_VERSION=$(date -u +"%Y-%m-%d_%H-%M-%S") fi +NOCACHE_PATTERN="verify: no-cache" +if [[ "$JOB_NAME" =~ "verify" && "$GERRIT_CHANGE_COMMIT_MESSAGE" =~ "$NOCACHE_PATTERN" ]]; then + echo "The cache will not be used for this build!" + NOCACHE_ARG="-f P" +fi +NOCACHE_ARG=${{NOCACHE_ARG:-}} + # start the build cd $WORKSPACE/ci -./build.sh -v $OPNFV_ARTIFACT_VERSION -c file://$CACHE_DIRECTORY $BUILD_DIRECTORY +./build.sh -v $OPNFV_ARTIFACT_VERSION $NOCACHE_ARG -c file://$CACHE_DIRECTORY $BUILD_DIRECTORY # list the build artifacts ls -al $BUILD_DIRECTORY |