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
def call(body) {
echo "Check status"
(1..3).each {
echo "Number: " + it
stage('Checkout SCM') {
steps {
checkout scm
}
}
currentBuild.result = 'SUCCESS' //FAILURE to fail
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