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