Skip to content

Commit

Permalink
Fix settings.xml usage, do mvn clean
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin O'Donnell <[email protected]>
  • Loading branch information
scealiontach committed May 22, 2019
1 parent 5a25278 commit 3788500
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@

pipeline {
agent {
node {
label 'master'
customWorkspace "workspace/${env.BUILD_TAG}"
ansiColor('xterm') {
node {
label 'worker'
customWorkspace "workspace/${env.BUILD_TAG}"
}
}
}

Expand Down Expand Up @@ -91,8 +93,10 @@ pipeline {
sh 'docker-compose -f docker/docker-compose-build.yaml down'
sh 'docker run -v $PWD:/project/daml-on-sawtooth daml-on-sawtooth-build-local:${ISOLATION_ID} mvn clean'
sh '''
TAG_VERSION="`git describe --dirty`";
for img in `docker images --filter reference="*:$ISOLATION_ID" --format "{{.Repository}}"`; do
docker rmi -f $img:$ISOLATION_ID
docker tag $img:$ISOLATION_ID $img:$TAG_VERSION
docker rmi -f $img
done
'''
}
Expand Down

0 comments on commit 3788500

Please sign in to comment.