From a7f5c7c65d5fea91769ce1f984110fbfc2f51d83 Mon Sep 17 00:00:00 2001
From: Matteo Di Carlo <matteo.dicarlo@inaf.it>
Date: Mon, 20 Feb 2023 08:46:37 +0100
Subject: [PATCH] ST-1502 per page

Signed-off-by: Matteo Di Carlo <matteo.dicarlo@inaf.it>
---
 .gitlab-ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d3cafde8..d7ac4e02 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."
-- 
GitLab