build-pre-commit-base-image: [3.14, 4.5.1, 3.14-4.5.1] ○ success
⏱
Duration: 57s
⏳
Queued: 0s
📁
Stage: docker-image
🖥
Runner: linux-aws-1
Average Duration
26s
This job: 57s
Failure Rate
0.0%
last 30 days
External Links
▶
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
411 lines
Match - of 0
1
22:37:51
Running with gitlab-runner 18.9.0 (07e534ba)
2
22:37:51
on gitlab-runner-linux-1-746bdd58fd-4cqkw wRxjPbsJX, system ID: r_f0gJVPIyznax
3
22:37:51
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:37:51
Resolving secrets
5
22:37:51
section_start:1778020671:prepare_executor
6
22:37:51
+Preparing the "kubernetes" executor
7
22:37:51
"CPURequest" overwritten with "2"
8
22:37:51
"MemoryRequest" overwritten with "4G"
9
22:37:51
Using Kubernetes namespace: gitlab-runner
10
22:37:51
Using Kubernetes executor with image registry.scandit.com/dockerfiles/kaniko:v1.27.4-crane@sha256:fa662cefab90e8cde8767935540790733c85bd963f2c18b444d6595e3e91a0ff ...
11
22:37:51
Using attach strategy to execute scripts...
12
22:37:51
Using effective pull policy of [Always] for container build
13
22:37:51
Using effective pull policy of [Always] for container helper
14
22:37:51
Using effective pull policy of [Always] for container init-permissions
15
22:37:51
section_end:1778020671:prepare_executor
16
22:37:51
+section_start:1778020671:prepare_script
17
22:37:51
+Preparing environment
18
22:37:51
Using FF_USE_POD_ACTIVE_DEADLINE_SECONDS, the Pod activeDeadlineSeconds will be set to the job timeout: 1h0m0s...
19
22:37:51
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 ...
20
22:37:52
Subscribing to Kubernetes Pod events...
21
22:37:52
Type Reason Message
22
22:37:52
Warning FailedScheduling 0/30 nodes are available: 1 node(s) had untolerated taint {scandit.io/clickhouse: production}, 1 node(s) had untolerated taint {scandit.io/clickhouse: staging}, 1 node(s) had untolerated taint {scandit.io/sonarqube: dedicated}, 21 node(s) didn't match Pod's node affinity/selector, 6 Insufficient cpu. preemption: 0/30 nodes are available: 24 Preemption is not helpful for scheduling, 6 No preemption victims found for incoming pod.
23
22:37:57
Warning FailedScheduling 0/30 nodes are available: 1 node(s) had untolerated taint {scandit.io/clickhouse: production}, 1 node(s) had untolerated taint {scandit.io/clickhouse: staging}, 1 node(s) had untolerated taint {scandit.io/sonarqube: dedicated}, 21 node(s) didn't match Pod's node affinity/selector, 6 Insufficient cpu. preemption: 0/30 nodes are available: 24 Preemption is not helpful for scheduling, 6 No preemption victims found for incoming pod.
24
22:37:57
Warning FailedScheduling 0/30 nodes are available: 1 node(s) had untolerated taint {scandit.io/clickhouse: production}, 1 node(s) had untolerated taint {scandit.io/clickhouse: staging}, 1 node(s) had untolerated taint {scandit.io/sonarqube: dedicated}, 21 node(s) didn't match Pod's node affinity/selector, 6 Insufficient cpu. preemption: 0/30 nodes are available: 24 Preemption is not helpful for scheduling, 6 No preemption victims found for incoming pod.
25
22:37:58
Warning FailedScheduling 0/31 nodes are available: 1 node(s) had untolerated taint {node.kubernetes.io/not-ready: }, 1 node(s) had untolerated taint {scandit.io/clickhouse: production}, 1 node(s) had untolerated taint {scandit.io/clickhouse: staging}, 1 node(s) had untolerated taint {scandit.io/sonarqube: dedicated}, 21 node(s) didn't match Pod's node affinity/selector, 6 Insufficient cpu. preemption: 0/31 nodes are available: 25 Preemption is not helpful for scheduling, 6 No preemption victims found for incoming pod.
26
22:37:59
Warning FailedScheduling 0/31 nodes are available: 1 node(s) had untolerated taint {node.kubernetes.io/not-ready: }, 1 node(s) had untolerated taint {scandit.io/clickhouse: production}, 1 node(s) had untolerated taint {scandit.io/clickhouse: staging}, 1 node(s) had untolerated taint {scandit.io/sonarqube: dedicated}, 21 node(s) didn't match Pod's node affinity/selector, 6 Insufficient cpu. preemption: 0/31 nodes are available: 25 Preemption is not helpful for scheduling, 6 No preemption victims found for incoming pod.
27
22:38:07
Warning FailedScheduling 0/31 nodes are available: 1 node(s) had untolerated taint {node.kubernetes.io/not-ready: }, 1 node(s) had untolerated taint {scandit.io/clickhouse: production}, 1 node(s) had untolerated taint {scandit.io/clickhouse: staging}, 1 node(s) had untolerated taint {scandit.io/sonarqube: dedicated}, 21 node(s) didn't match Pod's node affinity/selector, 6 Insufficient cpu. preemption: 0/31 nodes are available: 25 Preemption is not helpful for scheduling, 6 No preemption victims found for incoming pod.
28
22:38:07
Warning FailedScheduling 0/31 nodes are available: 1 node(s) had untolerated taint {node.kubernetes.io/not-ready: }, 1 node(s) had untolerated taint {scandit.io/clickhouse: production}, 1 node(s) had untolerated taint {scandit.io/clickhouse: staging}, 1 node(s) had untolerated taint {scandit.io/sonarqube: dedicated}, 21 node(s) didn't match Pod's node affinity/selector, 6 Insufficient cpu. preemption: 0/31 nodes are available: 25 Preemption is not helpful for scheduling, 6 No preemption victims found for incoming pod.
29
22:38:09
Normal Scheduled Successfully assigned gitlab-runner/runner-wrxjpbsjx-project-621-concurrent-9-2duvrszz to ip-10-0-27-85.eu-central-1.compute.internal
30
22:38:09
Normal TaintManagerEviction Cancelling deletion of Pod gitlab-runner/runner-wrxjpbsjx-project-621-concurrent-9-2duvrszz
31
22:38:12
Normal Pulling Pulling image "gitlab/gitlab-runner-helper:x86_64-v18.8.0"
32
22:38:13
Normal Pulled Successfully pulled image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" in 1.329s (1.329s including waiting). Image size: 39949060 bytes.
33
22:38:15
Normal Created Created container: init-permissions
34
22:38:16
Normal Started Started container init-permissions
35
22:38:17
Normal Pulling Pulling image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/kaniko@sha256:fa662cefab90e8cde8767935540790733c85bd963f2c18b444d6595e3e91a0ff"
36
22:38:20
Normal Pulled Successfully pulled image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/kaniko@sha256:fa662cefab90e8cde8767935540790733c85bd963f2c18b444d6595e3e91a0ff" in 3.618s (3.618s including waiting). Image size: 50126433 bytes.
37
22:38:26
Normal Created Created container: build
38
22:38:26
Normal Started Started container build
39
22:38:26
Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" already present on machine
40
22:38:28
Normal Created Created container: helper
41
22:38:28
Normal Started Started container helper
42
22:38:32
Running on runner-wrxjpbsjx-project-621-concurrent-9-2duvrszz via gitlab-runner-linux-1-746bdd58fd-4cqkw...
43
22:38:32
44
22:38:32
section_end:1778020712:prepare_script
45
22:38:32
+section_start:1778020712:get_sources
46
22:38:32
+Getting source from Git repository
47
22:38:33
Gitaly correlation ID: 01KQX4MQNGX7MZTQTZ75WE806Q
48
22:38:33
Fetching changes with git depth set to 1...
49
22:38:33
Initialized empty Git repository in /build/internal/gitlab-templates/.git/
50
22:38:33
Created fresh repository.
51
22:38:33
Checking out 22f5b5c3 as detached HEAD (ref is refs/merge-requests/639/merge)...
52
22:38:33
53
22:38:33
Skipping Git submodules setup
54
22:38:33
55
22:38:33
section_end:1778020713:get_sources
56
22:38:33
+section_start:1778020713:step_script
57
22:38:33
+Executing "step_script" stage of the job script
58
22:38:34
section_start:1778020713:section_pre_build_script_0[hide_duration=true,collapsed=true]
$ function cleanup {
59
22:38:34
rv=$?
60
22:38:34
if [ $rv -ne 0 ]; then
61
22:38:34
echo ""
62
22:38:34
echo " Failure Cause Analysis might help, please open this link:"
63
22:38:34
echo " https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
64
22:38:34
echo ""
65
22:38:34
fi
66
22:38:34
echo ""
67
22:38:34
echo "Scout Analysis: https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
68
22:38:34
echo ""
69
22:38:34
echo ""
70
22:38: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"
71
22:38: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"
72
22:38: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"
73
22:38: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}"
74
22:38:34
echo ""
75
22:38:34
exit $rv
76
22:38:34
}
77
22:38:34
trap cleanup EXIT
78
22:38:34
echo "INFO: This is the CI job pre_build_script"
79
22:38:34
echo "INFO: It's defined in the backend/infra/aws repo."
80
22:38:34
echo "INFO: These additional Scandit variables are available to you:"
81
22:38:34
echo " SC_K8S_NODE_NAME: $SC_K8S_NODE_NAME"
82
22:38:34
echo " SC_K8S_IMAGE_ID: $SC_K8S_IMAGE_ID"
83
22:38:34
echo " SC_K8S_KYVERNO_PATCHES: |"
84
22:38:34
echo "$SC_K8S_KYVERNO_PATCHES" | sed 's/^/ /'
85
22:38:34
echo "cpu (r/l): ${SC_K8S_REQUESTS_CPU}/${SC_K8S_LIMITS_CPU}"
86
22:38:34
if command -v numfmt >/dev/null 2>&1; then
87
22:38:34
echo "memory (r/l): $(numfmt --to=iec --suffix=B $SC_K8S_REQUESTS_MEMORY)/$(numfmt --to=iec --suffix=B $SC_K8S_LIMITS_MEMORY)"
88
22:38:34
else
89
22:38:34
echo "memory (r/l): ${SC_K8S_REQUESTS_MEMORY}/${SC_K8S_LIMITS_MEMORY}"
90
22:38:34
fi
91
22:38:34
__start_time=${EPOCHSECONDS}
92
22:38:34
echo ""
93
22:38: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"
94
22:38: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"
95
22:38: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"
96
22:38: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}"
97
22:38:34
echo ""
98
22:38:34
echo "Setting up credentials for Gitlab Python registries"
99
22:38:34
mkdir -p ~
100
22:38:34
echo "machine gitlab.scandit.com" > ~/.netrc
101
22:38:34
echo "login gitlab-ci-token" >> ~/.netrc
102
22:38:34
echo "password ${CI_JOB_TOKEN}" >> ~/.netrc
103
22:38:34
chmod 600 ~/.netrc
104
22:38:34
if command -v git &> /dev/null && [ "$(id -u)" -ne 0 ]; then
105
22:38:34
git config --global --add safe.directory $CI_PROJECT_DIR
106
22:38:34
fi
107
22:38:34
# Sonarqube server is running on the same cluster. Use internal address
108
22:38:34
export SONAR_HOST_URL="http://sonarqube.sonarqube.svc.cluster.local:9000"
109
22:38:34
section_end:1778020713:section_pre_build_script_0
110
22:38:34
INFO: This is the CI job pre_build_script
111
22:38:34
INFO: It's defined in the backend/infra/aws repo.
112
22:38:34
INFO: These additional Scandit variables are available to you:
113
22:38:34
SC_K8S_NODE_NAME: ip-10-0-27-85.eu-central-1.compute.internal
114
22:38:34
SC_K8S_IMAGE_ID:
115
22:38:34
SC_K8S_KYVERNO_PATCHES: |
116
22:38:34
117
22:38:34
cpu (r/l): 2/4
118
22:38:34
memory (r/l): 4000000000/17179869184
119
22:38:34
120
22:38: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-27-85.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-9-2duvrszz&var-resolution=15&from=1778020713000&to=now
121
22:38: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-27-85.eu-central-1.compute.internal&var-resolution=15s&from=1778020713000&to=now
122
22:38: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|=|1580356&var-filters=CI_JOB_ID|=|54442882&sortOrder=Ascending&from=1778020713000&to=now
123
22:38:34
date: invalid date '-7 days'
124
22:38:34
date: invalid date '+7 days'
125
22:38:34
Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build-pre-commit-base-image: [3.14, 4.5.1, 3.14-4.5.1]&project=internal/gitlab-templates
126
22:38:34
127
22:38:34
Setting up credentials for Gitlab Python registries
128
22:38:34
$ echo $DOCKER_CONFIG_JSON > /kaniko/.docker/config.json
129
22:38:34
$ mv /root/.netrc /kaniko/.netrc
130
22:38:34
section_start:1778020714:section_script_step_2[hide_duration=true,collapsed=true]
$ function copy_files() {
131
22:38:34
local src="$1"
132
22:38:34
local trg="$2"
133
22:38:34
for f in $src; do
134
22:38:34
t="$trg/`dirname $f`"
135
22:38:34
mkdir -p $t || true
136
22:38:34
echo "Copy $f"
137
22:38:34
cp -pr $f $trg/$f
138
22:38:34
done
139
22:38:34
}
140
22:38:34
function recursive_hash() {
141
22:38:34
local dir="$1"
142
22:38:34
find "$dir" -exec stat -c '%F|%a|%u:%g|%n' {} + -type f -exec sha256sum {} + | sort | sha256sum | cut -d ' ' -f1
143
22:38:34
}
144
22:38:34
function remote_docker_digest() {
145
22:38:34
local images="$1"
146
22:38:34
echo $images | xargs -n 1 crane digest
147
22:38:34
}
148
22:38:34
function remote_image_exists() {
149
22:38:34
local image="$1"
150
22:38:34
crane manifest $image > /dev/null 2>&1
151
22:38:34
}
152
22:38:34
function remote_images_are_identical() {
153
22:38:34
local imageA="$1"
154
22:38:34
local imageB="$2"
155
22:38:34
if [[ $(remote_docker_digest "$imageA") == $(remote_docker_digest "$imageB") ]]; then
156
22:38:34
return 0
157
22:38:34
else
158
22:38:34
return 1
159
22:38:34
fi
160
22:38:34
}
161
22:38:34
function copy_image() {
162
22:38:34
local image="$1"
163
22:38:34
local remotes="$2"
164
22:38:34
local backup_ext="$3"
165
22:38:34
echo "$image"
166
22:38:34
local source_digest=$(remote_docker_digest $image)
167
22:38:34
local target_digest
168
22:38:34
for registry in $remotes; do
169
22:38:34
if target_digest=$(remote_docker_digest $registry); then
170
22:38:34
if [ "$target_digest" != "$source_digest" ]; then
171
22:38:34
echo "image outdated, overwriting with newest version"
172
22:38:34
crane copy $image $registry
173
22:38:34
crane copy $image ${registry}${backup_ext}
174
22:38:34
fi
175
22:38:34
else
176
22:38:34
echo "image does not exist, writing newest version"
177
22:38:34
crane copy $image $registry
178
22:38:34
crane copy $image ${registry}${backup_ext}
179
22:38:34
fi
180
22:38:34
done
181
22:38:34
}
182
22:38:34
section_end:1778020714:section_script_step_2
183
22:38:34
section_start:1778020714:section_script_step_3[hide_duration=true,collapsed=true]
$ if [ "$CONTAINER_SUBDIR" != "" ]; then
184
22:38:34
echo "Entering subpath $CONTAINER_SUBDIR"
185
22:38:34
cd $CONTAINER_SUBDIR
186
22:38:34
fi
187
22:38:34
section_end:1778020714:section_script_step_3
188
22:38:34
$ copy_files "$CONTAINER_IMPLICIT_REQUIREMENTS $CONTAINER_REQUIREMENTS" "$CONTAINER_CONTEXT_PATH"
189
22:38:34
Copy Dockerfile.pre-commit
190
22:38:34
$ echo "$CONTAINER_BUILD_ENVIRONMENT" > $CONTAINER_CONTEXT_PATH/.docker-build-env
191
22:38:34
$ docker_checksum=$(recursive_hash $CONTAINER_CONTEXT_PATH)
192
22:38:34
section_start:1778020714:section_script_step_7[hide_duration=true,collapsed=true]
$ if [ "$CONTAINER_IMAGE_NAME" == "" ]; then
193
22:38:34
final_image_name=${CONTAINER_IMAGE_URL}
194
22:38:34
else
195
22:38:34
final_image_name=${CONTAINER_IMAGE_URL}/${CONTAINER_IMAGE_NAME}
196
22:38:34
fi
197
22:38:34
section_end:1778020714:section_script_step_7
198
22:38:34
$ final_image_url=${final_image_name}:${docker_checksum}
199
22:38:34
section_start:1778020714:section_script_step_9[hide_duration=true,collapsed=true]
$ if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
200
22:38:34
echo $CONTAINER_IMAGE_VARIABLE=${final_image_url}-P${CI_PROJECT_ID}-${CI_PIPELINE_ID} > $CI_PROJECT_DIR/docker_image_build.env
201
22:38:34
else
202
22:38:34
echo $CONTAINER_IMAGE_VARIABLE=$final_image_url > $CI_PROJECT_DIR/docker_image_build.env
203
22:38:34
fi
204
22:38:34
section_end:1778020714:section_script_step_9
205
22:38:34
$ echo ${CONTAINER_IMAGE_VARIABLE}_HASH=$docker_checksum >> $CI_PROJECT_DIR/docker_image_build.env
206
22:38:34
section_start:1778020714:section_script_step_11[hide_duration=true,collapsed=true]
$ if [ "${FORCE_BUILD}" != "true" ] || command -v crane &> /dev/null; then
207
22:38:34
echo $REGISTRY_PASSWORD | crane auth login $REGISTRY -u $REGISTRY_USER --password-stdin
208
22:38:34
fi
209
22:38:34
section_end:1778020714:section_script_step_11
210
22:38:34
211
22:38:34
WARNING! Your credentials are stored unencrypted in '/kaniko/.docker/config.json'.
212
22:38:34
Configure a credential helper to remove this warning. See
213
22:38:34
https://docs.docker.com/go/credential-store/
214
22:38:34
215
22:38:34
2026/05/05 22:38:34 logged in via /kaniko/.docker/config.json
216
22:38:34
section_start:1778020714:section_script_step_12[hide_duration=true,collapsed=true]
$ if [ "${FORCE_BUILD}" != "true" ] && remote_image_exists "$final_image_url"; then
217
22:38:34
echo "Image already exists, skip the build."
218
22:38:34
echo "$final_image_url"
219
22:38:34
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
220
22:38:34
_EXT=""
221
22:38:34
_BACKUP_EXT="-CI${CI_JOB_ID}-$(date '+%Y%m%d')"
222
22:38:34
elif [[ -n "$CI_MERGE_REQUEST_ID" ]]; then
223
22:38:34
_EXT="-MR${CI_MERGE_REQUEST_IID}"
224
22:38:34
_BACKUP_EXT=""
225
22:38:34
elif [[ "$CI_COMMIT_REF_PROTECTED" == "true" ]]; then
226
22:38:34
_EXT="-${CI_COMMIT_REF_SLUG}"
227
22:38:34
_BACKUP_EXT="-CI${CI_JOB_ID}-$(date '+%Y%m%d')"
228
22:38:34
fi
229
22:38:34
for _TAG in $CONTAINER_IMAGE_TAG; do
230
22:38:34
echo "Copying ${final_image_url} to ${final_image_name}:${_TAG}${_EXT}"
231
22:38:34
copy_image "${final_image_url}" "${final_image_name}:${_TAG}${_EXT}" "${_BACKUP_EXT}"
232
22:38:34
done
233
22:38:34
if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
234
22:38:34
_EXT="-P${CI_PROJECT_ID}-${CI_PIPELINE_ID}"
235
22:38:34
echo "Copying ${final_image_url} to ${final_image_url}${_EXT}"
236
22:38:34
copy_image "${final_image_url}" "${final_image_url}${_EXT}"
237
22:38:34
for _TAG in $CONTAINER_IMAGE_TAG; do
238
22:38:34
echo "Copying ${final_image_url} to ${final_image_name}:${_TAG}${_EXT}"
239
22:38:34
copy_image "${final_image_url}" "${final_image_name}:${_TAG}${_EXT}"
240
22:38:34
done
241
22:38:34
fi
242
22:38:34
exit 0
243
22:38:34
fi
244
22:38:34
section_end:1778020714:section_script_step_12
245
22:38:34
$ DESTINATIONS="--destination=$final_image_url"
246
22:38:34
section_start:1778020714:section_script_step_14[hide_duration=true,collapsed=true]
$ if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
247
22:38:34
_EXT=""
248
22:38:34
TIMESTAMP_TAGS=$CONTAINER_IMAGE_TAG
249
22:38:34
elif [[ -n "$CI_MERGE_REQUEST_ID" ]]; then
250
22:38:34
_EXT="-MR${CI_MERGE_REQUEST_IID}"
251
22:38:34
TIMESTAMP_TAGS=""
252
22:38:34
elif [[ "$CI_COMMIT_REF_PROTECTED" == "true" ]]; then
253
22:38:34
_EXT="-${CI_COMMIT_REF_SLUG}"
254
22:38:34
TIMESTAMP_TAGS=$CONTAINER_IMAGE_TAG
255
22:38:34
fi
256
22:38:34
section_end:1778020714:section_script_step_14
257
22:38:34
section_start:1778020714:section_script_step_15[hide_duration=true,collapsed=true]
$ for _TAG in $CONTAINER_IMAGE_TAG; do
258
22:38:34
DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}"
259
22:38:34
done
260
22:38:34
section_end:1778020714:section_script_step_15
261
22:38:34
section_start:1778020714:section_script_step_16[hide_duration=true,collapsed=true]
$ if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
262
22:38:34
_EXT="-P${CI_PROJECT_ID}-${CI_PIPELINE_ID}"
263
22:38:34
DESTINATIONS="${DESTINATIONS} --destination=${final_image_url}${_EXT}"
264
22:38:34
for _TAG in $CONTAINER_IMAGE_TAG; do
265
22:38:34
DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}"
266
22:38:34
done
267
22:38:34
fi
268
22:38:34
section_end:1778020714:section_script_step_16
269
22:38:34
section_start:1778020714:section_script_step_17[hide_duration=true,collapsed=true]
$ DATE=$(date '+%Y%m%d')
270
22:38:34
for _TAG in $TIMESTAMP_TAGS; do
271
22:38:34
DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}-CI${CI_JOB_ID}-${DATE}"
272
22:38:34
done
273
22:38:34
section_end:1778020714:section_script_step_17
274
22:38:34
section_start:1778020714:section_script_step_18[hide_duration=true,collapsed=true]
$ if [ -n "${CONTAINER_BUILD_ARGS}" ]; then
275
22:38:34
for _BUILD_ARG in $CONTAINER_BUILD_ARGS; do
276
22:38:34
FINAL_BUILD_ARGS="--build-arg $_BUILD_ARG $FINAL_BUILD_ARGS"
277
22:38:34
done
278
22:38:34
fi
279
22:38:34
section_end:1778020714:section_script_step_18
280
22:38:34
section_start:1778020714:section_script_step_19[hide_duration=true,collapsed=true]
$ for _PATH in $CONTAINER_IGNORE_PATHS; do
281
22:38:34
FINAL_IGNORE_PATHS="--ignore-path=$_PATH $FINAL_IGNORE_PATHS"
282
22:38:34
done
283
22:38:34
section_end:1778020714:section_script_step_19
284
22:38:34
section_start:1778020714:section_script_step_20[hide_duration=true,collapsed=true]
$ if [ -n "${CONTAINER_PLATFORM}" ]; then
285
22:38:34
KANIKO_PLATFORM="--custom-platform=${CONTAINER_PLATFORM}"
286
22:38:34
fi
287
22:38:34
section_end:1778020714:section_script_step_20
288
22:38:34
$ ANNOTATIONS=""
289
22:38:34
section_start:1778020714:section_script_step_22[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_COMMIT_REF_NAME" ]]; then
290
22:38:34
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.ref.name=${CI_COMMIT_REF_NAME}"
291
22:38:34
fi
292
22:38:34
section_end:1778020714:section_script_step_22
293
22:38:34
section_start:1778020714:section_script_step_23[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_COMMIT_SHA" ]]; then
294
22:38:34
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.revision=${CI_COMMIT_SHA}"
295
22:38:34
fi
296
22:38:34
section_end:1778020714:section_script_step_23
297
22:38:34
section_start:1778020714:section_script_step_24[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_JOB_URL" ]]; then
298
22:38:34
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.url=${CI_JOB_URL}"
299
22:38:34
fi
300
22:38:34
section_end:1778020714:section_script_step_24
301
22:38:34
section_start:1778020714:section_script_step_25[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_PIPELINE_ID" ]]; then
302
22:38:34
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.pipeline_id=${CI_PIPELINE_ID}"
303
22:38:34
fi
304
22:38:34
section_end:1778020714:section_script_step_25
305
22:38:34
section_start:1778020714:section_script_step_26[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_JOB_ID" ]]; then
306
22:38:34
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.job_id=${CI_JOB_ID}"
307
22:38:34
fi
308
22:38:34
section_end:1778020714:section_script_step_26
309
22:38:34
section_start:1778020714:section_script_step_27[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_JOB_IMAGE" ]]; then
310
22:38:34
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.job_image=${CI_JOB_IMAGE}"
311
22:38:34
fi
312
22:38:34
section_end:1778020714:section_script_step_27
313
22:38:34
$ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.title=${final_image_name}:$(echo $CONTAINER_IMAGE_TAG | cut -d' ' -f1)"
314
22:38:34
$ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.created=$(date -u +%Y-%m-%dT%H:%M:%SZ)"
315
22:38:34
$ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.vendor=Scandit"
316
22:38:34
$ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.scandit.ci.hash=${docker_checksum}"
317
22:38:34
section_start:1778020714:section_script_step_32[hide_duration=true,collapsed=true]
$ if [ -n "${CONTAINER_TARGET_STAGE}" ]; then
318
22:38:34
KANIKO_TARGET="--target $CONTAINER_TARGET_STAGE"
319
22:38:34
fi
320
22:38:34
section_end:1778020714:section_script_step_32
321
22:38:34
$ set -x
322
22:38:34
+ echo '$ /kaniko/executor --context $CONTAINER_CONTEXT_PATH --dockerfile $CONTAINER_DOCKERFILE $DESTINATIONS --cache=true --cache-copy-layers --cache-dir /cache/kaniko --cache-repo $CONTAINER_CACHE_REPO --cache-ttl=$CONTAINER_CACHE_TTL $FINAL_IGNORE_PATHS $KANIKO_TARGET $FINAL_BUILD_ARGS $KANIKO_PLATFORM $ANNOTATIONS $KANIKO_DEFAULT_FLAGS $KANIKO_EXTRA_FLAGS'
323
22:38:34
$ /kaniko/executor --context $CONTAINER_CONTEXT_PATH --dockerfile $CONTAINER_DOCKERFILE $DESTINATIONS --cache=true --cache-copy-layers --cache-dir /cache/kaniko --cache-repo $CONTAINER_CACHE_REPO --cache-ttl=$CONTAINER_CACHE_TTL $FINAL_IGNORE_PATHS $KANIKO_TARGET $FINAL_BUILD_ARGS $KANIKO_PLATFORM $ANNOTATIONS $KANIKO_DEFAULT_FLAGS $KANIKO_EXTRA_FLAGS
324
22:38:34
+ /kaniko/executor --context /build/internal/gitlab-templates/context/ --dockerfile Dockerfile.pre-commit '--destination=registry.scandit.com/internal/gitlab-templates/pre-commit:ddf528d755ba8818ec407ed937a7c0ba0352e83c73f1151ddc5112678e5046b0' '--destination=registry.scandit.com/internal/gitlab-templates/pre-commit:3.14-4.5.1-MR639' '--cache=true' --cache-copy-layers --cache-dir /cache/kaniko --cache-repo registry.scandit.com/internal/gitlab-templates/cache '--cache-ttl=336h' --build-arg 'VERSION=4.5.1' --build-arg 'PYTHON_VERSION=3.14' --annotation 'org.opencontainers.image.ref.name=renovate/registry.scandit.com-dockerfiles-kaniko-1.x' --annotation 'org.opencontainers.image.revision=22f5b5c32e4d267c3494a360c3cf287d060f8b90' --annotation 'org.opencontainers.image.url=https://gitlab.scandit.com/internal/gitlab-templates/-/jobs/54442882' --annotation 'io.gitlab.ci.pipeline_id=1580356' --annotation 'io.gitlab.ci.job_id=54442882' --annotation 'io.gitlab.ci.job_image=registry.scandit.com/dockerfiles/kaniko:v1.27.4-crane@sha256:fa662cefab90e8cde8767935540790733c85bd963f2c18b444d6595e3e91a0ff' --annotation 'org.opencontainers.image.title=registry.scandit.com/internal/gitlab-templates/pre-commit:3.14-4.5.1' --annotation 'org.opencontainers.image.created=2026-05-05T22:38:34Z' --annotation 'org.opencontainers.image.vendor=Scandit' --annotation 'io.scandit.ci.hash=ddf528d755ba8818ec407ed937a7c0ba0352e83c73f1151ddc5112678e5046b0' --preserve-context '--credential-helpers=gitlab' --secret 'id=netrc,src=/kaniko/.netrc' --secret 'id=ci_job_token,env=CI_JOB_TOKEN'
325
22:38:34
INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
326
22:38:41
INFO[0006] Retrieving image manifest registry.scandit.com/dockerfiles/pyenv:ubuntu-3.14-root
327
22:38:41
INFO[0006] Retrieving image registry.scandit.com/dockerfiles/pyenv:ubuntu-3.14-root from registry registry.scandit.com
328
22:38:41
INFO[0006] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
329
22:38:41
INFO[0006] Retrieving image manifest registry.scandit.com/dockerfiles/pyenv:ubuntu-3.14-root
330
22:38:41
INFO[0006] Returning cached image manifest
331
22:38:41
INFO[0007] Retrieving image manifest registry.scandit.com/dockerfiles/pyenv:ubuntu-3.14-root
332
22:38:41
INFO[0007] Returning cached image manifest
333
22:38:41
INFO[0007] Retrieving image manifest registry.scandit.com/dockerfiles/pyenv:ubuntu-3.14-root
334
22:38:41
INFO[0007] Returning cached image manifest
335
22:38:41
INFO[0007] Built cross stage deps: map[]
336
22:38:41
INFO[0007] Skipping context snapshot as no-one requires it
337
22:38:41
INFO[0007] Retrieving image manifest registry.scandit.com/dockerfiles/pyenv:ubuntu-3.14-root
338
22:38:41
INFO[0007] Returning cached image manifest
339
22:38:41
INFO[0007] Retrieving image manifest registry.scandit.com/dockerfiles/pyenv:ubuntu-3.14-root
340
22:38:41
INFO[0007] Returning cached image manifest
341
22:38:41
INFO[0007] Building stage 'registry.scandit.com/dockerfiles/pyenv:ubuntu-3.14-root' [idx: '0', base-idx: '-1']
342
22:38:41
INFO[0007] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:7794defbe80abfaaef46364eec5a93261a9c0c8fb014c79813f5883c981ea82e...
343
22:38:41
INFO[0007] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
344
22:38:42
INFO[0007] Using caching version of cmd: RUN python -m uv pip install pre-commit==$VERSION && pyenv rehash
345
22:38:42
INFO[0007] Cmd: ONBUILD
346
22:38:42
INFO[0007] Args: COPY .pre-commit-config.yaml /tmp/.pre-commit-config.yaml
347
22:38:42
INFO[0007] Cmd: ONBUILD
348
22:38:42
INFO[0007] Args: RUN git init /tmp/pre-commit-init && cd /tmp/pre-commit-init && pre-commit install-hooks --config /tmp/.pre-commit-config.yaml && cd / && rm -rf /tmp/pre-commit-init /tmp/.pre-commit-config.yaml
349
22:38:42
INFO[0007] Skipping unpacking as no commands require it.
350
22:38:42
INFO[0007] ARG VERSION
351
22:38:42
INFO[0007] Taking snapshot of files...
352
22:38:42
INFO[0007] RUN python -m uv pip install pre-commit==$VERSION && pyenv rehash
353
22:38:42
INFO[0007] Found cached layer, extracting to filesystem
354
22:38:43
INFO[0008] ENV PRE_COMMIT_HOME=/pre-commit
355
22:38:43
INFO[0008] Taking snapshot of files...
356
22:38:43
INFO[0008] ONBUILD COPY .pre-commit-config.yaml /tmp/.pre-commit-config.yaml
357
22:38:43
INFO[0008] Cmd: ONBUILD
358
22:38:43
INFO[0008] Args: COPY .pre-commit-config.yaml /tmp/.pre-commit-config.yaml
359
22:38:43
INFO[0008] Taking snapshot of files...
360
22:38:43
INFO[0008] ONBUILD RUN git init /tmp/pre-commit-init && cd /tmp/pre-commit-init && pre-commit install-hooks --config /tmp/.pre-commit-config.yaml && cd / && rm -rf /tmp/pre-commit-init /tmp/.pre-commit-config.yaml
361
22:38:43
INFO[0008] Cmd: ONBUILD
362
22:38:43
INFO[0008] Args: RUN git init /tmp/pre-commit-init && cd /tmp/pre-commit-init && pre-commit install-hooks --config /tmp/.pre-commit-config.yaml && cd / && rm -rf /tmp/pre-commit-init /tmp/.pre-commit-config.yaml
363
22:38:43
INFO[0008] Taking snapshot of files...
364
22:38:43
INFO[0008] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
365
22:38:43
INFO[0008] Pushing image to registry.scandit.com/internal/gitlab-templates/pre-commit:ddf528d755ba8818ec407ed937a7c0ba0352e83c73f1151ddc5112678e5046b0
366
22:38:45
INFO[0010] Pushed registry.scandit.com/internal/gitlab-templates/pre-commit@sha256:27b71c7a71f3fd1c6c554044f17656884997b8edc6e596798bdfe9d3ea933407
367
22:38:45
INFO[0010] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
368
22:38:45
INFO[0010] Pushing image to registry.scandit.com/internal/gitlab-templates/pre-commit:3.14-4.5.1-MR639
369
22:38:46
INFO[0011] Pushed registry.scandit.com/internal/gitlab-templates/pre-commit@sha256:27b71c7a71f3fd1c6c554044f17656884997b8edc6e596798bdfe9d3ea933407
370
22:38:46
+ cleanup
371
22:38:46
+ rv=0
372
22:38:46
+ '[' 0 -ne 0 ]
373
22:38:46
+ echo
374
22:38:46
375
22:38:46
+ echo 'Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54442882'
376
22:38:46
Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54442882
377
22:38:46
+ echo
378
22:38:46
379
22:38:46
+ echo
380
22:38:46
381
22:38:46
+ echo '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-27-85.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-9-2duvrszz&var-resolution=15&from=1778020713000&to=1778020726000'
382
22:38:46
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-27-85.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-9-2duvrszz&var-resolution=15&from=1778020713000&to=1778020726000
383
22:38:46
+ echo '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-27-85.eu-central-1.compute.internal&var-resolution=15s&from=1778020713000&to=1778020726000'
384
22:38:46
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-27-85.eu-central-1.compute.internal&var-resolution=15s&from=1778020713000&to=1778020726000
385
22:38:46
+ echo '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|=|1580356&var-filters=CI_JOB_ID|=|54442882&sortOrder=Ascending&from=1778020713000&to=1778020726000'
386
22:38:46
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|=|1580356&var-filters=CI_JOB_ID|=|54442882&sortOrder=Ascending&from=1778020713000&to=1778020726000
387
22:38:46
+ date -d '-7 days' '+%Y-%m-%d'
388
22:38:46
date: invalid date '-7 days'
389
22:38:46
+ date -d '+7 days' '+%Y-%m-%d'
390
22:38:46
date: invalid date '+7 days'
391
22:38:46
+ echo 'Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build-pre-commit-base-image: [3.14, 4.5.1, 3.14-4.5.1]&project=internal/gitlab-templates'
392
22:38:46
Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build-pre-commit-base-image: [3.14, 4.5.1, 3.14-4.5.1]&project=internal/gitlab-templates
393
22:38:46
+ echo
394
22:38:46
395
22:38:46
+ exit 0
396
22:38:46
397
22:38:46
section_end:1778020726:step_script
398
22:38:46
+section_start:1778020726:upload_artifacts_on_success
399
22:38:46
+Uploading artifacts for successful job
400
22:38:47
Uploading artifacts...
401
22:38:47
docker_image_build.env: found 1 matching artifact files and directories
402
22:38:47
Uploading artifacts as "dotenv" to coordinator... 201 Created correlation_id=01KQX4PEC6J0YDBYM927E9CEBY id=54442882 responseStatus=201 Created token=64_5Ev_bC
403
22:38:47
404
22:38:47
section_end:1778020727:upload_artifacts_on_success
405
22:38:47
+section_start:1778020727:cleanup_file_variables
406
22:38:47
+Cleaning up project directory and file based variables
407
22:38:48
408
22:38:48
section_end:1778020728:cleanup_file_variables
409
22:38:48
+
410
22:38:48
Job succeeded
411