X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2Fhost%2Fstart_build;h=dd69799980c5d0daf9e984baf37900e5635b0aab;hb=d391b9a94323a5e1c6506903fe20ecdb654a1716;hp=06ce3a6eb49b654735a40342b10fc60ad11318c8;hpb=f937a8bd0c2244b1011ea06865092539c45c9679;p=osm%2Fdevops.git diff --git a/jenkins/host/start_build b/jenkins/host/start_build index 06ce3a6e..dd697999 100755 --- a/jenkins/host/start_build +++ b/jenkins/host/start_build @@ -36,13 +36,21 @@ if ! container_exists $OSM_BUILD_CONTAINER; then wait_container_up $OSM_BUILD_CONTAINER RE="fedora|fc[0-9]" if [[ $OSM_BASE_IMAGE =~ $RE ]]; then - container_exec $OSM_BUILD_CONTAINER yum -y install git + container_exec $OSM_BUILD_CONTAINER yum -y install git tar else container_exec $OSM_BUILD_CONTAINER apt -y install git realpath fi - container_exec $OSM_BUILD_CONTAINER git clone ${OSM_GIT_URL}/devops + if [ ${OSM_USE_LOCAL_DEVOPS:-false} ]; then + container_push_devops $OSM_BUILD_CONTAINER + else + container_exec $OSM_BUILD_CONTAINER git clone ${OSM_GIT_URL}/devops + fi else - container_exec $OSM_BUILD_CONTAINER git -C devops pull + if [ ${OSM_USE_LOCAL_DEVOPS:-false} ]; then + container_push_devops $OSM_BUILD_CONTAINER + else + container_exec $OSM_BUILD_CONTAINER git -C devops pull + fi fi container_exec $OSM_BUILD_CONTAINER ./devops/jenkins/$OSM_MDG/start_build