ng-tracker/Jenkinsfile

28 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-05-02 13:00:48 +04:00
pipeline {
agent any
stages {
stage('Test') {
steps {
2024-05-02 13:59:12 +04:00
sh "./gradlew clean test --info"
2024-05-02 13:00:48 +04:00
}
}
}
2024-05-02 14:17:44 +04:00
post {
failure {
emailext body: 'Check console output at $BUILD_URL to view the results. \n\n ${CHANGES} \n\n -------------------------------------------------- \n${BUILD_LOG, maxLines=100, escapeHtml=false}',
to: "${EMAIL_TO}",
subject: 'Build failed in Jenkins: $PROJECT_NAME - #$BUILD_NUMBER'
}
unstable {
emailext body: 'Check console output at $BUILD_URL to view the results. \n\n ${CHANGES} \n\n -------------------------------------------------- \n${BUILD_LOG, maxLines=100, escapeHtml=false}',
to: "${EMAIL_TO}",
subject: 'Unstable build in Jenkins: $PROJECT_NAME - #$BUILD_NUMBER'
}
changed {
emailext body: 'Check console output at $BUILD_URL to view the results.',
to: "${EMAIL_TO}",
subject: 'Jenkins build is back to normal: $PROJECT_NAME - #$BUILD_NUMBER'
}
}
}
2024-05-02 13:00:48 +04:00
}