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 {
|
2024-05-02 14:22:29 +04:00
|
|
|
always {
|
|
|
|
script {
|
|
|
|
if (currentBuild.currentResult == 'FAILURE') {
|
|
|
|
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: "a.romanov@ulstu.ru", sendToIndividuals: true])
|
|
|
|
}
|
|
|
|
}
|
2024-05-02 14:17:44 +04:00
|
|
|
}
|
|
|
|
}
|
2024-05-02 13:00:48 +04:00
|
|
|
}
|