Skip to content

Instantly share code, notes, and snippets.

@pmandreoli
Last active July 6, 2022 07:48
Show Gist options
  • Select an option

  • Save pmandreoli/e39396ba61f4db8496f9455c9a4dc9cb to your computer and use it in GitHub Desktop.

Select an option

Save pmandreoli/e39396ba61f4db8496f9455c9a4dc9cb to your computer and use it in GitHub Desktop.
pipeline {
agent any
options { disableConcurrentBuilds() }
stages {
stage('hello-world') {
steps {
sh '''
echo "hello world"
'''
}
}
}
post {
always {
cleanWs()
}
success {
sh 'curl -s -X POST https://api.telegram.org/bot${API_BOT}/sendMessage -d chat_id=-704562263 -d text="${JOB_NAME}: GALAXY PLAYBOOK RUN SUCCESSFUL!! executed on ${NODE_NAME} more info at ${BUILD_URL}"'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment