diff --git a/.jenkins.sh b/.jenkins.sh index 010affd4a791c1a4820166c515ce1ad04a7d3b0a..22ed7fcf2e3f7c2036855e04f827591d5ae7c5c0 100644 --- a/.jenkins.sh +++ b/.jenkins.sh @@ -14,6 +14,19 @@ echo "Using git branch $GIT_BRANCH" bash ./scripts/build-container.sh bash ./scripts/run-container.sh "${run_dir}" "$GIT_BRANCH" +if [[ "$GIT_BRANCH" =~ .*fix-plu$ ]]; then + + apiTestsVersion=$(echo $GIT_BRANCH | cut -d'/' -f 2) + apiTestsVersion=$(echo $apiTestsVersion | cut -d'-' -f 1) + echo apiTestsVersion + + curl -X POST \ + -F token=${ROBOT_HIVE_TAP_TT_TOKEN} \ + -F ref=master \ + -F "variables[API_TESTS_VERSION]=$apiTestsVersion" \ + -F "variables[TEST_SUITE]=NFV" \ + https://forge.etsi.org/rep/api/v4/projects/484/trigger/pipeline +fi ret=$? echo "Final validation result: $ret" exit $ret