clean deb/dist directories before build 01/1901/1 v2.0.1
authorMike Marchetti <mmarchetti@sandvine.com>
Wed, 31 May 2017 16:06:44 +0000 (12:06 -0400)
committerMike Marchetti <mmarchetti@sandvine.com>
Wed, 31 May 2017 16:06:44 +0000 (12:06 -0400)
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
Jenkinsfile

index 0264be0..84611ce 100644 (file)
@@ -21,7 +21,10 @@ pipeline {
         }
         stage("Build") {
             steps {
-                sh 'tox -e build'
+                sh '''
+                    rm -rf deb_dist
+                    tox -e build
+                   '''
                 stash name: "deb-files", includes: "deb_dist/*.deb"
             }
         }
@@ -29,6 +32,8 @@ pipeline {
             steps {
                 unstash "deb-files"
                 sh '''
+                    rm -rf pool
+                    rm -rf dists
                     mkdir -p pool/osmclient
                     mv deb_dist/*.deb pool/osmclient/
                     mkdir -p dists/unstable/osmclient/binary-amd64/