projects
/
osm
/
devops.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
useradd and groupadd changes in stage2 picked from master to v2.0
[osm/devops.git]
/
jenkins
/
host
/
start_build
diff --git
a/jenkins/host/start_build
b/jenkins/host/start_build
index
a78d394
..
02bfcc2
100755
(executable)
--- a/
jenkins/host/start_build
+++ b/
jenkins/host/start_build
@@
-30,6
+30,13
@@
export OSM_MDG=$1
shift
OSM_load_config
shift
OSM_load_config
+if [ "$1" = "--build-container" ]; then
+ shift
+ [ $# -lt 1 ] && FATAL "missing container name with option --build-container"
+ export OSM_BUILD_CONTAINER=$1
+ shift
+fi
+
if ! container_exists $OSM_BUILD_CONTAINER; then
CONTAINER_OPTS=""
[[ "$OSM_BUILD_CONTAINER_PRIVILEGED" == yes ]] && CONTAINER_OPTS="$CONTAINER_OPTS -c security.privileged=true"
if ! container_exists $OSM_BUILD_CONTAINER; then
CONTAINER_OPTS=""
[[ "$OSM_BUILD_CONTAINER_PRIVILEGED" == yes ]] && CONTAINER_OPTS="$CONTAINER_OPTS -c security.privileged=true"