-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
25 lines (25 loc) · 881 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
pipeline {
agent { label 'java' }
stages {
stage('Build') {
steps {
sh './mvnw -Dmaven.test.failure.ignore=true clean verify site'
}
}
stage('Report') {
steps {
publishHTML([reportName : 'Allure Report', reportDir: 'target/site/allure-maven-plugin', reportFiles: 'index.html',
reportTitles: '', allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false])
}
}
}
post {
always {
deleteDir()
}
failure {
slackSend message: "${env.JOB_NAME} - #${env.BUILD_NUMBER} failed (<${env.BUILD_URL}|Open>)",
color: 'danger', teamDomain: 'qameta', channel: 'allure', tokenCredentialId: 'allure-channel'
}
}
}