Index: Jenkinsfile =================================================================== diff -u -N -r9d7e8dce8b9b7cdd58af37e8e2e4d13380309f46 -rf805851e72e489ed6ab579ba4d4975352b04179f --- Jenkinsfile (.../Jenkinsfile) (revision 9d7e8dce8b9b7cdd58af37e8e2e4d13380309f46) +++ Jenkinsfile (.../Jenkinsfile) (revision f805851e72e489ed6ab579ba4d4975352b04179f) @@ -88,6 +88,11 @@ notifyAfterFailure() } } + cleanup { + script { + sh "sudo rm -rf ${WORKSPACE}/{*,.*} || true" + } + } } } stage('Build reference-ui') { @@ -133,7 +138,6 @@ docker-compose run --entrypoint ./sonar.sh stockmanagement-ui docker-compose down --volumes - sudo rm -rf node_modules/ ''' // workaround because sonar plugin retrieve the path directly from the output sh 'echo "Working dir: ${WORKSPACE}/.sonar"' @@ -161,6 +165,11 @@ notifyAfterFailure() } } + cleanup { + script { + sh "sudo rm -rf ${WORKSPACE}/{*,.*} || true" + } + } } } stage('Push image') {