From 4d4283a03249be87a9e6a955da66e80aad428489 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Fri, 18 Sep 2020 12:03:21 +0200 Subject: [PATCH 1/4] report next pipeline --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ed5e762b7..c412b0abe 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -87,6 +87,7 @@ checkout: - echo $CI_PIPELINE_ID >> $TESTROOT/GitLabCI.queue - while [ $(awk "/$CI_PIPELINE_ID/{print NR}" $TESTROOT/GitLabCI.queue) != 1 ]; do sleep 5m; + echo 'next pipeline $(head -n 1 $TESTROOT/GitLabCI.queue)'; done script: - mkdir -p $DAMASKROOT From f34525fd3ac30dc61fffb5909bfa26be7452919e Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Fri, 18 Sep 2020 12:33:54 +0200 Subject: [PATCH 2/4] allow shell substitution --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c412b0abe..ff58727d5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -87,7 +87,7 @@ checkout: - echo $CI_PIPELINE_ID >> $TESTROOT/GitLabCI.queue - while [ $(awk "/$CI_PIPELINE_ID/{print NR}" $TESTROOT/GitLabCI.queue) != 1 ]; do sleep 5m; - echo 'next pipeline $(head -n 1 $TESTROOT/GitLabCI.queue)'; + echo "next pipeline $(head -n 1 $TESTROOT/GitLabCI.queue)"; done script: - mkdir -p $DAMASKROOT From beb8f07a91f5cfc21e2abe283db8bfb860913f7f Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Fri, 18 Sep 2020 12:58:37 +0200 Subject: [PATCH 3/4] more helpful information --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ff58727d5..fb0f17030 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,6 +25,7 @@ before_script: fi - while [ $(awk "/$CI_PIPELINE_ID/{print NR}" $TESTROOT/GitLabCI.queue) != 1 ]; do sleep 5m; + echo "next pipeline in queue has ID $(head -n 1 $TESTROOT/GitLabCI.queue)"; done - source $DAMASKROOT/env/DAMASK.sh - cd $DAMASKROOT/PRIVATE/testing @@ -87,7 +88,7 @@ checkout: - echo $CI_PIPELINE_ID >> $TESTROOT/GitLabCI.queue - while [ $(awk "/$CI_PIPELINE_ID/{print NR}" $TESTROOT/GitLabCI.queue) != 1 ]; do sleep 5m; - echo "next pipeline $(head -n 1 $TESTROOT/GitLabCI.queue)"; + echo "next pipeline in queue has ID $(head -n 1 $TESTROOT/GitLabCI.queue)"; done script: - mkdir -p $DAMASKROOT From 25ad07764081f27f4f774db79afdfc7a8c5fe2f9 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Fri, 18 Sep 2020 14:19:23 +0200 Subject: [PATCH 4/4] report all pipelines in front of me --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fb0f17030..bb4a2e7a0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,7 +25,7 @@ before_script: fi - while [ $(awk "/$CI_PIPELINE_ID/{print NR}" $TESTROOT/GitLabCI.queue) != 1 ]; do sleep 5m; - echo "next pipeline in queue has ID $(head -n 1 $TESTROOT/GitLabCI.queue)"; + echo -e "Currently queued pipelines:\n$(cat $TESTROOT/GitLabCI.queue)\n"; done - source $DAMASKROOT/env/DAMASK.sh - cd $DAMASKROOT/PRIVATE/testing @@ -88,7 +88,7 @@ checkout: - echo $CI_PIPELINE_ID >> $TESTROOT/GitLabCI.queue - while [ $(awk "/$CI_PIPELINE_ID/{print NR}" $TESTROOT/GitLabCI.queue) != 1 ]; do sleep 5m; - echo "next pipeline in queue has ID $(head -n 1 $TESTROOT/GitLabCI.queue)"; + echo -e "Currently queued pipelines:\n$(cat $TESTROOT/GitLabCI.queue)\n"; done script: - mkdir -p $DAMASKROOT