From bcc2bc4c3f74e856bb1badb0a6a6aa0e84e07a1f Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Wed, 31 Aug 2016 15:30:45 +0200 Subject: [PATCH] Minor bug fixed in RO/start_build: fetching before checkout Change-Id: Iaea68b92edd659e0b5c330f4864f1cca349e2808 Signed-off-by: garciadeblas --- jenkins/RO/start_build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jenkins/RO/start_build b/jenkins/RO/start_build index f3d2117c..0db007b7 100755 --- a/jenkins/RO/start_build +++ b/jenkins/RO/start_build @@ -27,13 +27,14 @@ OSM_load_config if [ -d $OSM_MDG ]; then INFO "reusing existing workspace" cd $OSM_MDG - git pull + git pull else INFO "cloning MDG $OSM_MDG from $OSM_GIT_URL/$OSM_MDG" git clone $OSM_GIT_URL/$OSM_MDG cd $OSM_MDG fi if [ $# -gt 0 ]; then + git fetch origin +refs/for/master || FATAL "git fetch didn't work" git checkout $1 || FATAL "git checkout '$1' didn't work" fi -- 2.25.1