Commit 16073697 authored by Muhammad Tehami's avatar Muhammad Tehami 💡

Add checkout and build step

parent ceb7a5f1
def call(String buildDirectory) {
stage('Build') {
dir(buildDirectory) {
sh 'mvn clean install'
}
}
}
\ No newline at end of file
#!/usr/bin/env groovy #!/usr/bin/env groovy
def call(body) { def call(body) {
echo "Check status" stage('Checkout SCM') {
steps {
(1..3).each { checkout scm
echo "Number: " + it }
} }
currentBuild.result = 'SUCCESS' //FAILURE to fail
return this return this
} }
def hello() {
echo "hello() called!"
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment