build-pre-commit-image ○ success
⏱
Duration: 1m 5s
⏳
Queued: 3s
📁
Stage: docker-image
🖥
Runner: linux-aws-1
Average Duration
19s
This job: 1m 5s
Failure Rate
1.6%
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
435 lines
Match - of 0
1
11:10:35
Running with gitlab-runner 18.9.0 (07e534ba)
2
11:10:35
on gitlab-runner-linux-1-746bdd58fd-kxshj wRxjPbsJX, system ID: r_ldbmQ551Swzx
3
11:10:35
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
11:10:35
Resolving secrets
5
11:10:35
section_start:1778065835:prepare_executor
6
11:10:35
+Preparing the "kubernetes" executor
7
11:10:35
"CPURequest" overwritten with "2"
8
11:10:35
"MemoryRequest" overwritten with "4G"
9
11:10:35
Using Kubernetes namespace: gitlab-runner
10
11:10:35
Using Kubernetes executor with image registry.scandit.com/dockerfiles/kaniko:v1.27.3-crane@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac ...
11
11:10:35
Using attach strategy to execute scripts...
12
11:10:35
Using effective pull policy of [Always] for container build
13
11:10:35
Using effective pull policy of [Always] for container helper
14
11:10:35
Using effective pull policy of [Always] for container init-permissions
15
11:10:35
section_end:1778065835:prepare_executor
16
11:10:35
+section_start:1778065835:prepare_script
17
11:10:35
+Preparing environment
18
11:10:35
Using FF_USE_POD_ACTIVE_DEADLINE_SECONDS, the Pod activeDeadlineSeconds will be set to the job timeout: 1h0m0s...
19
11:10:35
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
11:10:35
Subscribing to Kubernetes Pod events...
21
11:10:35
Type Reason Message
22
11:10:35
Normal Scheduled Successfully assigned gitlab-runner/runner-wrxjpbsjx-project-621-concurrent-2-gx3rlzov to ip-10-0-32-17.eu-central-1.compute.internal
23
11:10:36
Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" already present on machine
24
11:10:36
Normal Created Created container: init-permissions
25
11:10:36
Normal Started Started container init-permissions
26
11:10:37
Normal Pulling Pulling image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/kaniko@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac"
27
11:10:38
Normal Pulled Successfully pulled image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/kaniko@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac" in 1.157s (1.157s including waiting). Image size: 49989654 bytes.
28
11:10:38
Normal Created Created container: build
29
11:10:38
Normal Started Started container build
30
11:10:38
Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" already present on machine
31
11:10:38
Normal Created Created container: helper
32
11:10:38
Normal Started Started container helper
33
11:10:42
Running on runner-wrxjpbsjx-project-621-concurrent-2-gx3rlzov via gitlab-runner-linux-1-746bdd58fd-kxshj...
34
11:10:42
35
11:10:42
section_end:1778065842:prepare_script
36
11:10:42
+section_start:1778065842:get_sources
37
11:10:42
+Getting source from Git repository
38
11:10:43
Gitaly correlation ID: 01KQYFQ0P6V4ADKG97QDKRYXXA
39
11:10:43
Fetching changes with git depth set to 1...
40
11:10:43
Initialized empty Git repository in /build/internal/gitlab-templates/.git/
41
11:10:43
Created fresh repository.
42
11:10:43
Checking out 19a8ce14 as detached HEAD (ref is master)...
43
11:10:43
44
11:10:43
Skipping Git submodules setup
45
11:10:43
46
11:10:43
section_end:1778065843:get_sources
47
11:10:43
+section_start:1778065843:step_script
48
11:10:43
+Executing "step_script" stage of the job script
49
11:10:44
section_start:1778065843:section_pre_build_script_0[hide_duration=true,collapsed=true]
$ function cleanup {
50
11:10:44
rv=$?
51
11:10:44
if [ $rv -ne 0 ]; then
52
11:10:44
echo ""
53
11:10:44
echo " Failure Cause Analysis might help, please open this link:"
54
11:10:44
echo " https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
55
11:10:44
echo ""
56
11:10:44
fi
57
11:10:44
echo ""
58
11:10:44
echo "Scout Analysis: https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
59
11:10:44
echo ""
60
11:10:44
echo ""
61
11:10:44
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"
62
11:10:44
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"
63
11:10:44
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"
64
11:10:44
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}"
65
11:10:44
echo ""
66
11:10:44
exit $rv
67
11:10:44
}
68
11:10:44
trap cleanup EXIT
69
11:10:44
echo "INFO: This is the CI job pre_build_script"
70
11:10:44
echo "INFO: It's defined in the backend/infra/aws repo."
71
11:10:44
echo "INFO: These additional Scandit variables are available to you:"
72
11:10:44
echo " SC_K8S_NODE_NAME: $SC_K8S_NODE_NAME"
73
11:10:44
echo " SC_K8S_IMAGE_ID: $SC_K8S_IMAGE_ID"
74
11:10:44
echo " SC_K8S_KYVERNO_PATCHES: |"
75
11:10:44
echo "$SC_K8S_KYVERNO_PATCHES" | sed 's/^/ /'
76
11:10:44
echo "cpu (r/l): ${SC_K8S_REQUESTS_CPU}/${SC_K8S_LIMITS_CPU}"
77
11:10:44
if command -v numfmt >/dev/null 2>&1; then
78
11:10:44
echo "memory (r/l): $(numfmt --to=iec --suffix=B $SC_K8S_REQUESTS_MEMORY)/$(numfmt --to=iec --suffix=B $SC_K8S_LIMITS_MEMORY)"
79
11:10:44
else
80
11:10:44
echo "memory (r/l): ${SC_K8S_REQUESTS_MEMORY}/${SC_K8S_LIMITS_MEMORY}"
81
11:10:44
fi
82
11:10:44
__start_time=${EPOCHSECONDS}
83
11:10:44
echo ""
84
11:10:44
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"
85
11:10:44
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"
86
11:10:44
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"
87
11:10:44
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}"
88
11:10:44
echo ""
89
11:10:44
echo "Setting up credentials for Gitlab Python registries"
90
11:10:44
mkdir -p ~
91
11:10:44
echo "machine gitlab.scandit.com" > ~/.netrc
92
11:10:44
echo "login gitlab-ci-token" >> ~/.netrc
93
11:10:44
echo "password ${CI_JOB_TOKEN}" >> ~/.netrc
94
11:10:44
chmod 600 ~/.netrc
95
11:10:44
if command -v git &> /dev/null && [ "$(id -u)" -ne 0 ]; then
96
11:10:44
git config --global --add safe.directory $CI_PROJECT_DIR
97
11:10:44
fi
98
11:10:44
# Sonarqube server is running on the same cluster. Use internal address
99
11:10:44
export SONAR_HOST_URL="http://sonarqube.sonarqube.svc.cluster.local:9000"
100
11:10:44
section_end:1778065843:section_pre_build_script_0
101
11:10:44
INFO: This is the CI job pre_build_script
102
11:10:44
INFO: It's defined in the backend/infra/aws repo.
103
11:10:44
INFO: These additional Scandit variables are available to you:
104
11:10:44
SC_K8S_NODE_NAME: ip-10-0-32-17.eu-central-1.compute.internal
105
11:10:44
SC_K8S_IMAGE_ID:
106
11:10:44
SC_K8S_KYVERNO_PATCHES: |
107
11:10:44
108
11:10:44
cpu (r/l): 2/4
109
11:10:44
memory (r/l): 4000000000/17179869184
110
11:10:44
111
11:10: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-32-17.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-2-gx3rlzov&var-resolution=15&from=1778065843000&to=now
112
11:10: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-32-17.eu-central-1.compute.internal&var-resolution=15s&from=1778065843000&to=now
113
11:10: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|=|1581320&var-filters=CI_JOB_ID|=|54484708&sortOrder=Ascending&from=1778065843000&to=now
114
11:10:44
date: invalid date '-7 days'
115
11:10:44
date: invalid date '+7 days'
116
11:10:44
Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build-pre-commit-image&project=internal/gitlab-templates
117
11:10:44
118
11:10:44
Setting up credentials for Gitlab Python registries
119
11:10:44
$ echo "FROM registry.scandit.com/internal/gitlab-templates/pre-commit:${PRE_COMMIT_PYTHON_VERSION}-${PRE_COMMIT_VERSION}" > Dockerfile.pre-commit-project
120
11:10:44
$ echo $DOCKER_CONFIG_JSON > /kaniko/.docker/config.json
121
11:10:44
$ mv /root/.netrc /kaniko/.netrc
122
11:10:44
section_start:1778065843:section_script_step_3[hide_duration=true,collapsed=true]
$ function copy_files() {
123
11:10:44
local src="$1"
124
11:10:44
local trg="$2"
125
11:10:44
for f in $src; do
126
11:10:44
t="$trg/`dirname $f`"
127
11:10:44
mkdir -p $t || true
128
11:10:44
echo "Copy $f"
129
11:10:44
cp -pr $f $trg/$f
130
11:10:44
done
131
11:10:44
}
132
11:10:44
function recursive_hash() {
133
11:10:44
local dir="$1"
134
11:10:44
find "$dir" -exec stat -c '%F|%a|%u:%g|%n' {} + -type f -exec sha256sum {} + | sort | sha256sum | cut -d ' ' -f1
135
11:10:44
}
136
11:10:44
function remote_docker_digest() {
137
11:10:44
local images="$1"
138
11:10:44
echo $images | xargs -n 1 crane digest
139
11:10:44
}
140
11:10:44
function remote_image_exists() {
141
11:10:44
local image="$1"
142
11:10:44
crane manifest $image > /dev/null 2>&1
143
11:10:44
}
144
11:10:44
function remote_images_are_identical() {
145
11:10:44
local imageA="$1"
146
11:10:44
local imageB="$2"
147
11:10:44
if [[ $(remote_docker_digest "$imageA") == $(remote_docker_digest "$imageB") ]]; then
148
11:10:44
return 0
149
11:10:44
else
150
11:10:44
return 1
151
11:10:44
fi
152
11:10:44
}
153
11:10:44
function copy_image() {
154
11:10:44
local image="$1"
155
11:10:44
local remotes="$2"
156
11:10:44
local backup_ext="$3"
157
11:10:44
echo "$image"
158
11:10:44
local source_digest=$(remote_docker_digest $image)
159
11:10:44
local target_digest
160
11:10:44
for registry in $remotes; do
161
11:10:44
if target_digest=$(remote_docker_digest $registry); then
162
11:10:44
if [ "$target_digest" != "$source_digest" ]; then
163
11:10:44
echo "image outdated, overwriting with newest version"
164
11:10:44
crane copy $image $registry
165
11:10:44
crane copy $image ${registry}${backup_ext}
166
11:10:44
fi
167
11:10:44
else
168
11:10:44
echo "image does not exist, writing newest version"
169
11:10:44
crane copy $image $registry
170
11:10:44
crane copy $image ${registry}${backup_ext}
171
11:10:44
fi
172
11:10:44
done
173
11:10:44
}
174
11:10:44
section_end:1778065843:section_script_step_3
175
11:10:44
section_start:1778065843:section_script_step_4[hide_duration=true,collapsed=true]
$ if [ "$CONTAINER_SUBDIR" != "" ]; then
176
11:10:44
echo "Entering subpath $CONTAINER_SUBDIR"
177
11:10:44
cd $CONTAINER_SUBDIR
178
11:10:44
fi
179
11:10:44
section_end:1778065843:section_script_step_4
180
11:10:44
$ copy_files "$CONTAINER_IMPLICIT_REQUIREMENTS $CONTAINER_REQUIREMENTS" "$CONTAINER_CONTEXT_PATH"
181
11:10:44
Copy Dockerfile.pre-commit-project
182
11:10:44
Copy .pre-commit-config.yaml
183
11:10:44
$ echo "$CONTAINER_BUILD_ENVIRONMENT" > $CONTAINER_CONTEXT_PATH/.docker-build-env
184
11:10:44
$ docker_checksum=$(recursive_hash $CONTAINER_CONTEXT_PATH)
185
11:10:44
section_start:1778065843:section_script_step_8[hide_duration=true,collapsed=true]
$ if [ "$CONTAINER_IMAGE_NAME" == "" ]; then
186
11:10:44
final_image_name=${CONTAINER_IMAGE_URL}
187
11:10:44
else
188
11:10:44
final_image_name=${CONTAINER_IMAGE_URL}/${CONTAINER_IMAGE_NAME}
189
11:10:44
fi
190
11:10:44
section_end:1778065843:section_script_step_8
191
11:10:44
$ final_image_url=${final_image_name}:${docker_checksum}
192
11:10:44
section_start:1778065843:section_script_step_10[hide_duration=true,collapsed=true]
$ if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
193
11:10:44
echo $CONTAINER_IMAGE_VARIABLE=${final_image_url}-P${CI_PROJECT_ID}-${CI_PIPELINE_ID} > $CI_PROJECT_DIR/docker_image_build.env
194
11:10:44
else
195
11:10:44
echo $CONTAINER_IMAGE_VARIABLE=$final_image_url > $CI_PROJECT_DIR/docker_image_build.env
196
11:10:44
fi
197
11:10:44
section_end:1778065843:section_script_step_10
198
11:10:44
$ echo ${CONTAINER_IMAGE_VARIABLE}_HASH=$docker_checksum >> $CI_PROJECT_DIR/docker_image_build.env
199
11:10:44
section_start:1778065843:section_script_step_12[hide_duration=true,collapsed=true]
$ if [ "${FORCE_BUILD}" != "true" ] || command -v crane &> /dev/null; then
200
11:10:44
echo $REGISTRY_PASSWORD | crane auth login $REGISTRY -u $REGISTRY_USER --password-stdin
201
11:10:44
fi
202
11:10:44
section_end:1778065843:section_script_step_12
203
11:10:44
204
11:10:44
WARNING! Your credentials are stored unencrypted in '/kaniko/.docker/config.json'.
205
11:10:44
Configure a credential helper to remove this warning. See
206
11:10:44
https://docs.docker.com/go/credential-store/
207
11:10:44
208
11:10:44
2026/05/06 11:10:43 logged in via /kaniko/.docker/config.json
209
11:10:44
section_start:1778065843:section_script_step_13[hide_duration=true,collapsed=true]
$ if [ "${FORCE_BUILD}" != "true" ] && remote_image_exists "$final_image_url"; then
210
11:10:44
echo "Image already exists, skip the build."
211
11:10:44
echo "$final_image_url"
212
11:10:44
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
213
11:10:44
_EXT=""
214
11:10:44
_BACKUP_EXT="-CI${CI_JOB_ID}-$(date '+%Y%m%d')"
215
11:10:44
elif [[ -n "$CI_MERGE_REQUEST_ID" ]]; then
216
11:10:44
_EXT="-MR${CI_MERGE_REQUEST_IID}"
217
11:10:44
_BACKUP_EXT=""
218
11:10:44
elif [[ "$CI_COMMIT_REF_PROTECTED" == "true" ]]; then
219
11:10:44
_EXT="-${CI_COMMIT_REF_SLUG}"
220
11:10:44
_BACKUP_EXT="-CI${CI_JOB_ID}-$(date '+%Y%m%d')"
221
11:10:44
fi
222
11:10:44
for _TAG in $CONTAINER_IMAGE_TAG; do
223
11:10:44
echo "Copying ${final_image_url} to ${final_image_name}:${_TAG}${_EXT}"
224
11:10:44
copy_image "${final_image_url}" "${final_image_name}:${_TAG}${_EXT}" "${_BACKUP_EXT}"
225
11:10:44
done
226
11:10:44
if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
227
11:10:44
_EXT="-P${CI_PROJECT_ID}-${CI_PIPELINE_ID}"
228
11:10:44
echo "Copying ${final_image_url} to ${final_image_url}${_EXT}"
229
11:10:44
copy_image "${final_image_url}" "${final_image_url}${_EXT}"
230
11:10:44
for _TAG in $CONTAINER_IMAGE_TAG; do
231
11:10:44
echo "Copying ${final_image_url} to ${final_image_name}:${_TAG}${_EXT}"
232
11:10:44
copy_image "${final_image_url}" "${final_image_name}:${_TAG}${_EXT}"
233
11:10:44
done
234
11:10:44
fi
235
11:10:44
exit 0
236
11:10:44
fi
237
11:10:44
section_end:1778065843:section_script_step_13
238
11:10:44
$ DESTINATIONS="--destination=$final_image_url"
239
11:10:44
section_start:1778065844:section_script_step_15[hide_duration=true,collapsed=true]
$ if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
240
11:10:44
_EXT=""
241
11:10:44
TIMESTAMP_TAGS=$CONTAINER_IMAGE_TAG
242
11:10:44
elif [[ -n "$CI_MERGE_REQUEST_ID" ]]; then
243
11:10:44
_EXT="-MR${CI_MERGE_REQUEST_IID}"
244
11:10:44
TIMESTAMP_TAGS=""
245
11:10:44
elif [[ "$CI_COMMIT_REF_PROTECTED" == "true" ]]; then
246
11:10:44
_EXT="-${CI_COMMIT_REF_SLUG}"
247
11:10:44
TIMESTAMP_TAGS=$CONTAINER_IMAGE_TAG
248
11:10:44
fi
249
11:10:44
section_end:1778065844:section_script_step_15
250
11:10:44
section_start:1778065844:section_script_step_16[hide_duration=true,collapsed=true]
$ for _TAG in $CONTAINER_IMAGE_TAG; do
251
11:10:44
DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}"
252
11:10:44
done
253
11:10:44
section_end:1778065844:section_script_step_16
254
11:10:44
section_start:1778065844:section_script_step_17[hide_duration=true,collapsed=true]
$ if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
255
11:10:44
_EXT="-P${CI_PROJECT_ID}-${CI_PIPELINE_ID}"
256
11:10:44
DESTINATIONS="${DESTINATIONS} --destination=${final_image_url}${_EXT}"
257
11:10:44
for _TAG in $CONTAINER_IMAGE_TAG; do
258
11:10:44
DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}"
259
11:10:44
done
260
11:10:44
fi
261
11:10:44
section_end:1778065844:section_script_step_17
262
11:10:44
section_start:1778065844:section_script_step_18[hide_duration=true,collapsed=true]
$ DATE=$(date '+%Y%m%d')
263
11:10:44
for _TAG in $TIMESTAMP_TAGS; do
264
11:10:44
DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}-CI${CI_JOB_ID}-${DATE}"
265
11:10:44
done
266
11:10:44
section_end:1778065844:section_script_step_18
267
11:10:44
section_start:1778065844:section_script_step_19[hide_duration=true,collapsed=true]
$ if [ -n "${CONTAINER_BUILD_ARGS}" ]; then
268
11:10:44
for _BUILD_ARG in $CONTAINER_BUILD_ARGS; do
269
11:10:44
FINAL_BUILD_ARGS="--build-arg $_BUILD_ARG $FINAL_BUILD_ARGS"
270
11:10:44
done
271
11:10:44
fi
272
11:10:44
section_end:1778065844:section_script_step_19
273
11:10:44
section_start:1778065844:section_script_step_20[hide_duration=true,collapsed=true]
$ for _PATH in $CONTAINER_IGNORE_PATHS; do
274
11:10:44
FINAL_IGNORE_PATHS="--ignore-path=$_PATH $FINAL_IGNORE_PATHS"
275
11:10:44
done
276
11:10:44
section_end:1778065844:section_script_step_20
277
11:10:44
section_start:1778065844:section_script_step_21[hide_duration=true,collapsed=true]
$ if [ -n "${CONTAINER_PLATFORM}" ]; then
278
11:10:44
KANIKO_PLATFORM="--custom-platform=${CONTAINER_PLATFORM}"
279
11:10:44
fi
280
11:10:44
section_end:1778065844:section_script_step_21
281
11:10:44
$ ANNOTATIONS=""
282
11:10:44
section_start:1778065844:section_script_step_23[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_COMMIT_REF_NAME" ]]; then
283
11:10:44
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.ref.name=${CI_COMMIT_REF_NAME}"
284
11:10:44
fi
285
11:10:44
section_end:1778065844:section_script_step_23
286
11:10:44
section_start:1778065844:section_script_step_24[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_COMMIT_SHA" ]]; then
287
11:10:44
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.revision=${CI_COMMIT_SHA}"
288
11:10:44
fi
289
11:10:44
section_end:1778065844:section_script_step_24
290
11:10:44
section_start:1778065844:section_script_step_25[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_JOB_URL" ]]; then
291
11:10:44
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.url=${CI_JOB_URL}"
292
11:10:44
fi
293
11:10:44
section_end:1778065844:section_script_step_25
294
11:10:44
section_start:1778065844:section_script_step_26[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_PIPELINE_ID" ]]; then
295
11:10:44
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.pipeline_id=${CI_PIPELINE_ID}"
296
11:10:44
fi
297
11:10:44
section_end:1778065844:section_script_step_26
298
11:10:44
section_start:1778065844:section_script_step_27[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_JOB_ID" ]]; then
299
11:10:44
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.job_id=${CI_JOB_ID}"
300
11:10:44
fi
301
11:10:44
section_end:1778065844:section_script_step_27
302
11:10:44
section_start:1778065844:section_script_step_28[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_JOB_IMAGE" ]]; then
303
11:10:44
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.job_image=${CI_JOB_IMAGE}"
304
11:10:44
fi
305
11:10:44
section_end:1778065844:section_script_step_28
306
11:10:44
$ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.title=${final_image_name}:$(echo $CONTAINER_IMAGE_TAG | cut -d' ' -f1)"
307
11:10:44
$ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.created=$(date -u +%Y-%m-%dT%H:%M:%SZ)"
308
11:10:44
$ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.vendor=Scandit"
309
11:10:44
$ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.scandit.ci.hash=${docker_checksum}"
310
11:10:44
section_start:1778065844:section_script_step_33[hide_duration=true,collapsed=true]
$ if [ -n "${CONTAINER_TARGET_STAGE}" ]; then
311
11:10:44
KANIKO_TARGET="--target $CONTAINER_TARGET_STAGE"
312
11:10:44
fi
313
11:10:44
section_end:1778065844:section_script_step_33
314
11:10:44
$ set -x
315
11:10:44
+ 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'
316
11:10:44
$ /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
317
11:10:44
+ /kaniko/executor --context /build/internal/gitlab-templates/context/ --dockerfile Dockerfile.pre-commit-project '--destination=registry.scandit.com/internal/gitlab-templates/pre-commit:17f326f916c2676c279ad503717158f9dc23bc3df559feda764e3fd7ac8bdc56' '--destination=registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1' '--destination=registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1-CI54484708-20260506' '--cache=true' --cache-copy-layers --cache-dir /cache/kaniko --cache-repo registry.scandit.com/internal/gitlab-templates/cache '--cache-ttl=336h' --annotation 'org.opencontainers.image.ref.name=master' --annotation 'org.opencontainers.image.revision=19a8ce14e2e16477c0e8fe40e5fa2b92ca33ea70' --annotation 'org.opencontainers.image.url=https://gitlab.scandit.com/internal/gitlab-templates/-/jobs/54484708' --annotation 'io.gitlab.ci.pipeline_id=1581320' --annotation 'io.gitlab.ci.job_id=54484708' --annotation 'io.gitlab.ci.job_image=registry.scandit.com/dockerfiles/kaniko:v1.27.3-crane@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac' --annotation 'org.opencontainers.image.title=registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1' --annotation 'org.opencontainers.image.created=2026-05-06T11:10:44Z' --annotation 'org.opencontainers.image.vendor=Scandit' --annotation 'io.scandit.ci.hash=17f326f916c2676c279ad503717158f9dc23bc3df559feda764e3fd7ac8bdc56' --preserve-context '--credential-helpers=gitlab' --secret 'id=netrc,src=/kaniko/.netrc' --secret 'id=ci_job_token,env=CI_JOB_TOKEN'
318
11:10:44
INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
319
11:10:44
INFO[0000] Retrieving image manifest registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1
320
11:10:44
INFO[0000] Retrieving image registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1 from registry registry.scandit.com
321
11:10:44
INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
322
11:10:44
INFO[0000] Retrieving image manifest registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1
323
11:10:44
INFO[0000] Returning cached image manifest
324
11:10:44
INFO[0000] Retrieving image manifest registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1
325
11:10:44
INFO[0000] Returning cached image manifest
326
11:10:44
INFO[0000] Retrieving image manifest registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1
327
11:10:44
INFO[0000] Returning cached image manifest
328
11:10:44
INFO[0000] Built cross stage deps: map[]
329
11:10:44
INFO[0000] Skipping context snapshot as no-one requires it
330
11:10:44
INFO[0000] Retrieving image manifest registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1
331
11:10:44
INFO[0000] Returning cached image manifest
332
11:10:44
INFO[0000] Retrieving image manifest registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1
333
11:10:44
INFO[0000] Returning cached image manifest
334
11:10:44
INFO[0000] Building stage 'registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1' [idx: '0', base-idx: '-1']
335
11:10:44
INFO[0000] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:96a6a2b9cded59c45eec6895c7e4a88689f5023e8e88b2eed2e45bc837deb884...
336
11:10:44
INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
337
11:10:44
INFO[0000] No cached layer found for cmd COPY .pre-commit-config.yaml /tmp/.pre-commit-config.yaml
338
11:10:44
INFO[0000] Unpacking rootfs as cmd COPY .pre-commit-config.yaml /tmp/.pre-commit-config.yaml requires it.
339
11:10:52
INFO[0007] COPY .pre-commit-config.yaml /tmp/.pre-commit-config.yaml
340
11:10:52
INFO[0007] Taking snapshot of files...
341
11:10:52
INFO[0007] Pushing layer registry.scandit.com/internal/gitlab-templates/cache:96a6a2b9cded59c45eec6895c7e4a88689f5023e8e88b2eed2e45bc837deb884 to cache now
342
11:10:52
INFO[0007] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
343
11:10:52
INFO[0007] 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
344
11:10:52
INFO[0007] Initializing snapshotter ...
345
11:10:52
INFO[0007] Taking snapshot of full filesystem...
346
11:10:52
INFO[0007] Pushing image to registry.scandit.com/internal/gitlab-templates/cache:96a6a2b9cded59c45eec6895c7e4a88689f5023e8e88b2eed2e45bc837deb884
347
11:10:52
INFO[0008] Pushed registry.scandit.com/internal/gitlab-templates/cache@sha256:9fed4c5db10708174feedec94dd350f010b98d5b7af510e9c1d8032aadbf2395
348
11:10:57
INFO[0013] Cmd: /bin/sh
349
11:10:57
INFO[0013] Args: [-c 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]
350
11:10:57
INFO[0013] Util.Lookup returned: &{Uid:0 Gid:0 Username:root Name:root HomeDir:/root}
351
11:10:57
INFO[0013] Performing slow lookup of group ids for root
352
11:10:57
INFO[0013] Running: [/kaniko/tini -s -- /bin/sh -c 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]
353
11:10:57
hint: Using 'master' as the name for the initial branch. This default branch name
354
11:10:57
hint: is subject to change. To configure the initial branch name to use in all
355
11:10:57
hint: of your new repositories, which will suppress this warning, call:
356
11:10:57
hint:
357
11:10:57
hint: git config --global init.defaultBranch <name>
358
11:10:57
hint:
359
11:10:57
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
360
11:10:57
hint: 'development'. The just-created branch can be renamed via this command:
361
11:10:57
hint:
362
11:10:57
hint: git branch -m <name>
363
11:10:57
Initialized empty Git repository in /tmp/pre-commit-init/.git/
364
11:10:58
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
365
11:10:58
[INFO] Initializing environment for https://github.com/macisamuele/language-formatters-pre-commit-hooks.
366
11:10:58
[INFO] Initializing environment for https://github.com/jumanjihouse/pre-commit-hook-yamlfmt.
367
11:10:59
[INFO] Initializing environment for https://github.com/adrienverge/yamllint.git.
368
11:10:59
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
369
11:10:59
[INFO] Once installed this environment will be reused.
370
11:10:59
[INFO] This may take a few minutes...
371
11:11:01
[INFO] Installing environment for https://github.com/macisamuele/language-formatters-pre-commit-hooks.
372
11:11:01
[INFO] Once installed this environment will be reused.
373
11:11:01
[INFO] This may take a few minutes...
374
11:11:04
[INFO] Installing environment for https://github.com/jumanjihouse/pre-commit-hook-yamlfmt.
375
11:11:04
[INFO] Once installed this environment will be reused.
376
11:11:04
[INFO] This may take a few minutes...
377
11:11:05
[INFO] Installing environment for https://github.com/adrienverge/yamllint.git.
378
11:11:05
[INFO] Once installed this environment will be reused.
379
11:11:05
[INFO] This may take a few minutes...
380
11:11:07
INFO[0023] Taking snapshot of full filesystem...
381
11:11:26
INFO[0042] Pushing layer registry.scandit.com/internal/gitlab-templates/cache:17e05bd7c2ae647740ba31d2e7fe1d5fb9f156ae773e9a4f8a8f12f4d86c8326 to cache now
382
11:11:26
INFO[0042] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
383
11:11:26
INFO[0042] Pushing image to registry.scandit.com/internal/gitlab-templates/cache:17e05bd7c2ae647740ba31d2e7fe1d5fb9f156ae773e9a4f8a8f12f4d86c8326
384
11:11:28
INFO[0043] Pushed registry.scandit.com/internal/gitlab-templates/cache@sha256:51f985b2006c49ce501cc0c4ea6685bedb6db1acc7835ab74bf7074b7c155873
385
11:11:28
INFO[0043] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
386
11:11:28
INFO[0043] Pushing image to registry.scandit.com/internal/gitlab-templates/pre-commit:17f326f916c2676c279ad503717158f9dc23bc3df559feda764e3fd7ac8bdc56
387
11:11:37
INFO[0052] Pushed registry.scandit.com/internal/gitlab-templates/pre-commit@sha256:a637893acb48594f5a3e165253343568769c9f97116de1ae4a57966c61ef6b25
388
11:11:37
INFO[0052] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
389
11:11:37
INFO[0052] Pushing image to registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1
390
11:11:38
INFO[0053] Pushed registry.scandit.com/internal/gitlab-templates/pre-commit@sha256:a637893acb48594f5a3e165253343568769c9f97116de1ae4a57966c61ef6b25
391
11:11:38
INFO[0053] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
392
11:11:38
INFO[0053] Pushing image to registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1-CI54484708-20260506
393
11:11:38
INFO[0054] Pushed registry.scandit.com/internal/gitlab-templates/pre-commit@sha256:a637893acb48594f5a3e165253343568769c9f97116de1ae4a57966c61ef6b25
394
11:11:38
+ cleanup
395
11:11:38
+ rv=0
396
11:11:38
+ '[' 0 -ne 0 ]
397
11:11:38
+ echo
398
11:11:38
399
11:11:38
+ echo 'Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54484708'
400
11:11:38
Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54484708
401
11:11:38
+ echo
402
11:11:38
403
11:11:38
+ echo
404
11:11:38
405
11:11:38
+ 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-32-17.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-2-gx3rlzov&var-resolution=15&from=1778065843000&to=1778065898000'
406
11:11:38
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-32-17.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-2-gx3rlzov&var-resolution=15&from=1778065843000&to=1778065898000
407
11:11:38
+ 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-32-17.eu-central-1.compute.internal&var-resolution=15s&from=1778065843000&to=1778065898000'
408
11:11:38
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-32-17.eu-central-1.compute.internal&var-resolution=15s&from=1778065843000&to=1778065898000
409
11:11:38
+ 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|=|1581320&var-filters=CI_JOB_ID|=|54484708&sortOrder=Ascending&from=1778065843000&to=1778065898000'
410
11:11:38
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|=|1581320&var-filters=CI_JOB_ID|=|54484708&sortOrder=Ascending&from=1778065843000&to=1778065898000
411
11:11:38
+ date -d '-7 days' '+%Y-%m-%d'
412
11:11:38
date: invalid date '-7 days'
413
11:11:38
+ date -d '+7 days' '+%Y-%m-%d'
414
11:11:38
date: invalid date '+7 days'
415
11:11:38
+ echo 'Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build-pre-commit-image&project=internal/gitlab-templates'
416
11:11:38
Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build-pre-commit-image&project=internal/gitlab-templates
417
11:11:38
+ echo
418
11:11:38
419
11:11:38
+ exit 0
420
11:11:38
421
11:11:38
section_end:1778065898:step_script
422
11:11:38
+section_start:1778065898:upload_artifacts_on_success
423
11:11:38
+Uploading artifacts for successful job
424
11:11:39
Uploading artifacts...
425
11:11:39
docker_image_build.env: found 1 matching artifact files and directories
426
11:11:39
Uploading artifacts as "dotenv" to coordinator... 201 Created correlation_id=01KQYFRZHTK766JESSRS69Z469 id=54484708 responseStatus=201 Created token=64_HWmkKJ
427
11:11:39
428
11:11:39
section_end:1778065899:upload_artifacts_on_success
429
11:11:39
+section_start:1778065899:cleanup_file_variables
430
11:11:39
+Cleaning up project directory and file based variables
431
11:11:40
432
11:11:40
section_end:1778065900:cleanup_file_variables
433
11:11:40
+
434
11:11:40
Job succeeded
435