post-slack-message-pass ○ success

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