Permalink
Browse files
Added build script from util to the pipeline
- Loading branch information
Showing
with
8 additions
and
4 deletions.
-
+2
−4
Jenkinsfile
-
+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 . |