Skip to content
Permalink
Browse files

Added build script from util to the pipeline

  • Loading branch information
Chris Bynum
Chris Bynum committed Aug 4, 2016
1 parent d8986cb commit becf89b7d849426c13dee1761e7a2bf117d56799
Showing with 8 additions and 4 deletions.
  1. +2 −4 Jenkinsfile
  2. +6 −0 build.sh
@@ -7,17 +7,15 @@ node {

try{
// Build Base Image
dir('bin') {
sh './build.sh &> debug'
}
sh './build.sh &> debug'
// Build Base Image
// sh './build_image.sh &> debug'
// Run Base Container
// sh 'bin/run.sh'
} catch(error) {
def error_details = readFile('./bin/debug');
def message = "BUILD ERROR: There was a problem building the Base Image. \n\n ${error_details}"
sh "rm -f ./bin/debug"
sh "rm -f ./debug"
handleError(message)
}

@@ -0,0 +1,6 @@
#!/bin/bash

source common.bash .

echo "Building new Docker image($maintainer/$imagename)"
docker build --rm -t $maintainer/$imagename --build-arg maintainer=$maintainer --build-arg imagename=$imagename --build-arg version=$version .

0 comments on commit becf89b

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