From: Mike Marchetti Date: Wed, 31 May 2017 16:06:44 +0000 (-0400) Subject: clean deb/dist directories before build X-Git-Tag: v2.0.1^0 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=84bf79cff9f08565dcc398bba98f34709f4fe6a0;p=osm%2Fosmclient.git clean deb/dist directories before build Signed-off-by: Mike Marchetti --- diff --git a/Jenkinsfile b/Jenkinsfile index 0264be0..84611ce 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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/