Loading .gitlab-ci.yml +2 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,8 @@ stages: .project-variables: &project-variables before_script: # build label - if [ -f ${BUILD_LABEL_TMPFILE} ]; then export BUILD_LABEL=`cat ${BUILD_LABEL_TMPFILE}`; fi - if [[ -f ${BUILD_LABEL_TMPFILE} ]] ; then export BUILD_LABEL=`cat ${BUILD_LABEL_TMPFILE}`; fi - if [[ ! -z "${BUILD_LABEL}" ]] ; then export BUILD_LABEL=$(echo "${BUILD_LABEL}" | sed 's/[^[:alnum:]]/-/g;s/^[-]*//;s/[-]*$//' | tr '[:upper:]' '[:lower:]'); fi # get k8s config - if [[ -f ${BUILD_LABEL_TMPFILE} ]] ; then export BUILD_LABEL=`cat ${BUILD_LABEL_TMPFILE}`; fi - if [[ ! -z "${BUILD_LABEL}" ]] ; then export BUILD_LABEL=$(echo "${BUILD_LABEL}" | sed 's/[^[:alnum:]]/-/g;s/^[-]*//;s/[-]*$//' | tr '[:upper:]' '[:lower:]'); fi Loading Loading
.gitlab-ci.yml +2 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,8 @@ stages: .project-variables: &project-variables before_script: # build label - if [ -f ${BUILD_LABEL_TMPFILE} ]; then export BUILD_LABEL=`cat ${BUILD_LABEL_TMPFILE}`; fi - if [[ -f ${BUILD_LABEL_TMPFILE} ]] ; then export BUILD_LABEL=`cat ${BUILD_LABEL_TMPFILE}`; fi - if [[ ! -z "${BUILD_LABEL}" ]] ; then export BUILD_LABEL=$(echo "${BUILD_LABEL}" | sed 's/[^[:alnum:]]/-/g;s/^[-]*//;s/[-]*$//' | tr '[:upper:]' '[:lower:]'); fi # get k8s config - if [[ -f ${BUILD_LABEL_TMPFILE} ]] ; then export BUILD_LABEL=`cat ${BUILD_LABEL_TMPFILE}`; fi - if [[ ! -z "${BUILD_LABEL}" ]] ; then export BUILD_LABEL=$(echo "${BUILD_LABEL}" | sed 's/[^[:alnum:]]/-/g;s/^[-]*//;s/[-]*$//' | tr '[:upper:]' '[:lower:]'); fi Loading