From: garciadeblas Date: Wed, 7 Sep 2016 13:34:11 +0000 (+0200) Subject: Changes in RO start_build to make Jenkins Job work X-Git-Tag: v1.0.0~30 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F84%2F284%2F1;p=osm%2Fdevops.git Changes in RO start_build to make Jenkins Job work Change-Id: Ibaf9ff2592152113cec0b946d80742ae83ae724c Signed-off-by: garciadeblas --- diff --git a/jenkins/RO/start_build b/jenkins/RO/start_build index 0db007b7..89c6d955 100755 --- a/jenkins/RO/start_build +++ b/jenkins/RO/start_build @@ -1,4 +1,4 @@ -#!/bin/bash +g!/bin/bash # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -34,8 +34,8 @@ else 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" + git fetch --all || FATAL "git fetch didn't work" + git checkout -f $1 || FATAL "git checkout '$1' didn't work" fi INFO "starting build"