Skip to content

Commit

Permalink
Fix Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
enricovianello committed Jun 27, 2024
1 parent fe4b05d commit d09a18b
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
@Library('sd')_
def kubeLabel = getKubeLabel()

pipeline {

agent { label 'java11' }
Expand All @@ -20,25 +17,5 @@ pipeline {
sh "mvn clean -U -B deploy"
}
}

stage('result') {
steps {
script { currentBuild.result = 'SUCCESS' }
}
}
}

post {
failure {
slackSend color: 'danger', message: "${env.JOB_NAME} - #${env.BUILD_NUMBER} Failure (<${env.BUILD_URL}|Open>)"
}

changed {
script {
if ('SUCCESS'.equals(currentBuild.result)) {
slackSend color: 'good', message: "${env.JOB_NAME} - #${env.BUILD_NUMBER} Back to normal (<${env.BUILD_URL}|Open>)"
}
}
}
}
}

0 comments on commit d09a18b

Please sign in to comment.