Commit f01418b7 authored by Antoine Regimbeau's avatar Antoine Regimbeau

Fix mistake in script and add rc variable

parent a3369095
Pipeline #1869 passed with stages
in 53 minutes and 57 seconds
......@@ -175,7 +175,7 @@ deploy:
# Checkout the expected branch
- git checkout -f -q $CI_COMMIT_SHA
script:
- ./CI/deploy.sh $CI_COMMIT_REF_NAME
- ./CI/deploy.sh $CI_COMMIT_REF_NAME $RC_NUMBER
dependencies:
- ubuntu-superbuild-build
- centos-superbuild-build
......
......@@ -2,13 +2,13 @@
# Configure git for tar.xz
git config tar.tar.xz.command "xz -c"
if [ $1 = "develop" ] # check if the branch name is develop or not
pack_suffix=""
if [ $1 = "develop" ] # check if the branch name is develop or not
then # we are on develop
jobs_directory=/home/otbpush/test/$(date +%F)
else # we are on a release branch
jobs_directory=/home/otbpush/test/staging
if [ \( "$#" -eq 2 \) && \( echo "$2" | grep "rc[0-9]*" \) ]
if [ "$#" -eq 2 ]
then # there is a rc tag, we need a suffix for packages
pack_suffix=$(echo "$2" | grep -o "rc[0-9]*") # this retrieve the rc number
fi
......@@ -43,7 +43,7 @@ find build_packages/. -name "*.run" \
# TO REMOVE
###########
ls -all
ls -all build_packages/
###########
echo "Pushing binary packages"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment