Apex: Fixes opnfv-clean to only run on stable/b 67/11967/1
authorTim Rozet <trozet@redhat.com>
Wed, 6 Apr 2016 20:51:36 +0000 (16:51 -0400)
committerTim Rozet <trozet@redhat.com>
Wed, 6 Apr 2016 20:51:36 +0000 (16:51 -0400)
Change-Id: Id82b2daf4fee59b574775f67987d63ae9b81ccac
Signed-off-by: Tim Rozet <trozet@redhat.com>
jjb/apex/apex.yml

index e98e3f9..c4b1d5b 100644 (file)
                 export OPNFV_ARTIFACT_VERSION=${ARTIFACT_VERSION}
             fi
             # clean for stable but doesn't matter for master
-            sudo opnfv-clean || echo ""
+            if echo $GERRIT_BRANCH | grep "brahmaputra" 1> /dev/null; then
+              sudo opnfv-clean
+            fi
             # start the build
             cd $WORKSPACE/ci
             ./build.sh $BUILD_ARGS