diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d3cafde839f1cfcee226c86c3d8b02e7bb1b220d..d7ac4e025fae00f9d9492ef9f88ef355b41c51ec 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -90,14 +90,14 @@ ska-tango-examples-tests: echo "Created pipeline for 'ska-tango-examples': $(jq -r '.web_url' <<< "$response")" pipeline_id=$(jq -r '.id' <<< "$response") pipeline_url="https://gitlab.com/api/v4/projects/9673989/pipelines/${pipeline_id}" - jobs_url="$pipeline_url/jobs" + jobs_url="$pipeline_url/jobs?per_page=100" for i in {1..800} do response=$(curl -s --header "PRIVATE-TOKEN: $GITLAB_TOKEN" "$pipeline_url") status=$(jq -r '.status' <<< "$response" || true) if [[ $status == "running" ]]; then response=$(curl -s --header "PRIVATE-TOKEN: $GITLAB_TOKEN" "$jobs_url") - k8steststatus=$(jq -r '.[] | select(.name == "k8s-test" or .name=="k8s-test-no-operator") | .status' <<< $response) + k8steststatus=$(jq -r '.[] | select(.name == "k8s-test") | .status' <<< $response) pythonteststatus=$(jq -r '.[] | select(.name == "python-test") | .status' <<< $response) if [[ $k8steststatus == "success" ]] && [[ $pythonteststatus == "success" ]]; then echo "'ska-tango-examples' success."