X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2FUI%2Fstart_build;h=b05a7e26b182f8dcd3ae973caf0965197228f740;hb=refs%2Fchanges%2F63%2F363%2F1;hp=5a54d2da9f2208581acc2e30cd840047f0b70423;hpb=a2813695ca8ac01b88c68cc3a37248fadde1d3ab;p=osm%2Fdevops.git diff --git a/jenkins/UI/start_build b/jenkins/UI/start_build index 5a54d2da..b05a7e26 100755 --- a/jenkins/UI/start_build +++ b/jenkins/UI/start_build @@ -37,11 +37,20 @@ else git clone $OSM_GIT_URL/$OSM_MDG cd $OSM_MDG fi -INFO "starting build" -### for start_build -### put your commands here to -### build, test and produce coverage reports +if [ $# -gt 0 ]; then + INFO "Code to compile: gerrit refspec '$1', commit-id: '$2'" + git fetch origin $1 || FATAL "git fetch origin '$1' didn't work" + git checkout -f $2 || FATAL "git checkout -f '$2' didn't work" +else + INFO "Code to compile: master" + git checkout master +fi + +INFO "starting build" +make clean || FATAL "Make clean failed" +make -j16 || FATAL "Make failed" +sudo make install || FATAL "Make install Failed" RC=0