Commit 8af27d83 authored by daidekun's avatar daidekun

fix

parent 1c4a2e6e
......@@ -2,7 +2,9 @@ import org.qg.*
def call(body) {
def config = [:]
def config = [:]
def branchName = body.env.BRANCH_NAME
body.resolveStrategy = Closure.DELEGATE_FIRST
body.delegate = config
body()
......@@ -10,8 +12,7 @@ def call(body) {
node {
try {
stage ('Clone') {
print currentBuild
print currentBuild.result
print branchName
}
stage ('Build') {
sh "echo 'building ${config.projectName} ...'"
......
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