post-slack-message-pass ○ success

Duration: 15s
Queued: 0s
📁 Stage: post-message
🖥 Runner: linux-aws-1
Average Duration
25s
This job: 15s
Failure Rate
0.0%
last 30 days

Job Execution Phases

💡 Tip: Click on any phase bar to jump to that section in the log below

Job Analysis

Job Status: Passed

Status: Job passed successfully

Full Job Log

181 lines
Match - of 0
1 22:42:19 Running with gitlab-runner 18.9.0 (07e534ba)
2 22:42:19 on gitlab-runner-linux-1-746bdd58fd-4cqkw wRxjPbsJX, system ID: r_f0gJVPIyznax
3 22:42:19 feature flags: FF_USE_FASTZIP:true, FF_USE_NEW_BASH_EVAL_STRATEGY:true, FF_USE_DYNAMIC_TRACE_FORCE_SEND_INTERVAL:true, FF_SCRIPT_SECTIONS:true, FF_USE_ADVANCED_POD_SPEC_CONFIGURATION:true, FF_PRINT_POD_EVENTS:true, FF_USE_DUMB_INIT_WITH_KUBERNETES_EXECUTOR:true, FF_LOG_IMAGES_CONFIGURED_FOR_JOB:true, FF_CLEAN_UP_FAILED_CACHE_EXTRACT:true, FF_GIT_URLS_WITHOUT_TOKENS:true, FF_WAIT_FOR_POD_TO_BE_REACHABLE:true, FF_USE_FLEETING_ACQUIRE_HEARTBEATS:true, FF_USE_JOB_ROUTER:true
4 22:42:19 Resolving secrets
5 22:42:19 section_start:1778020939:prepare_executor
6 22:42:19 +Preparing the "kubernetes" executor
7 22:42:19 Using Kubernetes namespace: gitlab-runner
8 22:42:19 Using Kubernetes executor with image registry.scandit.com/dockerfiles/pyenv:ubuntu-3.12@sha256:9b81c4935aa331311e8c891e6b2b84f09c95bf1de5863ff990d9149e13600145 ...
9 22:42:19 Using attach strategy to execute scripts...
10 22:42:19 Using effective pull policy of [Always] for container build
11 22:42:19 Using effective pull policy of [Always] for container helper
12 22:42:19 Using effective pull policy of [Always] for container init-permissions
13 22:42:20 section_end:1778020940:prepare_executor
14 22:42:20 +section_start:1778020940:prepare_script
15 22:42:20 +Preparing environment
16 22:42:20 Using FF_USE_POD_ACTIVE_DEADLINE_SECONDS, the Pod activeDeadlineSeconds will be set to the job timeout: 1h0m0s...
17 22:42:20 WARNING: Advanced Pod Spec configuration enabled, merging the provided PodSpec to the generated one. This is a beta feature and is subject to change. Feedback is collected in this issue: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/29659 ...
18 22:42:20 Subscribing to Kubernetes Pod events...
19 22:42:20 Type Reason Message
20 22:42:20 Normal Scheduled Successfully assigned gitlab-runner/runner-wrxjpbsjx-project-621-concurrent-0-bjjr1cc6 to ip-10-0-36-227.eu-central-1.compute.internal
21 22:42:21 Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" already present on machine
22 22:42:21 Normal Created Created container: init-permissions
23 22:42:21 Normal Started Started container init-permissions
24 22:42:22 Normal Pulling Pulling image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/pyenv@sha256:9b81c4935aa331311e8c891e6b2b84f09c95bf1de5863ff990d9149e13600145"
25 22:42:28 Normal Pulled Successfully pulled image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/pyenv@sha256:9b81c4935aa331311e8c891e6b2b84f09c95bf1de5863ff990d9149e13600145" in 5.782s (5.782s including waiting). Image size: 446658959 bytes.
26 22:42:28 Normal Created Created container: build
27 22:42:28 Normal Started Started container build
28 22:42:28 Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" already present on machine
29 22:42:28 Normal Created Created container: helper
30 22:42:28 Normal Started Started container helper
31 22:42:30 Running on runner-wrxjpbsjx-project-621-concurrent-0-bjjr1cc6 via gitlab-runner-linux-1-746bdd58fd-4cqkw...
32 22:42:30
33 22:42:30 section_end:1778020950:prepare_script
34 22:42:30 +section_start:1778020950:get_sources
35 22:42:30 +Getting source from Git repository
36 22:42:31 Gitaly correlation ID: 01KQX4WXS71KZ7VF07GZRA8N04
37 22:42:31 Fetching changes with git depth set to 50...
38 22:42:31 Initialized empty Git repository in /build/internal/gitlab-templates/.git/
39 22:42:31 Created fresh repository.
40 22:42:32 Checking out 13881c4b as detached HEAD (ref is refs/merge-requests/638/merge)...
41 22:42:32
42 22:42:32 Skipping Git submodules setup
43 22:42:32
44 22:42:32 section_end:1778020952:get_sources
45 22:42:32 +section_start:1778020952:download_artifacts
46 22:42:32 +Downloading artifacts
47 22:42:32 Downloading artifacts for test-install-deps (54442843)...
48 22:42:32 Downloading artifacts from coordinator... ok correlation_id=01KQX4XAG0FSG8P0NS0P7ERSA5 host=gitlab.scandit.com id=54442843 responseStatus=200 OK token=64_kmZPfD
49 22:42:32 Downloading artifacts for snyk-container-test (54442851)...
50 22:42:33 Downloading artifacts from coordinator... ok correlation_id=01KQX4XANEJ63T8SKV9B5Y209P host=gitlab.scandit.com id=54442851 responseStatus=200 OK token=64_kmZPfD
51 22:42:33 Downloading artifacts for snyk-container-test-delta (54442852)...
52 22:42:33 Downloading artifacts from coordinator... ok correlation_id=01KQX4XATYDE2WKXR712MPPMVX host=gitlab.scandit.com id=54442852 responseStatus=200 OK token=64_kmZPfD
53 22:42:33 Downloading artifacts for test-install-deps-extra (54442912)...
54 22:42:33 Downloading artifacts from coordinator... ok correlation_id=01KQX4XB0Y1YMJYD5P8C006N7G host=gitlab.scandit.com id=54442912 responseStatus=200 OK token=64_kmZPfD
55 22:42:33 Downloading artifacts for test-preinstalled-deps (54442915)...
56 22:42:33 Downloading artifacts from coordinator... ok correlation_id=01KQX4XB6JMQT85PEC9KVCF467 host=gitlab.scandit.com id=54442915 responseStatus=200 OK token=64_kmZPfD
57 22:42:33
58 22:42:33 section_end:1778020953:download_artifacts
59 22:42:33 +section_start:1778020953:step_script
60 22:42:33 +Executing "step_script" stage of the job script
61 22:42:34 section_start:1778020953:section_pre_build_script_0[hide_duration=true,collapsed=true] $ function cleanup {
62 22:42:34 rv=$?
63 22:42:34 if [ $rv -ne 0 ]; then
64 22:42:34 echo ""
65 22:42:34 echo " Failure Cause Analysis might help, please open this link:"
66 22:42:34 echo " https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
67 22:42:34 echo ""
68 22:42:34 fi
69 22:42:34 echo ""
70 22:42:34 echo "Scout Analysis: https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
71 22:42:34 echo ""
72 22:42:34 echo ""
73 22:42:34 echo "Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-host=${SC_K8S_NODE_NAME}&var-namespace=${SC_K8S_NAMESPACE}&var-pod=${HOSTNAME}&var-resolution=15&from=${__start_time}000&to=${EPOCHSECONDS}000"
74 22:42:34 echo "Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-node=${SC_K8S_NODE_NAME}&var-resolution=15s&from=${__start_time}000&to=${EPOCHSECONDS}000"
75 22:42:34 echo "Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=${LOKI_DATASOURCE}&var-filters=log_group|=|gitlab-runner&var-filters=source|=|${LOKI_LOGSOURCE}&var-filters=namespace|=|${SC_K8S_NAMESPACE}&var-filters=CI_PROJECT_ID|=|${CI_PROJECT_ID}&var-filters=CI_PIPELINE_ID|=|${CI_PIPELINE_ID}&var-filters=CI_JOB_ID|=|${CI_JOB_ID}&sortOrder=Ascending&from=${__start_time}000&to=${EPOCHSECONDS}000"
76 22:42:34 echo "Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=$(date -d '-7 days' +%Y-%m-%d)~$(date -d '+7 days' +%Y-%m-%d)&job_name=${CI_JOB_NAME}&project=${CI_PROJECT_PATH}"
77 22:42:34 echo ""
78 22:42:34 exit $rv
79 22:42:34 }
80 22:42:34 trap cleanup EXIT
81 22:42:34 echo "INFO: This is the CI job pre_build_script"
82 22:42:34 echo "INFO: It's defined in the backend/infra/aws repo."
83 22:42:34 echo "INFO: These additional Scandit variables are available to you:"
84 22:42:34 echo " SC_K8S_NODE_NAME: $SC_K8S_NODE_NAME"
85 22:42:34 echo " SC_K8S_IMAGE_ID: $SC_K8S_IMAGE_ID"
86 22:42:34 echo " SC_K8S_KYVERNO_PATCHES: |"
87 22:42:34 echo "$SC_K8S_KYVERNO_PATCHES" | sed 's/^/ /'
88 22:42:34 echo "cpu (r/l): ${SC_K8S_REQUESTS_CPU}/${SC_K8S_LIMITS_CPU}"
89 22:42:34 if command -v numfmt >/dev/null 2>&1; then
90 22:42:34 echo "memory (r/l): $(numfmt --to=iec --suffix=B $SC_K8S_REQUESTS_MEMORY)/$(numfmt --to=iec --suffix=B $SC_K8S_LIMITS_MEMORY)"
91 22:42:34 else
92 22:42:34 echo "memory (r/l): ${SC_K8S_REQUESTS_MEMORY}/${SC_K8S_LIMITS_MEMORY}"
93 22:42:34 fi
94 22:42:34 __start_time=${EPOCHSECONDS}
95 22:42:34 echo ""
96 22:42:34 echo "Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-host=${SC_K8S_NODE_NAME}&var-namespace=${SC_K8S_NAMESPACE}&var-pod=${HOSTNAME}&var-resolution=15&from=${__start_time}000&to=now"
97 22:42:34 echo "Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-node=${SC_K8S_NODE_NAME}&var-resolution=15s&from=${__start_time}000&to=now"
98 22:42:34 echo "Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=${LOKI_DATASOURCE}&var-filters=log_group|=|gitlab-runner&var-filters=source|=|${LOKI_LOGSOURCE}&var-filters=namespace|=|${SC_K8S_NAMESPACE}&var-filters=CI_PROJECT_ID|=|${CI_PROJECT_ID}&var-filters=CI_PIPELINE_ID|=|${CI_PIPELINE_ID}&var-filters=CI_JOB_ID|=|${CI_JOB_ID}&sortOrder=Ascending&from=${__start_time}000&to=now"
99 22:42:34 echo "Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=$(date -d '-7 days' +%Y-%m-%d)~$(date -d '+7 days' +%Y-%m-%d)&job_name=${CI_JOB_NAME}&project=${CI_PROJECT_PATH}"
100 22:42:34 echo ""
101 22:42:34 echo "Setting up credentials for Gitlab Python registries"
102 22:42:34 mkdir -p ~
103 22:42:34 echo "machine gitlab.scandit.com" > ~/.netrc
104 22:42:34 echo "login gitlab-ci-token" >> ~/.netrc
105 22:42:34 echo "password ${CI_JOB_TOKEN}" >> ~/.netrc
106 22:42:34 chmod 600 ~/.netrc
107 22:42:34 if command -v git &> /dev/null && [ "$(id -u)" -ne 0 ]; then
108 22:42:34 git config --global --add safe.directory $CI_PROJECT_DIR
109 22:42:34 fi
110 22:42:34 # Sonarqube server is running on the same cluster. Use internal address
111 22:42:34 export SONAR_HOST_URL="http://sonarqube.sonarqube.svc.cluster.local:9000"
112 22:42:34 section_end:1778020953:section_pre_build_script_0
113 22:42:34 INFO: This is the CI job pre_build_script
114 22:42:34 INFO: It's defined in the backend/infra/aws repo.
115 22:42:34 INFO: These additional Scandit variables are available to you:
116 22:42:34 SC_K8S_NODE_NAME: ip-10-0-36-227.eu-central-1.compute.internal
117 22:42:34 SC_K8S_IMAGE_ID:
118 22:42:34 SC_K8S_KYVERNO_PATCHES: |
119 22:42:34
120 22:42:34 cpu (r/l): 1/4
121 22:42:34 memory (r/l): 1.0GB/16GB
122 22:42:34
123 22:42:34 Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-host=ip-10-0-36-227.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-0-bjjr1cc6&var-resolution=15&from=1778020953000&to=now
124 22:42:34 Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-node=ip-10-0-36-227.eu-central-1.compute.internal&var-resolution=15s&from=1778020953000&to=now
125 22:42:34 Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=nVsAo7UVk&var-filters=log_group|=|gitlab-runner&var-filters=source|=|k8s-ci.aws.scandit.io&var-filters=namespace|=|gitlab-runner&var-filters=CI_PROJECT_ID|=|621&var-filters=CI_PIPELINE_ID|=|1580353&var-filters=CI_JOB_ID|=|54442857&sortOrder=Ascending&from=1778020953000&to=now
126 22:42:34 Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=2026-04-29~2026-05-13&job_name=post-slack-message-pass&project=internal/gitlab-templates
127 22:42:34
128 22:42:34 Setting up credentials for Gitlab Python registries
129 22:42:34 $ set +x
130 22:42:34 section_start:1778020953:section_script_step_1[hide_duration=true,collapsed=true] $ if [[ "$SLACK_POSTING_DISABLED" == "true" ]]; then
131 22:42:34 echo "SLACK_POSTING_DISABLED set to true, disabling posting to Slack"
132 22:42:34 exit 0
133 22:42:34 fi
134 22:42:34 section_end:1778020953:section_script_step_1
135 22:42:34 section_start:1778020953:section_script_step_2[hide_duration=true,collapsed=true] $ if [[ -z "$SLACK_WEBHOOK" ]]; then
136 22:42:34 echo "SLACK_WEBHOOK not defined, unable to post to Slack"
137 22:42:34 exit 1
138 22:42:34 fi
139 22:42:34 section_end:1778020953:section_script_step_2
140 22:42:34 section_start:1778020953:section_script_step_3[hide_duration=true,collapsed=true] $ if [[ -n "$MESSAGE" && -n "$MESSAGE_BLOCK" ]]; then
141 22:42:34 echo "Error: Only use either MESSAGE or MESSAGE_BLOCK variable but never both!"
142 22:42:34 exit 1
143 22:42:34 fi
144 22:42:34 section_end:1778020953:section_script_step_3
145 22:42:34 section_start:1778020953:section_script_step_4[hide_duration=true,collapsed=true] $ if [[ -z "$MESSAGE" && -z "$MESSAGE_BLOCK" ]]; then
146 22:42:34 MESSAGE="Warning: Looks like this job is misconfigured: $CI_JOB_URL"
147 22:42:34 fi
148 22:42:34 section_end:1778020953:section_script_step_4
149 22:42:34 section_start:1778020953:section_script_step_5[hide_duration=true,collapsed=true] $ if [[ -n "$MESSAGE" ]]; then
150 22:42:34 MESSAGE_BLOCK="{\"text\":\"${MESSAGE}\"}"
151 22:42:34 echo "Sending text-only message:"
152 22:42:34 else
153 22:42:34 echo "Sending Slack Block format message:"
154 22:42:34 fi
155 22:42:34 echo "$MESSAGE_BLOCK" > msg.json
156 22:42:34 echo "$MESSAGE_BLOCK"
157 22:42:34 section_end:1778020953:section_script_step_5
158 22:42:34 Sending text-only message:
159 22:42:34 {"text":":excellent_burns: All good in gitlab-templates"}
160 22:42:34 $ curl -X POST -H 'Content-type: application/json' --data @msg.json "$SLACK_WEBHOOK"
161 22:42:34 % Total % Received % Xferd Average Speed Time Time Time Current
162 22:42:34 Dload Upload Total Spent Left Speed
163 22:42:34 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 59 100 2 100 57 12 350 --:--:-- --:--:-- --:--:-- 364
164 22:42:34 ok
165 22:42:34 Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54442857
166 22:42:34
167 22:42:34
168 22:42:34 Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-host=ip-10-0-36-227.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-0-bjjr1cc6&var-resolution=15&from=1778020953000&to=1778020954000
169 22:42:34 Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-node=ip-10-0-36-227.eu-central-1.compute.internal&var-resolution=15s&from=1778020953000&to=1778020954000
170 22:42:34 Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=nVsAo7UVk&var-filters=log_group|=|gitlab-runner&var-filters=source|=|k8s-ci.aws.scandit.io&var-filters=namespace|=|gitlab-runner&var-filters=CI_PROJECT_ID|=|621&var-filters=CI_PIPELINE_ID|=|1580353&var-filters=CI_JOB_ID|=|54442857&sortOrder=Ascending&from=1778020953000&to=1778020954000
171 22:42:34 Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=2026-04-29~2026-05-13&job_name=post-slack-message-pass&project=internal/gitlab-templates
172 22:42:34
173 22:42:34
174 22:42:34 section_end:1778020954:step_script
175 22:42:34 +section_start:1778020954:cleanup_file_variables
176 22:42:34 +Cleaning up project directory and file based variables
177 22:42:34
178 22:42:34 section_end:1778020954:cleanup_file_variables
179 22:42:34 +
180 22:42:34 Job succeeded
181