Basic example
This example is very simple bootsrap that can be used for basic setup
#!/env/bin/env groovy
@Library("m2aJenkins") _
pipeline {
agent any
stages {
stage("Prepare") {
steps {
script {
builder = docker.image("alpine")
}
}
}
stage("Build") {
steps {
script {
utils.build_notify(currentBuild, 'dummy-build', "Dummy build without any tests"){
builder.inside {
sh 'echo built'
}
}
}
}
}
}
post {
cleanup {
cleanWs()
}
}
}