post-slack-block-message ○ success

Duration: 13s
Queued: 1s
📁 Stage: post-message
🖥 Runner: linux-aws-1
Average Duration
27s
This job: 13s
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

178 lines
Match - of 0
1 17:09:28 Running with gitlab-runner 18.9.0 (07e534ba)
2 17:09:28 on gitlab-runner-linux-1-5fd7c4d488-2p5ws wRxjPbsJX, system ID: r_ApPziMY2hZUA
3 17:09:28 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 17:09:28 Resolving secrets
5 17:09:28 section_start:1777828168:prepare_executor
6 17:09:28 +Preparing the "kubernetes" executor
7 17:09:28 Using Kubernetes namespace: gitlab-runner
8 17:09:28 Using Kubernetes executor with image registry.scandit.com/dockerfiles/pyenv:ubuntu-3.12@sha256:9b81c4935aa331311e8c891e6b2b84f09c95bf1de5863ff990d9149e13600145 ...
9 17:09:28 Using attach strategy to execute scripts...
10 17:09:28 Using effective pull policy of [Always] for container build
11 17:09:28 Using effective pull policy of [Always] for container helper
12 17:09:28 Using effective pull policy of [Always] for container init-permissions
13 17:09:29 section_end:1777828169:prepare_executor
14 17:09:29 +section_start:1777828169:prepare_script
15 17:09:29 +Preparing environment
16 17:09:29 Using FF_USE_POD_ACTIVE_DEADLINE_SECONDS, the Pod activeDeadlineSeconds will be set to the job timeout: 1h0m0s...
17 17:09:29 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 17:09:29 Subscribing to Kubernetes Pod events...
19 17:09:29 Type Reason Message
20 17:09:29 Normal Scheduled Successfully assigned gitlab-runner/runner-wrxjpbsjx-project-621-concurrent-1-eod61gac to ip-10-0-19-189.eu-central-1.compute.internal
21 17:09:30 Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" already present on machine
22 17:09:30 Normal Created Created container: init-permissions
23 17:09:30 Normal Started Started container init-permissions
24 17:09:30 Normal Pulling Pulling image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/pyenv@sha256:9b81c4935aa331311e8c891e6b2b84f09c95bf1de5863ff990d9149e13600145"
25 17:09:36 Normal Pulled Successfully pulled image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/pyenv@sha256:9b81c4935aa331311e8c891e6b2b84f09c95bf1de5863ff990d9149e13600145" in 5.832s (5.832s including waiting). Image size: 446658959 bytes.
26 17:09:36 Normal Created Created container: build
27 17:09:36 Normal Started Started container build
28 17:09:36 Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" already present on machine
29 17:09:36 Normal Created Created container: helper
30 17:09:36 Normal Started Started container helper
31 17:09:39 Running on runner-wrxjpbsjx-project-621-concurrent-1-eod61gac via gitlab-runner-linux-1-5fd7c4d488-2p5ws...
32 17:09:39
33 17:09:39 section_end:1777828179:prepare_script
34 17:09:39 +section_start:1777828179:get_sources
35 17:09:39 +Getting source from Git repository
36 17:09:40 Gitaly correlation ID: 01KQQD20WHGRRN9216EAFX6M61
37 17:09:40 Fetching changes with git depth set to 50...
38 17:09:40 Initialized empty Git repository in /build/internal/gitlab-templates/.git/
39 17:09:40 Created fresh repository.
40 17:09:40 Checking out 32840034 as detached HEAD (ref is master)...
41 17:09:40
42 17:09:40 Skipping Git submodules setup
43 17:09:40
44 17:09:40 section_end:1777828180:get_sources
45 17:09:40 +section_start:1777828180:step_script
46 17:09:40 +Executing "step_script" stage of the job script
47 17:09:41 section_start:1777828180:section_pre_build_script_0[hide_duration=true,collapsed=true] $ function cleanup {
48 17:09:41 rv=$?
49 17:09:41 if [ $rv -ne 0 ]; then
50 17:09:41 echo ""
51 17:09:41 echo " Failure Cause Analysis might help, please open this link:"
52 17:09:41 echo " https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
53 17:09:41 echo ""
54 17:09:41 fi
55 17:09:41 echo ""
56 17:09:41 echo "Scout Analysis: https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
57 17:09:41 echo ""
58 17:09:41 echo ""
59 17:09:41 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"
60 17:09:41 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"
61 17:09:41 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"
62 17:09:41 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}"
63 17:09:41 echo ""
64 17:09:41 exit $rv
65 17:09:41 }
66 17:09:41 trap cleanup EXIT
67 17:09:41 echo "INFO: This is the CI job pre_build_script"
68 17:09:41 echo "INFO: It's defined in the backend/infra/aws repo."
69 17:09:41 echo "INFO: These additional Scandit variables are available to you:"
70 17:09:41 echo " SC_K8S_NODE_NAME: $SC_K8S_NODE_NAME"
71 17:09:41 echo " SC_K8S_IMAGE_ID: $SC_K8S_IMAGE_ID"
72 17:09:41 echo " SC_K8S_KYVERNO_PATCHES: |"
73 17:09:41 echo "$SC_K8S_KYVERNO_PATCHES" | sed 's/^/ /'
74 17:09:41 echo "cpu (r/l): ${SC_K8S_REQUESTS_CPU}/${SC_K8S_LIMITS_CPU}"
75 17:09:41 if command -v numfmt >/dev/null 2>&1; then
76 17:09:41 echo "memory (r/l): $(numfmt --to=iec --suffix=B $SC_K8S_REQUESTS_MEMORY)/$(numfmt --to=iec --suffix=B $SC_K8S_LIMITS_MEMORY)"
77 17:09:41 else
78 17:09:41 echo "memory (r/l): ${SC_K8S_REQUESTS_MEMORY}/${SC_K8S_LIMITS_MEMORY}"
79 17:09:41 fi
80 17:09:41 __start_time=${EPOCHSECONDS}
81 17:09:41 echo ""
82 17:09:41 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"
83 17:09:41 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"
84 17:09:41 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"
85 17:09:41 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}"
86 17:09:41 echo ""
87 17:09:41 echo "Setting up credentials for Gitlab Python registries"
88 17:09:41 mkdir -p ~
89 17:09:41 echo "machine gitlab.scandit.com" > ~/.netrc
90 17:09:41 echo "login gitlab-ci-token" >> ~/.netrc
91 17:09:41 echo "password ${CI_JOB_TOKEN}" >> ~/.netrc
92 17:09:41 chmod 600 ~/.netrc
93 17:09:41 if command -v git &> /dev/null && [ "$(id -u)" -ne 0 ]; then
94 17:09:41 git config --global --add safe.directory $CI_PROJECT_DIR
95 17:09:41 fi
96 17:09:41 # Sonarqube server is running on the same cluster. Use internal address
97 17:09:41 export SONAR_HOST_URL="http://sonarqube.sonarqube.svc.cluster.local:9000"
98 17:09:41 section_end:1777828180:section_pre_build_script_0
99 17:09:41 INFO: This is the CI job pre_build_script
100 17:09:41 INFO: It's defined in the backend/infra/aws repo.
101 17:09:41 INFO: These additional Scandit variables are available to you:
102 17:09:41 SC_K8S_NODE_NAME: ip-10-0-19-189.eu-central-1.compute.internal
103 17:09:41 SC_K8S_IMAGE_ID:
104 17:09:41 SC_K8S_KYVERNO_PATCHES: |
105 17:09:41
106 17:09:41 cpu (r/l): 1/4
107 17:09:41 memory (r/l): 1.0GB/16GB
108 17:09:41
109 17:09:41 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-19-189.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-1-eod61gac&var-resolution=15&from=1777828180000&to=now
110 17:09:41 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-19-189.eu-central-1.compute.internal&var-resolution=15s&from=1777828180000&to=now
111 17:09:41 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|=|1576293&var-filters=CI_JOB_ID|=|54273500&sortOrder=Ascending&from=1777828180000&to=now
112 17:09:41 Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=2026-04-26~2026-05-10&job_name=post-slack-block-message&project=internal/gitlab-templates
113 17:09:41
114 17:09:41 Setting up credentials for Gitlab Python registries
115 17:09:41 $ set +x
116 17:09:41 section_start:1777828180:section_script_step_1[hide_duration=true,collapsed=true] $ if [[ "$SLACK_POSTING_DISABLED" == "true" ]]; then
117 17:09:41 echo "SLACK_POSTING_DISABLED set to true, disabling posting to Slack"
118 17:09:41 exit 0
119 17:09:41 fi
120 17:09:41 section_end:1777828180:section_script_step_1
121 17:09:41 section_start:1777828180:section_script_step_2[hide_duration=true,collapsed=true] $ if [[ -z "$SLACK_WEBHOOK" ]]; then
122 17:09:41 echo "SLACK_WEBHOOK not defined, unable to post to Slack"
123 17:09:41 exit 1
124 17:09:41 fi
125 17:09:41 section_end:1777828180:section_script_step_2
126 17:09:41 section_start:1777828180:section_script_step_3[hide_duration=true,collapsed=true] $ if [[ -n "$MESSAGE" && -n "$MESSAGE_BLOCK" ]]; then
127 17:09:41 echo "Error: Only use either MESSAGE or MESSAGE_BLOCK variable but never both!"
128 17:09:41 exit 1
129 17:09:41 fi
130 17:09:41 section_end:1777828180:section_script_step_3
131 17:09:41 section_start:1777828180:section_script_step_4[hide_duration=true,collapsed=true] $ if [[ -z "$MESSAGE" && -z "$MESSAGE_BLOCK" ]]; then
132 17:09:41 MESSAGE="Warning: Looks like this job is misconfigured: $CI_JOB_URL"
133 17:09:41 fi
134 17:09:41 section_end:1777828180:section_script_step_4
135 17:09:41 section_start:1777828180:section_script_step_5[hide_duration=true,collapsed=true] $ if [[ -n "$MESSAGE" ]]; then
136 17:09:41 MESSAGE_BLOCK="{\"text\":\"${MESSAGE}\"}"
137 17:09:41 echo "Sending text-only message:"
138 17:09:41 else
139 17:09:41 echo "Sending Slack Block format message:"
140 17:09:41 fi
141 17:09:41 echo "$MESSAGE_BLOCK" > msg.json
142 17:09:41 echo "$MESSAGE_BLOCK"
143 17:09:41 section_end:1777828180:section_script_step_5
144 17:09:41 Sending Slack Block format message:
145 17:09:41 {
146 17:09:41 "blocks": [
147 17:09:41 {
148 17:09:41 "type": "section",
149 17:09:41 "text": {
150 17:09:41 "type": "mrkdwn",
151 17:09:41 "text": "Testing block messages from a <https://gitlab.scandit.com/internal/gitlab-templates/-/jobs/54273500|gitlab-templates pipeline>"
152 17:09:41 }
153 17:09:41 }
154 17:09:41 ]
155 17:09:41 }
156 17:09:41
157 17:09:41 $ curl -X POST -H 'Content-type: application/json' --data @msg.json "$SLACK_WEBHOOK"
158 17:09:41 % Total % Received % Xferd Average Speed Time Time Time Current
159 17:09:41 Dload Upload Total Spent Left Speed
160 17:09:41 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 245 100 2 100 243 12 1499 --:--:-- --:--:-- --:--:-- 1512 100 245 100 2 100 243 12 1499 --:--:-- --:--:-- --:--:-- 1512
161 17:09:41 ok
162 17:09:41 Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54273500
163 17:09:41
164 17:09:41
165 17:09:41 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-19-189.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-1-eod61gac&var-resolution=15&from=1777828180000&to=1777828180000
166 17:09:41 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-19-189.eu-central-1.compute.internal&var-resolution=15s&from=1777828180000&to=1777828180000
167 17:09:41 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|=|1576293&var-filters=CI_JOB_ID|=|54273500&sortOrder=Ascending&from=1777828180000&to=1777828180000
168 17:09:41 Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=2026-04-26~2026-05-10&job_name=post-slack-block-message&project=internal/gitlab-templates
169 17:09:41
170 17:09:41
171 17:09:41 section_end:1777828181:step_script
172 17:09:41 +section_start:1777828181:cleanup_file_variables
173 17:09:41 +Cleaning up project directory and file based variables
174 17:09:41
175 17:09:41 section_end:1777828181:cleanup_file_variables
176 17:09:41 +
177 17:09:41 Job succeeded
178