Loading api-tests/.gitlab-ci.yml +1 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ Generate API Robot Test Suite docx: - tags script: - 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" artifacts: when: on_success Loading api-tests/scripts/generate.sh +4 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,10 @@ cd /home/etsi/dev/robot/ if [ -z "${1}" ]; then echo "Using git branch $1" exit 0 fi mkdir -p /home/etsi/dev/robot/build cd /home/etsi/dev/robot/build Loading Loading
api-tests/.gitlab-ci.yml +1 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ Generate API Robot Test Suite docx: - tags script: - 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" artifacts: when: on_success Loading
api-tests/scripts/generate.sh +4 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,10 @@ cd /home/etsi/dev/robot/ if [ -z "${1}" ]; then echo "Using git branch $1" exit 0 fi mkdir -p /home/etsi/dev/robot/build cd /home/etsi/dev/robot/build Loading