Commit 466e37d8 authored by daidekun's avatar daidekun

fixbugs

parent 493f843e
import libs.stage;
def call(body) {
def config = [:]
def stage = new Stage()
body.resolveStrategy = Closure.DELEGATE_FIRST
body.delegate = config
body()
node {
try {
stage('debug') {
print config.namespace
}
stage('Checkout') {
stage.checkout()
}
stage('Build') {
stage.build()
}
stage('Docker Build And Push') {
stage.docker_build_and_push()
}
stage('Deploy') {
stage.deploy()
}
stage("Clean") {
stage.clean()
}
} catch (err) {
currentBuild.result = 'FAILED'
throw err
}
}
}
\ 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