Skip to content

Instantly share code, notes, and snippets.

@naturalett
Created May 25, 2023 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naturalett/5461992dbe7b2d7bea4f5648fda14484 to your computer and use it in GitHub Desktop.
Save naturalett/5461992dbe7b2d7bea4f5648fda14484 to your computer and use it in GitHub Desktop.
My First Pipeline Slack
pipeline {
agent any
stages {
stage('Clone') {
steps {
git branch: 'main', url: 'https://github.com/naturalett/hello-world.git'
}
}
}
post {
success {
script {
slackSend(channel: "jenkins", message: "my-first-pipeline-slack passed successfully")
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment