post-slack-block-message ○ success

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