Skip to content

Commit 66ce569

Browse files
committed
add allure report generation in Jenkinsfile
1 parent db17e4c commit 66ce569

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

Jenkinsfile

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,21 @@ pipeline {
1313
sh 'echo "Done with unit tests"'
1414
}
1515
}
16-
// stage('Run Integration Tests') {
17-
// steps {
18-
// withCredentials([string(credentialsId: 'dss-plugins-admin-api-key', variable: 'API_KEY')]) {
19-
// sh 'echo "Running integration tests"'
20-
// sh 'echo "$HOST"'
21-
// sh """
22-
// make integration-tests
23-
// """
24-
// sh 'echo "Done with integration tests"'
25-
// }
26-
// }
27-
// }
28-
}
16+
}
2917
post {
3018
always {
31-
junit '*.xml'
19+
script {
20+
allure([
21+
includeProperties: false,
22+
jdk: '',
23+
properties: [],
24+
reportBuildPolicy: 'ALWAYS',
25+
results: [[path: 'tests/allure_report']]
26+
])
27+
28+
def status = currentBuild.currentResult
29+
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"
30+
}
3231
}
3332
}
3433
}

0 commit comments

Comments
 (0)