Skip to content

Commit 2bc6295

Browse files
authored
Merge pull request #7 from dataiku/bugfix/clear-ws-for-allure
Updated Jenkinsfile
2 parents d2c2c3e + bf58fcd commit 2bc6295

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Jenkinsfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
pipeline {
2-
options { disableConcurrentBuilds() }
2+
options {
3+
disableConcurrentBuilds()
4+
}
35
agent { label 'dss-plugin-tests'}
46
environment {
57
PLUGIN_INTEGRATION_TEST_INSTANCE="$HOME/instance_config.json"
68
UNIT_TEST_FILES_STATUS_CODE = sh(script: 'ls ./tests/*/unit/test*', returnStatus: true)
79
INTEGRATION_TEST_FILES_STATUS_CODE = sh(script: 'ls ./tests/*/integration/test*', returnStatus: true)
8-
}
10+
}
911
stages {
1012
stage('Run Unit Tests') {
1113
when { environment name: 'UNIT_TEST_FILES_STATUS_CODE', value: "0"}
@@ -45,6 +47,7 @@ pipeline {
4547

4648
def status = currentBuild.currentResult
4749
sh "file_name=\$(echo ${env.JOB_NAME} | tr '/' '-').status; touch \$file_name; echo \"${env.BUILD_URL};${env.CHANGE_TITLE};${env.CHANGE_AUTHOR};${env.CHANGE_URL};${env.BRANCH_NAME};${status};\" >> $HOME/daily-statuses/\$file_name"
50+
cleanWs()
4851
}
4952
}
5053
}

0 commit comments

Comments
 (0)