X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1e48d4f97d643b3a36f7856284e3a95430bc8f92..b7e4507cfe19368f0f80dddfde111f2dd0a690fb:/jenkins/run-build-packages-sso.sh?ds=sidebyside diff --git a/jenkins/run-build-packages-sso.sh b/jenkins/run-build-packages-sso.sh index eedb77b30e..cc673a6d33 100755 --- a/jenkins/run-build-packages-sso.sh +++ b/jenkins/run-build-packages-sso.sh @@ -1,6 +1,7 @@ #!/bin/bash -. `dirname "$(readlink -f "$0")"`/run-library.sh +JENKINS_DIR=$(dirname $(readlink -e "$0")) +. "$JENKINS_DIR/run-library.sh" read -rd "\000" helpmessage </dev/null 2>&1 if [[ "$?" != 0 ]]; then - echo >&2 "$helpmessage" - echo >&2 - echo >&2 "Error: fpm not found" - echo >&2 - exit 1 + echo >&2 "$helpmessage" + echo >&2 + echo >&2 "Error: fpm not found" + echo >&2 + exit 1 fi RUN_BUILD_PACKAGES_PATH="`dirname \"$0\"`" RUN_BUILD_PACKAGES_PATH="`( cd \"$RUN_BUILD_PACKAGES_PATH\" && pwd )`" # absolutized and normalized if [ -z "$RUN_BUILD_PACKAGES_PATH" ] ; then - # error; for some reason, the path is not accessible - # to the script (e.g. permissions re-evaled after suid) - exit 1 # fail + # error; for some reason, the path is not accessible + # to the script (e.g. permissions re-evaled after suid) + exit 1 # fail fi debug_echo "$0 is running from $RUN_BUILD_PACKAGES_PATH" @@ -136,20 +134,6 @@ else GEM=gem fi -if [[ "$TARGET" == "centos6" ]]; then - # CentOS6 comes with git 1.7.1, but we want at least 1.7.6 - # because we use git status --ignore in fpm-info.sh - cd /usr/src - install_package libcurl-devel zlib-devel wget gettext - wget https://www.kernel.org/pub/software/scm/git/git-1.8.5.6.tar.gz - tar xzf git-1.8.5.6.tar.gz - cd git-1.8.5.6 - make configure - ./configure --prefix=/usr --without-tcltk - make all - make install -fi - # Make all files world-readable -- jenkins runs with umask 027, and has checked # out our git tree here chmod o+r "$WORKSPACE" -R @@ -165,13 +149,13 @@ umask 0022 debug_echo "umask is" `umask` if [[ ! -d "$WORKSPACE/packages/$TARGET" ]]; then - mkdir -p $WORKSPACE/packages/$TARGET + mkdir -p "$WORKSPACE/packages/$TARGET" fi # Build the SSO server package handle_rails_package arvados-sso-server "$WORKSPACE" \ - "$WORKSPACE/LICENCE" --url="https://arvados.org" \ - --description="Arvados SSO server - Arvados is a free and open source platform for big data science." \ - --license="Expat license" + "$WORKSPACE/LICENCE" --url="https://arvados.org" \ + --description="Arvados SSO server - Arvados is a free and open source platform for big data science." \ + --license="Expat license" exit $EXITCODE