Skip to content
Snippets Groups Projects
Commit f24badbf authored by felmer's avatar felmer
Browse files

LMS-1610 fix bug

SVN: 17902
parent ff53986f
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,7 @@ LOCAL_PROJECTS=.. ...@@ -18,6 +18,7 @@ LOCAL_PROJECTS=..
OPENBIS_SERVER=$WORK/openBIS-server OPENBIS_SERVER=$WORK/openBIS-server
CI_HOST=cisd-vesuvio.ethz.ch CI_HOST=cisd-vesuvio.ethz.ch
CI_HOME=/localhome/ci
SSH_CRUISE_CONTROL_NAME=ci@$CI_HOST SSH_CRUISE_CONTROL_NAME=ci@$CI_HOST
HUDSON_ARTIFACTS=hudson/jobs HUDSON_ARTIFACTS=hudson/jobs
CI_HOST_IP=`host $CI_HOST|grep address|awk '{print $4}'` CI_HOST_IP=`host $CI_HOST|grep address|awk '{print $4}'`
...@@ -326,9 +327,9 @@ function fetch_latest_artifacts_from_cruise_control { ...@@ -326,9 +327,9 @@ function fetch_latest_artifacts_from_cruise_control {
local last_build="$HUDSON_ARTIFACTS/$proj_name/lastSuccessful/archive/_main/targets/dist" local last_build="$HUDSON_ARTIFACTS/$proj_name/lastSuccessful/archive/_main/targets/dist"
if [ $MY_HOST_IP == $CI_HOST_IP ]; then if [ $MY_HOST_IP == $CI_HOST_IP ]; then
local last=`ls -1 /localhome/ci/$last_build | sort | tail -1` local last=`ls -1 $CI_HOME/ci/$last_build | sort | tail -1`
echo "Fetching artifacts for $proj_name: $last" echo "Fetching artifacts for $proj_name: $last"
cp $last_build/*.zip $dest_dir cp $CI_HOME/$last_build/*.zip $dest_dir
else else
local list_cmd="ls -1 $last_build | sort | tail -1" local list_cmd="ls -1 $last_build | sort | tail -1"
local last=`echo $list_cmd | ssh $SSH_CRUISE_CONTROL_NAME -T` local last=`echo $list_cmd | ssh $SSH_CRUISE_CONTROL_NAME -T`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment