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