Merge "Apex: clean out extra args to deploy and update cleaning"
authorTim Rozet <trozet@redhat.com>
Mon, 28 Mar 2016 14:17:49 +0000 (14:17 +0000)
committerGerrit Code Review <gerrit@172.30.200.206>
Mon, 28 Mar 2016 14:17:49 +0000 (14:17 +0000)
jjb/apex/apex.yml

index b304f22..6f2f441 100644 (file)
@@ -15,7 +15,7 @@
             branch: 'master'
             gs-pathname: ''
             block-stream: 'brahmaputra'
-            slave: 'opnfv-jump-1'
+            slave: 'intel-pod7'
         - brahmaputra:
             branch: 'stable/brahmaputra'
             gs-pathname: '/brahmaputra'
         - trigger-builds:
           - project: 'apex-deploy-{platform}-{scenario}-{stream}'
             predefined-parameters:
-              OPNFV_CLEAN='yes'
+              OPNFV_CLEAN=yes
             git-revision: false
             block: true
         - trigger-builds:
         - 'apex-build'
         - trigger-builds:
           - project: 'apex-deploy-virtual-os-odl_l2-nofeature-ha-{stream}'
-            predefined-parameters:
+            predefined-parameters: |
               BUILD_DIRECTORY=apex-build-{stream}/build_output
+              OPNFV_CLEAN=yes
             git-revision: false
             block: true
         - 'apex-upload-artifact'
             else
                 export OPNFV_ARTIFACT_VERSION=${ARTIFACT_VERSION}
             fi
+            # clean for stable but doesn't matter for master
+            sudo opnfv-clean || echo ""
             # start the build
             cd $WORKSPACE/ci
-            ./build.sh -v $OPNFV_ARTIFACT_VERSION $BUILD_ARGS
+            ./build.sh $BUILD_ARGS
             RPM_VERSION=$(grep Version $BUILD_DIRECTORY/../build/opnfv-apex.spec | awk '{ print $2 }')-$(echo $OPNFV_ARTIFACT_VERSION | tr -d '_-')
             # list the contents of BUILD_OUTPUT directory
             ls -al $BUILD_DIRECTORY