Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added build script from util to the pipeline
Chris Bynum committed Aug 4, 2016
1 parent d8986cb commit becf89b
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Jenkinsfile
@@ -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)
}

6 changes: 6 additions & 0 deletions build.sh
@@ -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.