Commit b55f856f authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Fix the target branch for a tag

parent c9343f77
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -32,7 +32,7 @@ Generate API Robot Test Suite docx:
    - tags
    - tags
  script:
  script:
    - echo 'Generate API Robot Test Suite docx'
    - echo 'Generate API Robot Test Suite docx'
    - tagTargetBranch=$(git branch -a --contains tags/$CI_COMMIT_REF_NAME | tail -n 1)
    - tagTargetBranch=$(git branch -a --contains tags/$CI_COMMIT_REF_NAME | grep -E "Release-.|([0-9]{1}(\.[0-9]){2}){1}(-dev){0,1}" | head -n 1)
    - docker run -v "$(pwd):/home/etsi/dev/robot" -u $(id -u):$(id -g) api-tests-validation:latest "bash" -c  "/home/etsi/dev/scripts/generate.sh $tagTargetBranch"
    - docker run -v "$(pwd):/home/etsi/dev/robot" -u $(id -u):$(id -g) api-tests-validation:latest "bash" -c  "/home/etsi/dev/scripts/generate.sh $tagTargetBranch"
  artifacts:
  artifacts:
    when: on_success
    when: on_success
+4 −1
Original line number Original line Diff line number Diff line
@@ -4,7 +4,10 @@


cd /home/etsi/dev/robot/ 
cd /home/etsi/dev/robot/ 


if [ -z "${1}" ]; then
	echo "Using git branch $1"
	echo "Using git branch $1"
	exit 0
fi


mkdir -p /home/etsi/dev/robot/build
mkdir -p /home/etsi/dev/robot/build
cd /home/etsi/dev/robot/build
cd /home/etsi/dev/robot/build