post-slack-message-pass ○ success

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

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