Skip to content
Permalink
Browse files

More rearrange

  • Loading branch information
Jim Van Fleet
Jim Van Fleet committed Aug 24, 2016
1 parent ef6a1d1 commit 3836e8bd9b803ced5954eb365fded09ac84eca19
Showing with 12 additions and 11 deletions.
  1. +12 −11 Jenkinsfile
@@ -13,20 +13,21 @@ node('docker') {
sh 'ls'
sh 'mv bin/* ../bin/.'
}
stage 'Environment'

def maintainer = maintainer()
def imagename = imagename()
def tag = env.BRANCH_NAME
if(!imagename){
echo "You must define an imagename in common.bash"
currentBuild.result = 'FAILURE'
}
if(maintainer){
echo "Building ${maintainer}:${tag} for ${maintainer}"
}

stage 'Build'
try{
def maintainer = maintainer()
def imagename = imagename()
def tag = env.BRANCH_NAME
if(!imagename){
echo "You must define an imagename in common.bash"
currentBuild.result = 'FAILURE'
}
if(maintainer){
echo "Building ${maintainer}:${tag} for ${maintainer}"
}

sh 'bin/build.sh &> debug'
} catch(error) {
def error_details = readFile('./debug');

0 comments on commit 3836e8b

Please sign in to comment.
You can’t perform that action at this time.