projects
/
osm
/
devops.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enabling robot tests in CI/CD pipeline
[osm/devops.git]
/
jenkins
/
osmclient
/
start_build
diff --git
a/jenkins/osmclient/start_build
b/jenkins/osmclient/start_build
index
df4fc27
..
155fefa
100755
(executable)
--- a/
jenkins/osmclient/start_build
+++ b/
jenkins/osmclient/start_build
@@
-34,8
+34,12
@@
fi
OSM_git_checkout "$@"
OSM_git_checkout "$@"
-apt update
-apt install -y docker.io
+apt-get update
+apt-get install -y docker.io
+
+# cleanup all pre-existing builds.
+# deb pkg build fails if previous build image is present
+rm -rf deb_dist dist
docker build -t $OSM_MDG .
DOCKER_ARGS="-v $(pwd):$(pwd) -w $(pwd) -u $(id -u):$(id -g) $OSM_MDG"
docker build -t $OSM_MDG .
DOCKER_ARGS="-v $(pwd):$(pwd) -w $(pwd) -u $(id -u):$(id -g) $OSM_MDG"