diff --git a/jenkins_daily.sh b/jenkins_daily.sh index 51361080..76c202f5 100755 --- a/jenkins_daily.sh +++ b/jenkins_daily.sh @@ -14,6 +14,11 @@ result=0 ## # which PLATFORM +# JOB_NAME is defined when script is called by Jenkins +# PLATFORM must be defined as msvc when called from ssh +if [ ! -z "$JOB_NAME" ];then + PLATFORM=$(echo $JOB_NAME | cut -d= -f 2) +fi if [ "$PLATFORM" == "" ]; then export PLATFORM='' if [ `uname` == Darwin ]; then @@ -56,10 +61,6 @@ mkdir -p $dist echo "---- dist = $dist ------" echo "---- build = $build ------" -echo ++++++++++++++++++++++++++++++++++ -export | sort -echo ++++++++++++++++++++++++++++++++++ - ## # perform the build if [ "$PLATFORM" == "msvc" ]; then