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