build-python3-image-with-context ○ success
⏱
Duration: 32s
⏳
Queued: 2s
📁
Stage: docker-image
🖥
Runner: linux-1
Average Duration
47s
This job: 32s
Failure Rate
2.3%
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
449 lines
Match - of 0
1
22:29:24
Running with gitlab-runner 18.9.0 (07e534ba)
2
22:29:24
on gitlab-runner-linux-1-5b9cfd64ff-k5sg5 aP4tCsXyp, system ID: r_wQDtEh3nNZsL
3
22:29:24
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_ENABLE_JOB_CLEANUP: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:29:24
Resolving secrets
5
22:29:24
section_start:1778279364:prepare_executor
6
22:29:24
+Preparing the "kubernetes" executor
7
22:29:24
"CPURequest" overwritten with "2"
8
22:29:24
"MemoryRequest" overwritten with "4G"
9
22:29:24
Using Kubernetes namespace: gitlab-runner
10
22:29:24
Using Kubernetes executor with image registry.scandit.com/dockerfiles/kaniko:v1.27.3-crane@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac ...
11
22:29:24
Using attach strategy to execute scripts...
12
22:29:24
Using effective pull policy of [Always] for container build
13
22:29:24
Using effective pull policy of [Always] for container helper
14
22:29:24
Using effective pull policy of [Always] for container init-permissions
15
22:29:24
section_end:1778279364:prepare_executor
16
22:29:24
+section_start:1778279364:prepare_script
17
22:29:24
+Preparing environment
18
22:29:24
Using FF_USE_POD_ACTIVE_DEADLINE_SECONDS, the Pod activeDeadlineSeconds will be set to the job timeout: 1h0m0s...
19
22:29:24
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:29:24
Subscribing to Kubernetes Pod events...
21
22:29:24
Type Reason Message
22
22:29:24
Normal Scheduled Successfully assigned gitlab-runner/runner-ap4tcsxyp-project-621-concurrent-7-h3s3l2ov to ci10
23
22:29:30
Normal Pulled Container image "registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:x86_64-v18.9.0" already present on machine
24
22:29:30
Normal Created Created container: init-permissions
25
22:29:31
Normal Started Started container init-permissions
26
22:29:31
Normal Pulled Container image "registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:x86_64-v18.9.0" already present on machine
27
22:29:31
Normal Created Created container: helper
28
22:29:31
Normal Started Started container helper
29
22:29:31
Normal Pulling Pulling image "registry.scandit.com/dockerfiles/kaniko:v1.27.3-crane@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac"
30
22:29:31
Normal Pulled Successfully pulled image "registry.scandit.com/dockerfiles/kaniko:v1.27.3-crane@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac" in 293ms (293ms including waiting). Image size: 49989654 bytes.
31
22:29:32
Normal Created Created container: build
32
22:29:32
Normal Started Started container build
33
22:29:33
Running on runner-ap4tcsxyp-project-621-concurrent-7-h3s3l2ov via gitlab-runner-linux-1-5b9cfd64ff-k5sg5...
34
22:29:34
35
22:29:34
section_end:1778279374:prepare_script
36
22:29:34
+section_start:1778279374:get_sources
37
22:29:34
+Getting source from Git repository
38
22:29:34
Gitaly correlation ID: 01KR4VBD67T4NEZAHXXGHBNRKR
39
22:29:34
Fetching changes with git depth set to 1...
40
22:29:34
Initialized empty Git repository in /build/internal/gitlab-templates/.git/
41
22:29:34
Created fresh repository.
42
22:29:35
Checking out d5797a8b as detached HEAD (ref is refs/merge-requests/642/merge)...
43
22:29:35
44
22:29:35
Skipping Git submodules setup
45
22:29:35
46
22:29:35
section_end:1778279375:get_sources
47
22:29:35
+section_start:1778279375:step_script
48
22:29:35
+Executing "step_script" stage of the job script
49
22:29:35
section_start:1778279375:section_pre_build_script_0[hide_duration=true,collapsed=true]
$ function cleanup {
50
22:29:35
rv=$?
51
22:29:35
if [ $rv -ne 0 ]; then
52
22:29:35
echo ""
53
22:29:35
echo " Failure Cause Analysis might help, please open this link:"
54
22:29:35
echo " https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
55
22:29:35
echo ""
56
22:29:35
fi
57
22:29:35
echo ""
58
22:29:35
echo "Scout Analysis: https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
59
22:29:35
echo ""
60
22:29:35
echo ""
61
22:29:35
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
22:29:35
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
22:29:35
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%7C=%7Cgitlab-runner&var-filters=source%7C%3D%7C${LOKI_LOGSOURCE}&var-filters=namespace%7C%3D%7C${SC_K8S_NAMESPACE}&var-filters=CI_PROJECT_ID%7C%3D%7C${CI_PROJECT_ID}&var-filters=CI_PIPELINE_ID%7C%3D%7C${CI_PIPELINE_ID}&var-filters=CI_JOB_ID%7C%3D%7C${CI_JOB_ID}&sortOrder=Ascending&from=${__start_time}000&to=${EPOCHSECONDS}000"
64
22:29:35
__date_from=$(date -d "@$(( EPOCHSECONDS - 604800 ))" +%Y-%m-%d)
65
22:29:35
__date_to=$(date -d "@$(( EPOCHSECONDS + 604800 ))" +%Y-%m-%d)
66
22:29:35
echo "Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=${__date_from}~${__date_to}&job_name=${CI_JOB_NAME}&project=${CI_PROJECT_PATH}"
67
22:29:35
echo ""
68
22:29:35
exit $rv
69
22:29:35
}
70
22:29:35
trap cleanup EXIT
71
22:29:35
echo "INFO: This is the CI job pre_build_script"
72
22:29:35
echo "INFO: It's defined in the backend/infra/onprem/k8s repo."
73
22:29:35
echo "INFO: These additional Scandit variables are available to you:"
74
22:29:35
echo " SC_K8S_NODE_NAME: $SC_K8S_NODE_NAME"
75
22:29:35
echo " SC_K8S_IMAGE_ID: $SC_K8S_IMAGE_ID"
76
22:29:35
echo " SC_K8S_KYVERNO_PATCHES: |"
77
22:29:35
echo "$SC_K8S_KYVERNO_PATCHES" | sed 's/^/ /'
78
22:29:35
echo "cpu (r/l): ${SC_K8S_REQUESTS_CPU}/${SC_K8S_LIMITS_CPU}"
79
22:29:35
if command -v numfmt >/dev/null 2>&1; then
80
22:29:35
echo "memory (r/l): $(numfmt --to=iec --suffix=B $SC_K8S_REQUESTS_MEMORY)/$(numfmt --to=iec --suffix=B $SC_K8S_LIMITS_MEMORY)"
81
22:29:35
else
82
22:29:35
echo "memory (r/l): ${SC_K8S_REQUESTS_MEMORY}/${SC_K8S_LIMITS_MEMORY}"
83
22:29:35
fi
84
22:29:35
__start_time=${EPOCHSECONDS}
85
22:29:35
echo ""
86
22:29:35
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"
87
22:29:35
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"
88
22:29:35
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%7C%3D%7Cgitlab-runner&var-filters=source%7C%3D%7C${LOKI_LOGSOURCE}&var-filters=namespace%7C%3D%7C${SC_K8S_NAMESPACE}&var-filters=CI_PROJECT_ID%7C%3D%7C${CI_PROJECT_ID}&var-filters=CI_PIPELINE_ID%7C%3D%7C${CI_PIPELINE_ID}&var-filters=CI_JOB_ID%7C%3D%7C${CI_JOB_ID}&sortOrder=Ascending&from=${__start_time}000&to=now"
89
22:29:35
__date_from=$(date -d "@$(( EPOCHSECONDS - 604800 ))" +%Y-%m-%d)
90
22:29:35
__date_to=$(date -d "@$(( EPOCHSECONDS + 604800 ))" +%Y-%m-%d)
91
22:29:35
echo "Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=${__date_from}~${__date_to}&job_name=${CI_JOB_NAME}&project=${CI_PROJECT_PATH}"
92
22:29:35
echo ""
93
22:29:35
echo "Setting up credentials for Gitlab Python registries"
94
22:29:35
mkdir -p ~
95
22:29:35
echo "machine gitlab.scandit.com" > ~/.netrc
96
22:29:35
echo "login gitlab-ci-token" >> ~/.netrc
97
22:29:35
echo "password ${CI_JOB_TOKEN}" >> ~/.netrc
98
22:29:35
chmod 600 ~/.netrc
99
22:29:35
if command -v git &> /dev/null && [ "$(id -u)" -ne 0 ]; then
100
22:29:35
git config --global --add safe.directory $CI_PROJECT_DIR
101
22:29:35
fi
102
22:29:35
sleep infinity &
103
22:29:35
echo $! > ~/.bg_pid
104
22:29:35
section_end:1778279375:section_pre_build_script_0
105
22:29:35
INFO: This is the CI job pre_build_script
106
22:29:35
INFO: It's defined in the backend/infra/onprem/k8s repo.
107
22:29:35
INFO: These additional Scandit variables are available to you:
108
22:29:35
SC_K8S_NODE_NAME: ci10
109
22:29:35
SC_K8S_IMAGE_ID:
110
22:29:35
SC_K8S_KYVERNO_PATCHES: |
111
22:29:35
112
22:29:35
cpu (r/l): 2/8
113
22:29:35
memory (r/l): 4000000000/17179869184
114
22:29:35
115
22:29:35
Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=KpIiby5Vz&var-host=ci10&var-namespace=gitlab-runner&var-pod=runner-ap4tcsxyp-project-621-concurrent-7-h3s3l2ov&var-resolution=15&from=1778279375000&to=now
116
22:29:35
Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=KpIiby5Vz&var-node=ci10&var-resolution=15s&from=1778279375000&to=now
117
22:29:35
Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=nVsAo7UVk&var-filters=log_group%7C%3D%7Cgitlab-runner&var-filters=source%7C%3D%7Czrh.int.scandit.io&var-filters=namespace%7C%3D%7Cgitlab-runner&var-filters=CI_PROJECT_ID%7C%3D%7C621&var-filters=CI_PIPELINE_ID%7C%3D%7C1586734&var-filters=CI_JOB_ID%7C%3D%7C54740762&sortOrder=Ascending&from=1778279375000&to=now
118
22:29:35
Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=2026-05-01~2026-05-15&job_name=build-python3-image-with-context&project=internal/gitlab-templates
119
22:29:35
120
22:29:35
Setting up credentials for Gitlab Python registries
121
22:29:35
$ mkdir -p arbitrary_path
122
22:29:35
$ mv Dockerfile.python-3 arbitrary_path
123
22:29:35
$ mv requirements.txt arbitrary_path
124
22:29:35
$ mv .python-version arbitrary_path
125
22:29:35
$ mv .pip-version arbitrary_path
126
22:29:35
$ echo $DOCKER_CONFIG_JSON > /kaniko/.docker/config.json
127
22:29:35
$ mv /root/.netrc /kaniko/.netrc
128
22:29:35
section_start:1778279375:section_script_step_7[hide_duration=true,collapsed=true]
$ function copy_files() {
129
22:29:35
local src="$1"
130
22:29:35
local trg="$2"
131
22:29:35
for f in $src; do
132
22:29:35
t="$trg/`dirname $f`"
133
22:29:35
mkdir -p $t || true
134
22:29:35
echo "Copy $f"
135
22:29:35
cp -pr $f $trg/$f
136
22:29:35
done
137
22:29:35
}
138
22:29:35
function recursive_hash() {
139
22:29:35
local dir="$1"
140
22:29:35
find "$dir" -exec stat -c '%F|%a|%u:%g|%n' {} + -type f -exec sha256sum {} + | sort | sha256sum | cut -d ' ' -f1
141
22:29:35
}
142
22:29:35
function remote_docker_digest() {
143
22:29:35
local images="$1"
144
22:29:35
echo $images | xargs -n 1 crane digest
145
22:29:35
}
146
22:29:35
function remote_image_exists() {
147
22:29:35
local image="$1"
148
22:29:35
crane manifest $image > /dev/null 2>&1
149
22:29:35
}
150
22:29:35
function remote_images_are_identical() {
151
22:29:35
local imageA="$1"
152
22:29:35
local imageB="$2"
153
22:29:35
if [[ $(remote_docker_digest "$imageA") == $(remote_docker_digest "$imageB") ]]; then
154
22:29:35
return 0
155
22:29:35
else
156
22:29:35
return 1
157
22:29:35
fi
158
22:29:35
}
159
22:29:35
function copy_image() {
160
22:29:35
local image="$1"
161
22:29:35
local remotes="$2"
162
22:29:35
local backup_ext="$3"
163
22:29:35
echo "$image"
164
22:29:35
local source_digest=$(remote_docker_digest $image)
165
22:29:35
local target_digest
166
22:29:35
for registry in $remotes; do
167
22:29:35
if target_digest=$(remote_docker_digest $registry); then
168
22:29:35
if [ "$target_digest" != "$source_digest" ]; then
169
22:29:35
echo "image outdated, overwriting with newest version"
170
22:29:35
crane copy $image $registry
171
22:29:35
crane copy $image ${registry}${backup_ext}
172
22:29:35
fi
173
22:29:35
else
174
22:29:35
echo "image does not exist, writing newest version"
175
22:29:35
crane copy $image $registry
176
22:29:35
crane copy $image ${registry}${backup_ext}
177
22:29:35
fi
178
22:29:35
done
179
22:29:35
}
180
22:29:35
section_end:1778279375:section_script_step_7
181
22:29:35
section_start:1778279375:section_script_step_8[hide_duration=true,collapsed=true]
$ if [ "$CONTAINER_SUBDIR" != "" ]; then
182
22:29:35
echo "Entering subpath $CONTAINER_SUBDIR"
183
22:29:35
cd $CONTAINER_SUBDIR
184
22:29:35
fi
185
22:29:35
section_end:1778279375:section_script_step_8
186
22:29:35
Entering subpath arbitrary_path
187
22:29:35
$ copy_files "$CONTAINER_IMPLICIT_REQUIREMENTS $CONTAINER_REQUIREMENTS" "$CONTAINER_CONTEXT_PATH"
188
22:29:35
Copy Dockerfile.python-3
189
22:29:35
Copy .pip-version
190
22:29:35
Copy .python-version
191
22:29:35
Copy requirements.txt
192
22:29:35
$ echo "$CONTAINER_BUILD_ENVIRONMENT" > $CONTAINER_CONTEXT_PATH/.docker-build-env
193
22:29:35
$ docker_checksum=$(recursive_hash $CONTAINER_CONTEXT_PATH)
194
22:29:35
section_start:1778279375:section_script_step_12[hide_duration=true,collapsed=true]
$ if [ "$CONTAINER_IMAGE_NAME" == "" ]; then
195
22:29:35
final_image_name=${CONTAINER_IMAGE_URL}
196
22:29:35
else
197
22:29:35
final_image_name=${CONTAINER_IMAGE_URL}/${CONTAINER_IMAGE_NAME}
198
22:29:35
fi
199
22:29:35
section_end:1778279375:section_script_step_12
200
22:29:35
$ final_image_url=${final_image_name}:${docker_checksum}
201
22:29:35
section_start:1778279375:section_script_step_14[hide_duration=true,collapsed=true]
$ if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
202
22:29:35
echo $CONTAINER_IMAGE_VARIABLE=${final_image_url}-P${CI_PROJECT_ID}-${CI_PIPELINE_ID} > $CI_PROJECT_DIR/docker_image_build.env
203
22:29:35
else
204
22:29:35
echo $CONTAINER_IMAGE_VARIABLE=$final_image_url > $CI_PROJECT_DIR/docker_image_build.env
205
22:29:35
fi
206
22:29:35
section_end:1778279375:section_script_step_14
207
22:29:35
$ echo ${CONTAINER_IMAGE_VARIABLE}_HASH=$docker_checksum >> $CI_PROJECT_DIR/docker_image_build.env
208
22:29:35
section_start:1778279375:section_script_step_16[hide_duration=true,collapsed=true]
$ if [ "${FORCE_BUILD}" != "true" ] || command -v crane &> /dev/null; then
209
22:29:35
echo $REGISTRY_PASSWORD | crane auth login $REGISTRY -u $REGISTRY_USER --password-stdin
210
22:29:35
fi
211
22:29:35
section_end:1778279375:section_script_step_16
212
22:29:35
213
22:29:35
WARNING! Your credentials are stored unencrypted in '/kaniko/.docker/config.json'.
214
22:29:35
Configure a credential helper to remove this warning. See
215
22:29:35
https://docs.docker.com/go/credential-store/
216
22:29:35
217
22:29:35
2026/05/08 22:29:35 logged in via /kaniko/.docker/config.json
218
22:29:35
section_start:1778279375:section_script_step_17[hide_duration=true,collapsed=true]
$ if [ "${FORCE_BUILD}" != "true" ] && remote_image_exists "$final_image_url"; then
219
22:29:35
echo "Image already exists, skip the build."
220
22:29:35
echo "$final_image_url"
221
22:29:35
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
222
22:29:35
_EXT=""
223
22:29:35
_BACKUP_EXT="-CI${CI_JOB_ID}-$(date '+%Y%m%d')"
224
22:29:35
elif [[ -n "$CI_MERGE_REQUEST_ID" ]]; then
225
22:29:35
_EXT="-MR${CI_MERGE_REQUEST_IID}"
226
22:29:35
_BACKUP_EXT=""
227
22:29:35
elif [[ "$CI_COMMIT_REF_PROTECTED" == "true" ]]; then
228
22:29:35
_EXT="-${CI_COMMIT_REF_SLUG}"
229
22:29:35
_BACKUP_EXT="-CI${CI_JOB_ID}-$(date '+%Y%m%d')"
230
22:29:35
fi
231
22:29:35
for _TAG in $CONTAINER_IMAGE_TAG; do
232
22:29:35
echo "Copying ${final_image_url} to ${final_image_name}:${_TAG}${_EXT}"
233
22:29:35
copy_image "${final_image_url}" "${final_image_name}:${_TAG}${_EXT}" "${_BACKUP_EXT}"
234
22:29:35
done
235
22:29:35
if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
236
22:29:35
_EXT="-P${CI_PROJECT_ID}-${CI_PIPELINE_ID}"
237
22:29:35
echo "Copying ${final_image_url} to ${final_image_url}${_EXT}"
238
22:29:35
copy_image "${final_image_url}" "${final_image_url}${_EXT}"
239
22:29:35
for _TAG in $CONTAINER_IMAGE_TAG; do
240
22:29:35
echo "Copying ${final_image_url} to ${final_image_name}:${_TAG}${_EXT}"
241
22:29:35
copy_image "${final_image_url}" "${final_image_name}:${_TAG}${_EXT}"
242
22:29:35
done
243
22:29:35
fi
244
22:29:35
exit 0
245
22:29:35
fi
246
22:29:35
section_end:1778279375:section_script_step_17
247
22:29:35
$ DESTINATIONS="--destination=$final_image_url"
248
22:29:35
section_start:1778279375:section_script_step_19[hide_duration=true,collapsed=true]
$ if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
249
22:29:35
_EXT=""
250
22:29:35
TIMESTAMP_TAGS=$CONTAINER_IMAGE_TAG
251
22:29:35
elif [[ -n "$CI_MERGE_REQUEST_ID" ]]; then
252
22:29:35
_EXT="-MR${CI_MERGE_REQUEST_IID}"
253
22:29:35
TIMESTAMP_TAGS=""
254
22:29:35
elif [[ "$CI_COMMIT_REF_PROTECTED" == "true" ]]; then
255
22:29:35
_EXT="-${CI_COMMIT_REF_SLUG}"
256
22:29:35
TIMESTAMP_TAGS=$CONTAINER_IMAGE_TAG
257
22:29:35
fi
258
22:29:35
section_end:1778279375:section_script_step_19
259
22:29:35
section_start:1778279375:section_script_step_20[hide_duration=true,collapsed=true]
$ for _TAG in $CONTAINER_IMAGE_TAG; do
260
22:29:35
DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}"
261
22:29:35
done
262
22:29:35
section_end:1778279375:section_script_step_20
263
22:29:35
section_start:1778279375:section_script_step_21[hide_duration=true,collapsed=true]
$ if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
264
22:29:35
_EXT="-P${CI_PROJECT_ID}-${CI_PIPELINE_ID}"
265
22:29:35
DESTINATIONS="${DESTINATIONS} --destination=${final_image_url}${_EXT}"
266
22:29:35
for _TAG in $CONTAINER_IMAGE_TAG; do
267
22:29:35
DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}"
268
22:29:35
done
269
22:29:35
fi
270
22:29:35
section_end:1778279375:section_script_step_21
271
22:29:35
section_start:1778279375:section_script_step_22[hide_duration=true,collapsed=true]
$ DATE=$(date '+%Y%m%d')
272
22:29:35
for _TAG in $TIMESTAMP_TAGS; do
273
22:29:35
DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}-CI${CI_JOB_ID}-${DATE}"
274
22:29:35
done
275
22:29:35
section_end:1778279375:section_script_step_22
276
22:29:35
section_start:1778279375:section_script_step_23[hide_duration=true,collapsed=true]
$ if [ -n "${CONTAINER_BUILD_ARGS}" ]; then
277
22:29:35
for _BUILD_ARG in $CONTAINER_BUILD_ARGS; do
278
22:29:35
FINAL_BUILD_ARGS="--build-arg $_BUILD_ARG $FINAL_BUILD_ARGS"
279
22:29:35
done
280
22:29:35
fi
281
22:29:35
section_end:1778279375:section_script_step_23
282
22:29:35
section_start:1778279375:section_script_step_24[hide_duration=true,collapsed=true]
$ for _PATH in $CONTAINER_IGNORE_PATHS; do
283
22:29:35
FINAL_IGNORE_PATHS="--ignore-path=$_PATH $FINAL_IGNORE_PATHS"
284
22:29:35
done
285
22:29:35
section_end:1778279375:section_script_step_24
286
22:29:35
section_start:1778279375:section_script_step_25[hide_duration=true,collapsed=true]
$ if [ -n "${CONTAINER_PLATFORM}" ]; then
287
22:29:35
KANIKO_PLATFORM="--custom-platform=${CONTAINER_PLATFORM}"
288
22:29:35
fi
289
22:29:35
section_end:1778279375:section_script_step_25
290
22:29:35
$ ANNOTATIONS=""
291
22:29:35
section_start:1778279375:section_script_step_27[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_COMMIT_REF_NAME" ]]; then
292
22:29:35
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.ref.name=${CI_COMMIT_REF_NAME}"
293
22:29:35
fi
294
22:29:35
section_end:1778279375:section_script_step_27
295
22:29:35
section_start:1778279375:section_script_step_28[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_COMMIT_SHA" ]]; then
296
22:29:35
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.revision=${CI_COMMIT_SHA}"
297
22:29:35
fi
298
22:29:35
section_end:1778279375:section_script_step_28
299
22:29:35
section_start:1778279375:section_script_step_29[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_JOB_URL" ]]; then
300
22:29:35
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.url=${CI_JOB_URL}"
301
22:29:35
fi
302
22:29:35
section_end:1778279375:section_script_step_29
303
22:29:35
section_start:1778279375:section_script_step_30[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_PIPELINE_ID" ]]; then
304
22:29:35
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.pipeline_id=${CI_PIPELINE_ID}"
305
22:29:35
fi
306
22:29:35
section_end:1778279375:section_script_step_30
307
22:29:35
section_start:1778279375:section_script_step_31[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_JOB_ID" ]]; then
308
22:29:35
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.job_id=${CI_JOB_ID}"
309
22:29:35
fi
310
22:29:35
section_end:1778279375:section_script_step_31
311
22:29:35
section_start:1778279375:section_script_step_32[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_JOB_IMAGE" ]]; then
312
22:29:35
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.job_image=${CI_JOB_IMAGE}"
313
22:29:35
fi
314
22:29:35
section_end:1778279375:section_script_step_32
315
22:29:35
$ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.title=${final_image_name}:$(echo $CONTAINER_IMAGE_TAG | cut -d' ' -f1)"
316
22:29:35
$ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.created=$(date -u +%Y-%m-%dT%H:%M:%SZ)"
317
22:29:35
$ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.vendor=Scandit"
318
22:29:35
$ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.scandit.ci.hash=${docker_checksum}"
319
22:29:35
section_start:1778279375:section_script_step_37[hide_duration=true,collapsed=true]
$ if [ -n "${CONTAINER_TARGET_STAGE}" ]; then
320
22:29:35
KANIKO_TARGET="--target $CONTAINER_TARGET_STAGE"
321
22:29:35
fi
322
22:29:35
section_end:1778279375:section_script_step_37
323
22:29:35
$ set -x
324
22:29:35
+ 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'
325
22:29:35
$ /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
326
22:29:35
+ /kaniko/executor --context /build/internal/gitlab-templates/context/ --dockerfile Dockerfile.python-3 '--destination=registry.scandit.com/internal/gitlab-templates:97732edaa31c705ad4ba1b763f97c3d99b1b3186a2ffa1dc31568e6af8bb13ee' '--destination=registry.scandit.com/internal/gitlab-templates:latest-MR642' '--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=renovate/docker-digests' --annotation 'org.opencontainers.image.revision=d5797a8b5e04b552f7668652d1d91c113bb5aa74' --annotation 'org.opencontainers.image.url=https://gitlab.scandit.com/internal/gitlab-templates/-/jobs/54740762' --annotation 'io.gitlab.ci.pipeline_id=1586734' --annotation 'io.gitlab.ci.job_id=54740762' --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:latest' --annotation 'org.opencontainers.image.created=2026-05-08T22:29:35Z' --annotation 'org.opencontainers.image.vendor=Scandit' --annotation 'io.scandit.ci.hash=97732edaa31c705ad4ba1b763f97c3d99b1b3186a2ffa1dc31568e6af8bb13ee' --preserve-context '--credential-helpers=gitlab' --secret 'id=netrc,src=/kaniko/.netrc' --secret 'id=ci_job_token,env=CI_JOB_TOKEN'
327
22:29:35
INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
328
22:29:36
INFO[0000] Retrieving image manifest python:3.12-bookworm
329
22:29:36
INFO[0000] Retrieving image python:3.12-bookworm from registry index.docker.io
330
22:29:36
INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
331
22:29:36
INFO[0000] Retrieving image manifest python:3.12-bookworm
332
22:29:36
INFO[0000] Returning cached image manifest
333
22:29:37
INFO[0001] Retrieving image manifest python:3.12-bookworm
334
22:29:37
INFO[0001] Returning cached image manifest
335
22:29:37
INFO[0001] Retrieving image manifest python:3.12-bookworm
336
22:29:37
INFO[0001] Returning cached image manifest
337
22:29:37
INFO[0001] Built cross stage deps: map[]
338
22:29:37
INFO[0001] Skipping context snapshot as no-one requires it
339
22:29:37
INFO[0001] Retrieving image manifest python:3.12-bookworm
340
22:29:37
INFO[0001] Returning cached image manifest
341
22:29:37
INFO[0001] Retrieving image manifest python:3.12-bookworm
342
22:29:37
INFO[0001] Returning cached image manifest
343
22:29:37
INFO[0001] Building stage 'python:3.12-bookworm' [idx: '0', base-idx: '-1']
344
22:29:37
INFO[0001] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:4aa82f716f80c2fc0d58cc1f7a315d65fe7859ed520e8f4629aeee5d53138656...
345
22:29:37
INFO[0001] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
346
22:29:37
INFO[0001] Using caching version of cmd: RUN git clone https://github.com/pyenv/pyenv.git $PYENV_ROOT
347
22:29:37
INFO[0001] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:ba0db3758a565d2d2e2422aa1db025dbb40e077874cd6e1e401d3c49f3fcd62c...
348
22:29:37
INFO[0001] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
349
22:29:37
INFO[0001] Using caching version of cmd: RUN cd $PYENV_ROOT && git checkout $PYENV_VER
350
22:29:37
INFO[0001] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:5e779da5602a3411aed0b06bc0e08d3c6686e7e5b74cf75ca6cb8dd28794e2e3...
351
22:29:37
INFO[0001] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
352
22:29:37
INFO[0001] Using caching version of cmd: COPY /.python-version .python-version
353
22:29:37
INFO[0001] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:0b3d4dde0819fcc2180fb45da1885c190c4f446559d871702696eea8b042e275...
354
22:29:37
INFO[0001] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
355
22:29:37
INFO[0001] Using caching version of cmd: RUN eval "$(/root/.pyenv/bin/pyenv init --path)" && pyenv install $(cat .python-version) -s && pyenv global $(cat .python-version)
356
22:29:37
INFO[0001] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:bfc242ecea63c2c15b384e6069df1a9b8b0ad16b4052294800a11fbf1791b1f7...
357
22:29:37
INFO[0001] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
358
22:29:37
INFO[0001] Using caching version of cmd: RUN echo 'eval "$(/root/.pyenv/bin/pyenv init --path)"' >> /root/.profile
359
22:29:37
INFO[0001] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:c1786d0b175d4ddb55286e63435f10707815e05ec84ea21598f1412338ca3bd0...
360
22:29:37
INFO[0001] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
361
22:29:37
INFO[0001] Using caching version of cmd: RUN pyenv version | grep $(cat .python-version)
362
22:29:37
INFO[0001] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:3fea39beb03eec55065a1ea9a20bc9eb37d747ce02dde374ed83c7bdb1dbdd4b...
363
22:29:37
INFO[0001] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
364
22:29:37
INFO[0002] Using caching version of cmd: RUN python3 -m pip install --upgrade pip wheel
365
22:29:37
INFO[0002] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:11e9f70596055c2fa501c03b19174d11ba15e7065cf19919a4870f6bfb5eb570...
366
22:29:37
INFO[0002] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
367
22:29:38
INFO[0002] Using caching version of cmd: COPY /requirements.txt requirements.txt
368
22:29:38
INFO[0002] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:1341b5af1710055894c1053022824c20400b076b2a37d3d8dbbab26e7df26e52...
369
22:29:38
INFO[0002] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
370
22:29:38
INFO[0002] Using caching version of cmd: RUN --mount=type=secret,id=netrc,target=/root/.netrc python3 -m pip install -r requirements.txt
371
22:29:38
INFO[0002] Skipping unpacking as no commands require it.
372
22:29:38
INFO[0002] ENV PYENV_VER=v2.3.36
373
22:29:38
INFO[0002] Taking snapshot of files...
374
22:29:38
INFO[0002] ENV PYENV_ROOT /root/.pyenv
375
22:29:38
INFO[0002] Taking snapshot of files...
376
22:29:38
INFO[0002] ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
377
22:29:38
INFO[0002] Taking snapshot of files...
378
22:29:38
INFO[0002] RUN git clone https://github.com/pyenv/pyenv.git $PYENV_ROOT
379
22:29:38
INFO[0002] Found cached layer, extracting to filesystem
380
22:29:39
INFO[0003] RUN cd $PYENV_ROOT && git checkout $PYENV_VER
381
22:29:39
INFO[0003] Found cached layer, extracting to filesystem
382
22:29:39
INFO[0003] COPY /.python-version .python-version
383
22:29:39
INFO[0003] Found cached layer, extracting to filesystem
384
22:29:39
INFO[0003] RUN eval "$(/root/.pyenv/bin/pyenv init --path)" && pyenv install $(cat .python-version) -s && pyenv global $(cat .python-version)
385
22:29:39
INFO[0003] Found cached layer, extracting to filesystem
386
22:29:51
INFO[0015] RUN echo 'eval "$(/root/.pyenv/bin/pyenv init --path)"' >> /root/.profile
387
22:29:51
INFO[0015] Found cached layer, extracting to filesystem
388
22:29:51
INFO[0015] SHELL ["/bin/bash", "-c"]
389
22:29:51
INFO[0015] Taking snapshot of files...
390
22:29:51
INFO[0015] RUN pyenv version | grep $(cat .python-version)
391
22:29:51
INFO[0015] Found cached layer, extracting to filesystem
392
22:29:51
INFO[0015] RUN python3 -m pip install --upgrade pip wheel
393
22:29:51
INFO[0015] Found cached layer, extracting to filesystem
394
22:29:52
INFO[0016] COPY /requirements.txt requirements.txt
395
22:29:52
INFO[0016] Found cached layer, extracting to filesystem
396
22:29:52
INFO[0016] RUN --mount=type=secret,id=netrc,target=/root/.netrc python3 -m pip install -r requirements.txt
397
22:29:52
INFO[0016] Found cached layer, extracting to filesystem
398
22:29:53
INFO[0017] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
399
22:29:53
INFO[0017] Pushing image to registry.scandit.com/internal/gitlab-templates:97732edaa31c705ad4ba1b763f97c3d99b1b3186a2ffa1dc31568e6af8bb13ee
400
22:29:54
INFO[0018] Pushed registry.scandit.com/internal/gitlab-templates@sha256:9ea48d0c506c422976562df70a5a084ddb7246cb3dde4b4c588f075e569a298c
401
22:29:54
INFO[0018] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
402
22:29:54
INFO[0018] Pushing image to registry.scandit.com/internal/gitlab-templates:latest-MR642
403
22:29:54
INFO[0018] Pushed registry.scandit.com/internal/gitlab-templates@sha256:9ea48d0c506c422976562df70a5a084ddb7246cb3dde4b4c588f075e569a298c
404
22:29:54
+ cleanup
405
22:29:54
+ rv=0
406
22:29:54
+ '[' 0 -ne 0 ]
407
22:29:54
+ echo
408
22:29:54
409
22:29:54
+ echo 'Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54740762'
410
22:29:54
Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54740762
411
22:29:54
+ echo
412
22:29:54
413
22:29:54
+ echo
414
22:29:54
415
22:29:54
+ echo 'Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=KpIiby5Vz&var-host=ci10&var-namespace=gitlab-runner&var-pod=runner-ap4tcsxyp-project-621-concurrent-7-h3s3l2ov&var-resolution=15&from=1778279375000&to=1778279394000'
416
22:29:54
Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=KpIiby5Vz&var-host=ci10&var-namespace=gitlab-runner&var-pod=runner-ap4tcsxyp-project-621-concurrent-7-h3s3l2ov&var-resolution=15&from=1778279375000&to=1778279394000
417
22:29:54
+ echo 'Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=KpIiby5Vz&var-node=ci10&var-resolution=15s&from=1778279375000&to=1778279394000'
418
22:29:54
Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=KpIiby5Vz&var-node=ci10&var-resolution=15s&from=1778279375000&to=1778279394000
419
22:29:54
+ echo 'Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=nVsAo7UVk&var-filters=log_group%7C=%7Cgitlab-runner&var-filters=source%7C%3D%7Czrh.int.scandit.io&var-filters=namespace%7C%3D%7Cgitlab-runner&var-filters=CI_PROJECT_ID%7C%3D%7C621&var-filters=CI_PIPELINE_ID%7C%3D%7C1586734&var-filters=CI_JOB_ID%7C%3D%7C54740762&sortOrder=Ascending&from=1778279375000&to=1778279394000'
420
22:29:54
Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=nVsAo7UVk&var-filters=log_group%7C=%7Cgitlab-runner&var-filters=source%7C%3D%7Czrh.int.scandit.io&var-filters=namespace%7C%3D%7Cgitlab-runner&var-filters=CI_PROJECT_ID%7C%3D%7C621&var-filters=CI_PIPELINE_ID%7C%3D%7C1586734&var-filters=CI_JOB_ID%7C%3D%7C54740762&sortOrder=Ascending&from=1778279375000&to=1778279394000
421
22:29:54
+ date -d @1777674594 '+%Y-%m-%d'
422
22:29:54
+ __date_from=2026-05-01
423
22:29:54
+ date -d @1778884194 '+%Y-%m-%d'
424
22:29:54
+ __date_to=2026-05-15
425
22:29:54
+ echo 'Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=2026-05-01~2026-05-15&job_name=build-python3-image-with-context&project=internal/gitlab-templates'
426
22:29:54
Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=2026-05-01~2026-05-15&job_name=build-python3-image-with-context&project=internal/gitlab-templates
427
22:29:54
+ echo
428
22:29:54
429
22:29:54
+ exit 0
430
22:29:54
431
22:29:54
section_end:1778279394:step_script
432
22:29:54
+section_start:1778279394:upload_artifacts_on_success
433
22:29:54
+Uploading artifacts for successful job
434
22:29:55
Uploading artifacts...
435
22:29:55
docker_image_build.env: found 1 matching artifact files and directories
436
22:29:55
Uploading artifacts as "dotenv" to coordinator... 201 Created correlation_id=01KR4VCC0C0RSY69KX0VQMRN16 id=54740762 responseStatus=201 Created token=64_bGtzgF
437
22:29:55
438
22:29:55
section_end:1778279395:upload_artifacts_on_success
439
22:29:55
+section_start:1778279395:cleanup_file_variables
440
22:29:55
+Cleaning up project directory and file based variables
441
22:29:56
Removing arbitrary_path/
442
22:29:56
Removing context/
443
22:29:56
Removing docker_image_build.env
444
22:29:56
HEAD is now at d5797a8 Merge branch 'renovate/docker-digests' into 'master'
445
22:29:56
446
22:29:56
section_end:1778279396:cleanup_file_variables
447
22:29:56
+
448
22:29:56
Job succeeded
449