build-sc-git-utilities-image ○ success
⏱
Duration: 1m 9s
⏳
Queued: 4s
📁
Stage: docker-image
🖥
Runner: linux-aws-1
Average Duration
30s
This job: 1m 9s
Failure Rate
11.8%
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
429 lines
Match - of 0
1
11:09:36
Running with gitlab-runner 18.9.0 (07e534ba)
2
11:09:36
on gitlab-runner-linux-1-746bdd58fd-tczzm wRxjPbsJX, system ID: r_DBMrRrXxkY91
3
11:09:36
feature flags: FF_USE_FASTZIP:true, FF_USE_NEW_BASH_EVAL_STRATEGY:true, FF_USE_DYNAMIC_TRACE_FORCE_SEND_INTERVAL:true, FF_SCRIPT_SECTIONS:true, FF_USE_ADVANCED_POD_SPEC_CONFIGURATION:true, FF_PRINT_POD_EVENTS:true, FF_USE_DUMB_INIT_WITH_KUBERNETES_EXECUTOR:true, FF_LOG_IMAGES_CONFIGURED_FOR_JOB:true, FF_CLEAN_UP_FAILED_CACHE_EXTRACT:true, FF_GIT_URLS_WITHOUT_TOKENS:true, FF_WAIT_FOR_POD_TO_BE_REACHABLE:true, FF_USE_FLEETING_ACQUIRE_HEARTBEATS:true, FF_USE_JOB_ROUTER:true
4
11:09:36
Resolving secrets
5
11:09:36
section_start:1778065776:prepare_executor
6
11:09:36
+Preparing the "kubernetes" executor
7
11:09:36
"CPURequest" overwritten with "2"
8
11:09:36
"MemoryRequest" overwritten with "4G"
9
11:09:36
Using Kubernetes namespace: gitlab-runner
10
11:09:36
Using Kubernetes executor with image registry.scandit.com/dockerfiles/kaniko:v1.27.3-crane@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac ...
11
11:09:36
Using attach strategy to execute scripts...
12
11:09:36
Using effective pull policy of [Always] for container build
13
11:09:36
Using effective pull policy of [Always] for container helper
14
11:09:36
Using effective pull policy of [Always] for container init-permissions
15
11:09:36
section_end:1778065776:prepare_executor
16
11:09:36
+section_start:1778065776:prepare_script
17
11:09:36
+Preparing environment
18
11:09:36
Using FF_USE_POD_ACTIVE_DEADLINE_SECONDS, the Pod activeDeadlineSeconds will be set to the job timeout: 1h0m0s...
19
11:09:36
WARNING: Advanced Pod Spec configuration enabled, merging the provided PodSpec to the generated one. This is a beta feature and is subject to change. Feedback is collected in this issue: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/29659 ...
20
11:09:36
Subscribing to Kubernetes Pod events...
21
11:09:37
Type Reason Message
22
11:09:37
Normal Scheduled Successfully assigned gitlab-runner/runner-wrxjpbsjx-project-621-concurrent-3-jw292ms7 to ip-10-0-26-238.eu-central-1.compute.internal
23
11:09:37
Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" already present on machine
24
11:09:37
Normal Created Created container: init-permissions
25
11:09:39
Normal Started Started container init-permissions
26
11:10:07
Normal Pulling Pulling image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/kaniko@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac"
27
11:10:08
Normal Pulled Successfully pulled image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/kaniko@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac" in 1.278s (1.278s including waiting). Image size: 49989654 bytes.
28
11:10:08
Normal Created Created container: build
29
11:10:09
Normal Started Started container build
30
11:10:09
Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" already present on machine
31
11:10:09
Normal Created Created container: helper
32
11:10:09
Normal Started Started container helper
33
11:10:10
Running on runner-wrxjpbsjx-project-621-concurrent-3-jw292ms7 via gitlab-runner-linux-1-746bdd58fd-tczzm...
34
11:10:10
35
11:10:10
section_end:1778065810:prepare_script
36
11:10:10
+section_start:1778065810:get_sources
37
11:10:10
+Getting source from Git repository
38
11:10:10
Gitaly correlation ID: 01KQYFN71HV8D6ZFFBY44NFHTB
39
11:10:10
Fetching changes with git depth set to 1...
40
11:10:10
Initialized empty Git repository in /build/internal/gitlab-templates/.git/
41
11:10:10
Created fresh repository.
42
11:10:11
Checking out 19a8ce14 as detached HEAD (ref is master)...
43
11:10:11
44
11:10:11
Skipping Git submodules setup
45
11:10:11
46
11:10:11
section_end:1778065811:get_sources
47
11:10:11
+section_start:1778065811:step_script
48
11:10:11
+Executing "step_script" stage of the job script
49
11:10:11
section_start:1778065811:section_pre_build_script_0[hide_duration=true,collapsed=true]
$ function cleanup {
50
11:10:11
rv=$?
51
11:10:11
if [ $rv -ne 0 ]; then
52
11:10:11
echo ""
53
11:10:11
echo " Failure Cause Analysis might help, please open this link:"
54
11:10:11
echo " https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
55
11:10:11
echo ""
56
11:10:11
fi
57
11:10:11
echo ""
58
11:10:11
echo "Scout Analysis: https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
59
11:10:11
echo ""
60
11:10:11
echo ""
61
11:10:11
echo "Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-host=${SC_K8S_NODE_NAME}&var-namespace=${SC_K8S_NAMESPACE}&var-pod=${HOSTNAME}&var-resolution=15&from=${__start_time}000&to=${EPOCHSECONDS}000"
62
11:10:11
echo "Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-node=${SC_K8S_NODE_NAME}&var-resolution=15s&from=${__start_time}000&to=${EPOCHSECONDS}000"
63
11:10:11
echo "Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=${LOKI_DATASOURCE}&var-filters=log_group|=|gitlab-runner&var-filters=source|=|${LOKI_LOGSOURCE}&var-filters=namespace|=|${SC_K8S_NAMESPACE}&var-filters=CI_PROJECT_ID|=|${CI_PROJECT_ID}&var-filters=CI_PIPELINE_ID|=|${CI_PIPELINE_ID}&var-filters=CI_JOB_ID|=|${CI_JOB_ID}&sortOrder=Ascending&from=${__start_time}000&to=${EPOCHSECONDS}000"
64
11:10:11
echo "Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=$(date -d '-7 days' +%Y-%m-%d)~$(date -d '+7 days' +%Y-%m-%d)&job_name=${CI_JOB_NAME}&project=${CI_PROJECT_PATH}"
65
11:10:11
echo ""
66
11:10:11
exit $rv
67
11:10:11
}
68
11:10:11
trap cleanup EXIT
69
11:10:11
echo "INFO: This is the CI job pre_build_script"
70
11:10:11
echo "INFO: It's defined in the backend/infra/aws repo."
71
11:10:11
echo "INFO: These additional Scandit variables are available to you:"
72
11:10:11
echo " SC_K8S_NODE_NAME: $SC_K8S_NODE_NAME"
73
11:10:11
echo " SC_K8S_IMAGE_ID: $SC_K8S_IMAGE_ID"
74
11:10:11
echo " SC_K8S_KYVERNO_PATCHES: |"
75
11:10:11
echo "$SC_K8S_KYVERNO_PATCHES" | sed 's/^/ /'
76
11:10:11
echo "cpu (r/l): ${SC_K8S_REQUESTS_CPU}/${SC_K8S_LIMITS_CPU}"
77
11:10:11
if command -v numfmt >/dev/null 2>&1; then
78
11:10:11
echo "memory (r/l): $(numfmt --to=iec --suffix=B $SC_K8S_REQUESTS_MEMORY)/$(numfmt --to=iec --suffix=B $SC_K8S_LIMITS_MEMORY)"
79
11:10:11
else
80
11:10:11
echo "memory (r/l): ${SC_K8S_REQUESTS_MEMORY}/${SC_K8S_LIMITS_MEMORY}"
81
11:10:11
fi
82
11:10:11
__start_time=${EPOCHSECONDS}
83
11:10:11
echo ""
84
11:10:11
echo "Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-host=${SC_K8S_NODE_NAME}&var-namespace=${SC_K8S_NAMESPACE}&var-pod=${HOSTNAME}&var-resolution=15&from=${__start_time}000&to=now"
85
11:10:11
echo "Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-node=${SC_K8S_NODE_NAME}&var-resolution=15s&from=${__start_time}000&to=now"
86
11:10:11
echo "Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=${LOKI_DATASOURCE}&var-filters=log_group|=|gitlab-runner&var-filters=source|=|${LOKI_LOGSOURCE}&var-filters=namespace|=|${SC_K8S_NAMESPACE}&var-filters=CI_PROJECT_ID|=|${CI_PROJECT_ID}&var-filters=CI_PIPELINE_ID|=|${CI_PIPELINE_ID}&var-filters=CI_JOB_ID|=|${CI_JOB_ID}&sortOrder=Ascending&from=${__start_time}000&to=now"
87
11:10:11
echo "Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=$(date -d '-7 days' +%Y-%m-%d)~$(date -d '+7 days' +%Y-%m-%d)&job_name=${CI_JOB_NAME}&project=${CI_PROJECT_PATH}"
88
11:10:11
echo ""
89
11:10:11
echo "Setting up credentials for Gitlab Python registries"
90
11:10:11
mkdir -p ~
91
11:10:11
echo "machine gitlab.scandit.com" > ~/.netrc
92
11:10:11
echo "login gitlab-ci-token" >> ~/.netrc
93
11:10:11
echo "password ${CI_JOB_TOKEN}" >> ~/.netrc
94
11:10:11
chmod 600 ~/.netrc
95
11:10:11
if command -v git &> /dev/null && [ "$(id -u)" -ne 0 ]; then
96
11:10:11
git config --global --add safe.directory $CI_PROJECT_DIR
97
11:10:11
fi
98
11:10:11
# Sonarqube server is running on the same cluster. Use internal address
99
11:10:11
export SONAR_HOST_URL="http://sonarqube.sonarqube.svc.cluster.local:9000"
100
11:10:11
section_end:1778065811:section_pre_build_script_0
101
11:10:11
INFO: This is the CI job pre_build_script
102
11:10:11
INFO: It's defined in the backend/infra/aws repo.
103
11:10:11
INFO: These additional Scandit variables are available to you:
104
11:10:11
SC_K8S_NODE_NAME: ip-10-0-26-238.eu-central-1.compute.internal
105
11:10:11
SC_K8S_IMAGE_ID:
106
11:10:11
SC_K8S_KYVERNO_PATCHES: |
107
11:10:11
108
11:10:11
cpu (r/l): 2/4
109
11:10:11
memory (r/l): 4000000000/17179869184
110
11:10:11
111
11:10:11
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-26-238.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-3-jw292ms7&var-resolution=15&from=1778065811000&to=now
112
11:10:11
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-26-238.eu-central-1.compute.internal&var-resolution=15s&from=1778065811000&to=now
113
11:10:11
Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=nVsAo7UVk&var-filters=log_group|=|gitlab-runner&var-filters=source|=|k8s-ci.aws.scandit.io&var-filters=namespace|=|gitlab-runner&var-filters=CI_PROJECT_ID|=|621&var-filters=CI_PIPELINE_ID|=|1581320&var-filters=CI_JOB_ID|=|54484704&sortOrder=Ascending&from=1778065811000&to=now
114
11:10:11
date: invalid date '-7 days'
115
11:10:11
date: invalid date '+7 days'
116
11:10:11
Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build-sc-git-utilities-image&project=internal/gitlab-templates
117
11:10:11
118
11:10:11
Setting up credentials for Gitlab Python registries
119
11:10:11
$ echo $DOCKER_CONFIG_JSON > /kaniko/.docker/config.json
120
11:10:11
$ mv /root/.netrc /kaniko/.netrc
121
11:10:11
section_start:1778065811:section_script_step_2[hide_duration=true,collapsed=true]
$ function copy_files() {
122
11:10:11
local src="$1"
123
11:10:11
local trg="$2"
124
11:10:11
for f in $src; do
125
11:10:11
t="$trg/`dirname $f`"
126
11:10:11
mkdir -p $t || true
127
11:10:11
echo "Copy $f"
128
11:10:11
cp -pr $f $trg/$f
129
11:10:11
done
130
11:10:11
}
131
11:10:11
function recursive_hash() {
132
11:10:11
local dir="$1"
133
11:10:11
find "$dir" -exec stat -c '%F|%a|%u:%g|%n' {} + -type f -exec sha256sum {} + | sort | sha256sum | cut -d ' ' -f1
134
11:10:11
}
135
11:10:11
function remote_docker_digest() {
136
11:10:11
local images="$1"
137
11:10:11
echo $images | xargs -n 1 crane digest
138
11:10:11
}
139
11:10:11
function remote_image_exists() {
140
11:10:11
local image="$1"
141
11:10:11
crane manifest $image > /dev/null 2>&1
142
11:10:11
}
143
11:10:11
function remote_images_are_identical() {
144
11:10:11
local imageA="$1"
145
11:10:11
local imageB="$2"
146
11:10:11
if [[ $(remote_docker_digest "$imageA") == $(remote_docker_digest "$imageB") ]]; then
147
11:10:11
return 0
148
11:10:11
else
149
11:10:11
return 1
150
11:10:11
fi
151
11:10:11
}
152
11:10:11
function copy_image() {
153
11:10:11
local image="$1"
154
11:10:11
local remotes="$2"
155
11:10:11
local backup_ext="$3"
156
11:10:11
echo "$image"
157
11:10:11
local source_digest=$(remote_docker_digest $image)
158
11:10:11
local target_digest
159
11:10:11
for registry in $remotes; do
160
11:10:11
if target_digest=$(remote_docker_digest $registry); then
161
11:10:11
if [ "$target_digest" != "$source_digest" ]; then
162
11:10:11
echo "image outdated, overwriting with newest version"
163
11:10:11
crane copy $image $registry
164
11:10:11
crane copy $image ${registry}${backup_ext}
165
11:10:11
fi
166
11:10:11
else
167
11:10:11
echo "image does not exist, writing newest version"
168
11:10:11
crane copy $image $registry
169
11:10:11
crane copy $image ${registry}${backup_ext}
170
11:10:11
fi
171
11:10:11
done
172
11:10:11
}
173
11:10:11
section_end:1778065811:section_script_step_2
174
11:10:11
section_start:1778065811:section_script_step_3[hide_duration=true,collapsed=true]
$ if [ "$CONTAINER_SUBDIR" != "" ]; then
175
11:10:11
echo "Entering subpath $CONTAINER_SUBDIR"
176
11:10:11
cd $CONTAINER_SUBDIR
177
11:10:11
fi
178
11:10:11
section_end:1778065811:section_script_step_3
179
11:10:11
$ copy_files "$CONTAINER_IMPLICIT_REQUIREMENTS $CONTAINER_REQUIREMENTS" "$CONTAINER_CONTEXT_PATH"
180
11:10:11
Copy Dockerfile.sc-git-utilities
181
11:10:11
$ echo "$CONTAINER_BUILD_ENVIRONMENT" > $CONTAINER_CONTEXT_PATH/.docker-build-env
182
11:10:11
$ docker_checksum=$(recursive_hash $CONTAINER_CONTEXT_PATH)
183
11:10:11
section_start:1778065811:section_script_step_7[hide_duration=true,collapsed=true]
$ if [ "$CONTAINER_IMAGE_NAME" == "" ]; then
184
11:10:11
final_image_name=${CONTAINER_IMAGE_URL}
185
11:10:11
else
186
11:10:11
final_image_name=${CONTAINER_IMAGE_URL}/${CONTAINER_IMAGE_NAME}
187
11:10:11
fi
188
11:10:11
section_end:1778065811:section_script_step_7
189
11:10:11
$ final_image_url=${final_image_name}:${docker_checksum}
190
11:10:11
section_start:1778065811:section_script_step_9[hide_duration=true,collapsed=true]
$ if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
191
11:10:11
echo $CONTAINER_IMAGE_VARIABLE=${final_image_url}-P${CI_PROJECT_ID}-${CI_PIPELINE_ID} > $CI_PROJECT_DIR/docker_image_build.env
192
11:10:11
else
193
11:10:11
echo $CONTAINER_IMAGE_VARIABLE=$final_image_url > $CI_PROJECT_DIR/docker_image_build.env
194
11:10:11
fi
195
11:10:11
section_end:1778065811:section_script_step_9
196
11:10:11
$ echo ${CONTAINER_IMAGE_VARIABLE}_HASH=$docker_checksum >> $CI_PROJECT_DIR/docker_image_build.env
197
11:10:11
section_start:1778065811:section_script_step_11[hide_duration=true,collapsed=true]
$ if [ "${FORCE_BUILD}" != "true" ] || command -v crane &> /dev/null; then
198
11:10:11
echo $REGISTRY_PASSWORD | crane auth login $REGISTRY -u $REGISTRY_USER --password-stdin
199
11:10:11
fi
200
11:10:11
section_end:1778065811:section_script_step_11
201
11:10:11
202
11:10:11
WARNING! Your credentials are stored unencrypted in '/kaniko/.docker/config.json'.
203
11:10:11
Configure a credential helper to remove this warning. See
204
11:10:11
https://docs.docker.com/go/credential-store/
205
11:10:11
206
11:10:11
2026/05/06 11:10:11 logged in via /kaniko/.docker/config.json
207
11:10:11
section_start:1778065811:section_script_step_12[hide_duration=true,collapsed=true]
$ if [ "${FORCE_BUILD}" != "true" ] && remote_image_exists "$final_image_url"; then
208
11:10:11
echo "Image already exists, skip the build."
209
11:10:11
echo "$final_image_url"
210
11:10:11
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
211
11:10:11
_EXT=""
212
11:10:11
_BACKUP_EXT="-CI${CI_JOB_ID}-$(date '+%Y%m%d')"
213
11:10:11
elif [[ -n "$CI_MERGE_REQUEST_ID" ]]; then
214
11:10:11
_EXT="-MR${CI_MERGE_REQUEST_IID}"
215
11:10:11
_BACKUP_EXT=""
216
11:10:11
elif [[ "$CI_COMMIT_REF_PROTECTED" == "true" ]]; then
217
11:10:11
_EXT="-${CI_COMMIT_REF_SLUG}"
218
11:10:11
_BACKUP_EXT="-CI${CI_JOB_ID}-$(date '+%Y%m%d')"
219
11:10:11
fi
220
11:10:11
for _TAG in $CONTAINER_IMAGE_TAG; do
221
11:10:11
echo "Copying ${final_image_url} to ${final_image_name}:${_TAG}${_EXT}"
222
11:10:11
copy_image "${final_image_url}" "${final_image_name}:${_TAG}${_EXT}" "${_BACKUP_EXT}"
223
11:10:11
done
224
11:10:11
if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
225
11:10:11
_EXT="-P${CI_PROJECT_ID}-${CI_PIPELINE_ID}"
226
11:10:11
echo "Copying ${final_image_url} to ${final_image_url}${_EXT}"
227
11:10:11
copy_image "${final_image_url}" "${final_image_url}${_EXT}"
228
11:10:11
for _TAG in $CONTAINER_IMAGE_TAG; do
229
11:10:11
echo "Copying ${final_image_url} to ${final_image_name}:${_TAG}${_EXT}"
230
11:10:11
copy_image "${final_image_url}" "${final_image_name}:${_TAG}${_EXT}"
231
11:10:11
done
232
11:10:11
fi
233
11:10:11
exit 0
234
11:10:11
fi
235
11:10:11
section_end:1778065811:section_script_step_12
236
11:10:11
$ DESTINATIONS="--destination=$final_image_url"
237
11:10:11
section_start:1778065811:section_script_step_14[hide_duration=true,collapsed=true]
$ if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
238
11:10:11
_EXT=""
239
11:10:11
TIMESTAMP_TAGS=$CONTAINER_IMAGE_TAG
240
11:10:11
elif [[ -n "$CI_MERGE_REQUEST_ID" ]]; then
241
11:10:11
_EXT="-MR${CI_MERGE_REQUEST_IID}"
242
11:10:11
TIMESTAMP_TAGS=""
243
11:10:11
elif [[ "$CI_COMMIT_REF_PROTECTED" == "true" ]]; then
244
11:10:11
_EXT="-${CI_COMMIT_REF_SLUG}"
245
11:10:11
TIMESTAMP_TAGS=$CONTAINER_IMAGE_TAG
246
11:10:11
fi
247
11:10:11
section_end:1778065811:section_script_step_14
248
11:10:11
section_start:1778065811:section_script_step_15[hide_duration=true,collapsed=true]
$ for _TAG in $CONTAINER_IMAGE_TAG; do
249
11:10:11
DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}"
250
11:10:11
done
251
11:10:11
section_end:1778065811:section_script_step_15
252
11:10:11
section_start:1778065811:section_script_step_16[hide_duration=true,collapsed=true]
$ if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
253
11:10:11
_EXT="-P${CI_PROJECT_ID}-${CI_PIPELINE_ID}"
254
11:10:11
DESTINATIONS="${DESTINATIONS} --destination=${final_image_url}${_EXT}"
255
11:10:11
for _TAG in $CONTAINER_IMAGE_TAG; do
256
11:10:11
DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}"
257
11:10:11
done
258
11:10:11
fi
259
11:10:11
section_end:1778065811:section_script_step_16
260
11:10:11
section_start:1778065811:section_script_step_17[hide_duration=true,collapsed=true]
$ DATE=$(date '+%Y%m%d')
261
11:10:11
for _TAG in $TIMESTAMP_TAGS; do
262
11:10:11
DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}-CI${CI_JOB_ID}-${DATE}"
263
11:10:11
done
264
11:10:11
section_end:1778065811:section_script_step_17
265
11:10:11
section_start:1778065811:section_script_step_18[hide_duration=true,collapsed=true]
$ if [ -n "${CONTAINER_BUILD_ARGS}" ]; then
266
11:10:11
for _BUILD_ARG in $CONTAINER_BUILD_ARGS; do
267
11:10:11
FINAL_BUILD_ARGS="--build-arg $_BUILD_ARG $FINAL_BUILD_ARGS"
268
11:10:11
done
269
11:10:11
fi
270
11:10:11
section_end:1778065811:section_script_step_18
271
11:10:11
section_start:1778065811:section_script_step_19[hide_duration=true,collapsed=true]
$ for _PATH in $CONTAINER_IGNORE_PATHS; do
272
11:10:11
FINAL_IGNORE_PATHS="--ignore-path=$_PATH $FINAL_IGNORE_PATHS"
273
11:10:11
done
274
11:10:11
section_end:1778065811:section_script_step_19
275
11:10:11
section_start:1778065811:section_script_step_20[hide_duration=true,collapsed=true]
$ if [ -n "${CONTAINER_PLATFORM}" ]; then
276
11:10:11
KANIKO_PLATFORM="--custom-platform=${CONTAINER_PLATFORM}"
277
11:10:11
fi
278
11:10:11
section_end:1778065811:section_script_step_20
279
11:10:11
$ ANNOTATIONS=""
280
11:10:11
section_start:1778065811:section_script_step_22[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_COMMIT_REF_NAME" ]]; then
281
11:10:11
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.ref.name=${CI_COMMIT_REF_NAME}"
282
11:10:11
fi
283
11:10:11
section_end:1778065811:section_script_step_22
284
11:10:11
section_start:1778065811:section_script_step_23[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_COMMIT_SHA" ]]; then
285
11:10:11
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.revision=${CI_COMMIT_SHA}"
286
11:10:11
fi
287
11:10:11
section_end:1778065811:section_script_step_23
288
11:10:11
section_start:1778065811:section_script_step_24[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_JOB_URL" ]]; then
289
11:10:11
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.url=${CI_JOB_URL}"
290
11:10:11
fi
291
11:10:11
section_end:1778065811:section_script_step_24
292
11:10:11
section_start:1778065811:section_script_step_25[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_PIPELINE_ID" ]]; then
293
11:10:11
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.pipeline_id=${CI_PIPELINE_ID}"
294
11:10:11
fi
295
11:10:11
section_end:1778065811:section_script_step_25
296
11:10:11
section_start:1778065811:section_script_step_26[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_JOB_ID" ]]; then
297
11:10:11
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.job_id=${CI_JOB_ID}"
298
11:10:11
fi
299
11:10:11
section_end:1778065811:section_script_step_26
300
11:10:11
section_start:1778065811:section_script_step_27[hide_duration=true,collapsed=true]
$ if [[ -n "$CI_JOB_IMAGE" ]]; then
301
11:10:11
ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.job_image=${CI_JOB_IMAGE}"
302
11:10:11
fi
303
11:10:11
section_end:1778065811:section_script_step_27
304
11:10:11
$ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.title=${final_image_name}:$(echo $CONTAINER_IMAGE_TAG | cut -d' ' -f1)"
305
11:10:11
$ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.created=$(date -u +%Y-%m-%dT%H:%M:%SZ)"
306
11:10:11
$ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.vendor=Scandit"
307
11:10:11
$ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.scandit.ci.hash=${docker_checksum}"
308
11:10:11
section_start:1778065811:section_script_step_32[hide_duration=true,collapsed=true]
$ if [ -n "${CONTAINER_TARGET_STAGE}" ]; then
309
11:10:11
KANIKO_TARGET="--target $CONTAINER_TARGET_STAGE"
310
11:10:11
fi
311
11:10:11
section_end:1778065811:section_script_step_32
312
11:10:11
$ set -x
313
11:10:11
+ 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'
314
11:10:11
$ /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
315
11:10:11
+ /kaniko/executor --context /build/internal/gitlab-templates/context/ --dockerfile Dockerfile.sc-git-utilities '--destination=registry.scandit.com/internal/gitlab-templates/sc-git-utilities:baa4b9d66f12d6a5ebcc30c346703c4708cd59c189797a52ee2e47201c344985' '--destination=registry.scandit.com/internal/gitlab-templates/sc-git-utilities:3.12-0.0.7' '--destination=registry.scandit.com/internal/gitlab-templates/sc-git-utilities:3.12-0.0.7-CI54484704-20260506' '--cache=true' --cache-copy-layers --cache-dir /cache/kaniko --cache-repo registry.scandit.com/internal/gitlab-templates/cache '--cache-ttl=336h' --build-arg 'VERSION=0.0.7' --build-arg 'PYTHON_VERSION=3.12' --annotation 'org.opencontainers.image.ref.name=master' --annotation 'org.opencontainers.image.revision=19a8ce14e2e16477c0e8fe40e5fa2b92ca33ea70' --annotation 'org.opencontainers.image.url=https://gitlab.scandit.com/internal/gitlab-templates/-/jobs/54484704' --annotation 'io.gitlab.ci.pipeline_id=1581320' --annotation 'io.gitlab.ci.job_id=54484704' --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/sc-git-utilities:3.12-0.0.7' --annotation 'org.opencontainers.image.created=2026-05-06T11:10:11Z' --annotation 'org.opencontainers.image.vendor=Scandit' --annotation 'io.scandit.ci.hash=baa4b9d66f12d6a5ebcc30c346703c4708cd59c189797a52ee2e47201c344985' --preserve-context '--credential-helpers=gitlab' --secret 'id=netrc,src=/kaniko/.netrc' --secret 'id=ci_job_token,env=CI_JOB_TOKEN'
316
11:10:11
INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
317
11:10:12
INFO[0000] Retrieving image manifest registry.scandit.com/dockerfiles/pyenv:alpine-poetry-3.12
318
11:10:12
INFO[0000] Retrieving image registry.scandit.com/dockerfiles/pyenv:alpine-poetry-3.12 from registry registry.scandit.com
319
11:10:12
INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
320
11:10:12
INFO[0000] Retrieving image manifest registry.scandit.com/dockerfiles/pyenv:alpine-poetry-3.12
321
11:10:12
INFO[0000] Returning cached image manifest
322
11:10:12
INFO[0000] Retrieving image manifest registry.scandit.com/dockerfiles/pyenv:alpine-poetry-3.12
323
11:10:12
INFO[0000] Returning cached image manifest
324
11:10:12
INFO[0000] Retrieving image manifest registry.scandit.com/dockerfiles/pyenv:alpine-poetry-3.12
325
11:10:12
INFO[0000] Returning cached image manifest
326
11:10:12
INFO[0000] Built cross stage deps: map[]
327
11:10:12
INFO[0000] Skipping context snapshot as no-one requires it
328
11:10:12
INFO[0000] Retrieving image manifest registry.scandit.com/dockerfiles/pyenv:alpine-poetry-3.12
329
11:10:12
INFO[0000] Returning cached image manifest
330
11:10:12
INFO[0000] Retrieving image manifest registry.scandit.com/dockerfiles/pyenv:alpine-poetry-3.12
331
11:10:12
INFO[0000] Returning cached image manifest
332
11:10:12
INFO[0000] Building stage 'registry.scandit.com/dockerfiles/pyenv:alpine-poetry-3.12' [idx: '0', base-idx: '-1']
333
11:10:12
INFO[0000] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:b897c21709d92b9dc25669406c742f1e5da41df73836652832e5815b9e5d16ad...
334
11:10:12
INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
335
11:10:12
INFO[0000] No cached layer found for cmd RUN --mount=type=secret,id=netrc,uid=10001,gid=10001,target=/home/app/.netrc --mount=type=cache,uid=10001,gid=10001,target=/home/app/.cache/uv python -m uv pip install --index-url https://gitlab.scandit.com/api/v4/groups/1416/-/packages/pypi/simple sc-git-utilities==$VERSION && pyenv rehash
336
11:10:12
INFO[0000] Unpacking rootfs as cmd RUN --mount=type=secret,id=netrc,uid=10001,gid=10001,target=/home/app/.netrc --mount=type=cache,uid=10001,gid=10001,target=/home/app/.cache/uv python -m uv pip install --index-url https://gitlab.scandit.com/api/v4/groups/1416/-/packages/pypi/simple sc-git-utilities==$VERSION && pyenv rehash requires it.
337
11:10:21
INFO[0009] ARG VERSION
338
11:10:21
INFO[0009] Taking snapshot of files...
339
11:10:21
INFO[0009] RUN --mount=type=secret,id=netrc,uid=10001,gid=10001,target=/home/app/.netrc --mount=type=cache,uid=10001,gid=10001,target=/home/app/.cache/uv python -m uv pip install --index-url https://gitlab.scandit.com/api/v4/groups/1416/-/packages/pypi/simple sc-git-utilities==$VERSION && pyenv rehash
340
11:10:21
INFO[0009] Initializing snapshotter ...
341
11:10:21
INFO[0009] Taking snapshot of full filesystem...
342
11:10:36
INFO[0024] Cmd: /bin/sh
343
11:10:36
INFO[0024] Args: [-c python -m uv pip install --index-url https://gitlab.scandit.com/api/v4/groups/1416/-/packages/pypi/simple sc-git-utilities==$VERSION && pyenv rehash]
344
11:10:36
INFO[0024] Util.Lookup returned: &{Uid:10001 Gid:10001 Username:app Name: HomeDir:/home/app}
345
11:10:36
INFO[0024] Performing slow lookup of group ids for app
346
11:10:36
INFO[0024] Running: [/kaniko/tini -s -- /bin/sh -c python -m uv pip install --index-url https://gitlab.scandit.com/api/v4/groups/1416/-/packages/pypi/simple sc-git-utilities==$VERSION && pyenv rehash]
347
11:10:36
Using Python 3.12.12 environment at: .pyenv/versions/3.12.12
348
11:10:37
Resolved 21 packages in 968ms
349
11:10:37
Downloading pygments (1.2MiB)
350
11:10:37
Downloaded pygments
351
11:10:37
Prepared 21 packages in 154ms
352
11:10:38
Installed 21 packages in 536ms
353
11:10:38
+ annotated-doc==0.0.4
354
11:10:38
+ certifi==2026.4.22
355
11:10:38
+ charset-normalizer==3.4.7
356
11:10:38
+ click==8.3.3
357
11:10:38
+ gitdb==4.0.12
358
11:10:38
+ gitpython==3.1.50
359
11:10:38
+ idna==3.13
360
11:10:38
+ markdown-it-py==4.0.0
361
11:10:38
+ mdurl==0.1.2
362
11:10:38
+ pygments==2.20.0
363
11:10:38
+ python-gitlab==8.3.0
364
11:10:38
+ regex==2026.4.4
365
11:10:38
+ requests==2.33.1
366
11:10:38
+ requests-toolbelt==1.0.0
367
11:10:38
+ rich==15.0.0
368
11:10:38
+ sc-git-utilities==0.0.7
369
11:10:38
+ sh==2.2.2
370
11:10:38
+ shellingham==1.5.4
371
11:10:38
+ smmap==5.0.3
372
11:10:38
+ typer==0.25.1
373
11:10:38
+ urllib3==2.6.3
374
11:10:38
INFO[0026] Taking snapshot of full filesystem...
375
11:10:39
INFO[0027] Pushing layer registry.scandit.com/internal/gitlab-templates/cache:b897c21709d92b9dc25669406c742f1e5da41df73836652832e5815b9e5d16ad to cache now
376
11:10:39
INFO[0027] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
377
11:10:39
INFO[0027] Pushing image to registry.scandit.com/internal/gitlab-templates/cache:b897c21709d92b9dc25669406c742f1e5da41df73836652832e5815b9e5d16ad
378
11:10:40
INFO[0028] Pushed registry.scandit.com/internal/gitlab-templates/cache@sha256:a4a8892e89a1307d1a3c9a56c483192472541be23d47c5541b27120b04bffd90
379
11:10:40
INFO[0028] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
380
11:10:40
INFO[0028] Pushing image to registry.scandit.com/internal/gitlab-templates/sc-git-utilities:baa4b9d66f12d6a5ebcc30c346703c4708cd59c189797a52ee2e47201c344985
381
11:10:42
INFO[0030] Pushed registry.scandit.com/internal/gitlab-templates/sc-git-utilities@sha256:c8dfd6fc32a29ee50afce33eaea91e2c461c6311f0752d1227e842d7943125ca
382
11:10:42
INFO[0030] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
383
11:10:42
INFO[0030] Pushing image to registry.scandit.com/internal/gitlab-templates/sc-git-utilities:3.12-0.0.7
384
11:10:43
INFO[0031] Pushed registry.scandit.com/internal/gitlab-templates/sc-git-utilities@sha256:c8dfd6fc32a29ee50afce33eaea91e2c461c6311f0752d1227e842d7943125ca
385
11:10:43
INFO[0031] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
386
11:10:43
INFO[0031] Pushing image to registry.scandit.com/internal/gitlab-templates/sc-git-utilities:3.12-0.0.7-CI54484704-20260506
387
11:10:43
INFO[0031] Pushed registry.scandit.com/internal/gitlab-templates/sc-git-utilities@sha256:c8dfd6fc32a29ee50afce33eaea91e2c461c6311f0752d1227e842d7943125ca
388
11:10:43
+ cleanup
389
11:10:43
+ rv=0
390
11:10:43
+ '[' 0 -ne 0 ]
391
11:10:43
+ echo
392
11:10:43
393
11:10:43
+ echo 'Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54484704'
394
11:10:43
Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54484704
395
11:10:43
+ echo
396
11:10:43
397
11:10:43
+ echo
398
11:10:43
399
11:10:43
+ 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-26-238.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-3-jw292ms7&var-resolution=15&from=1778065811000&to=1778065843000'
400
11:10:43
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-26-238.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-3-jw292ms7&var-resolution=15&from=1778065811000&to=1778065843000
401
11:10:43
+ 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-26-238.eu-central-1.compute.internal&var-resolution=15s&from=1778065811000&to=1778065843000'
402
11:10:43
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-26-238.eu-central-1.compute.internal&var-resolution=15s&from=1778065811000&to=1778065843000
403
11:10:43
+ echo 'Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=nVsAo7UVk&var-filters=log_group|=|gitlab-runner&var-filters=source|=|k8s-ci.aws.scandit.io&var-filters=namespace|=|gitlab-runner&var-filters=CI_PROJECT_ID|=|621&var-filters=CI_PIPELINE_ID|=|1581320&var-filters=CI_JOB_ID|=|54484704&sortOrder=Ascending&from=1778065811000&to=1778065843000'
404
11:10:43
Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=nVsAo7UVk&var-filters=log_group|=|gitlab-runner&var-filters=source|=|k8s-ci.aws.scandit.io&var-filters=namespace|=|gitlab-runner&var-filters=CI_PROJECT_ID|=|621&var-filters=CI_PIPELINE_ID|=|1581320&var-filters=CI_JOB_ID|=|54484704&sortOrder=Ascending&from=1778065811000&to=1778065843000
405
11:10:43
+ date -d '-7 days' '+%Y-%m-%d'
406
11:10:43
date: invalid date '-7 days'
407
11:10:43
+ date -d '+7 days' '+%Y-%m-%d'
408
11:10:43
date: invalid date '+7 days'
409
11:10:43
+ echo 'Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build-sc-git-utilities-image&project=internal/gitlab-templates'
410
11:10:43
Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build-sc-git-utilities-image&project=internal/gitlab-templates
411
11:10:43
+ echo
412
11:10:43
413
11:10:43
+ exit 0
414
11:10:43
415
11:10:43
section_end:1778065843:step_script
416
11:10:43
+section_start:1778065843:upload_artifacts_on_success
417
11:10:43
+Uploading artifacts for successful job
418
11:10:44
Uploading artifacts...
419
11:10:44
docker_image_build.env: found 1 matching artifact files and directories
420
11:10:44
Uploading artifacts as "dotenv" to coordinator... 201 Created correlation_id=01KQYFQA0TS8TACZYM42EPPWG8 id=54484704 responseStatus=201 Created token=64_n1yiKW
421
11:10:44
422
11:10:44
section_end:1778065844:upload_artifacts_on_success
423
11:10:44
+section_start:1778065844:cleanup_file_variables
424
11:10:44
+Cleaning up project directory and file based variables
425
11:10:45
426
11:10:45
section_end:1778065845:cleanup_file_variables
427
11:10:45
+
428
11:10:45
Job succeeded
429