diff --git a/Jenkinsfile b/Jenkinsfile index 97b91b3d7c..2fee8a8835 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -461,6 +461,7 @@ post{ env.BLUE_OCEAN_URL_SQ_XLSX="${env.BUILD_URL}artifact/sonarqubereports/sonarqubeissuesreport.xlsx" env.LSONARQUBE_URL="${env.SONAR_URL_OPENFORESTPLATFORM}" emailext attachLog: false, attachmentsPattern: '', body: '''${SCRIPT, template="openforest_simple2.template"}''', mimeType: 'text/html', replyTo: 'notifications@usda.gov', subject: '$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!', to: "${MAILING_LIST_OPENFOREST}" + deleteDir() /* clean up our workspace */ } } @@ -501,7 +502,9 @@ post{ env.BLUE_OCEAN_URL_SQ_XLSX="${env.BUILD_URL}artifact/sonarqubereports/sonarqubeissuesreport.xlsx" env.LSONARQUBE_URL="${env.SONAR_URL_OPENFORESTPLATFORM}" emailext attachLog: false, attachmentsPattern: '', body: '''${SCRIPT, template="openforest_simple2.template"}''', mimeType: 'text/html', replyTo: 'notifications@usda.gov', subject: '$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!', to: "${MAILING_LIST_OPENFOREST}" + deleteDir() /* clean up our workspace */ } - } + } + } }