build ○ success

Duration: 49s
Queued: 1s
📁 Stage: build
🖥 Runner: linux-aws-1
Average Duration
27s
This job: 49s
Failure Rate
16.8%
last 30 days

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

439 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:37 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-4-w1kcfo6s to ip-10-0-22-143.eu-central-1.compute.internal
23 11:09:38 Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" already present on machine
24 11:09:38 Normal Created Created container: init-permissions
25 11:09:38 Normal Started Started container init-permissions
26 11:09:39 Normal Pulling Pulling image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/kaniko@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac"
27 11:09:40 Normal Pulled Successfully pulled image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/kaniko@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac" in 1.419s (1.419s including waiting). Image size: 49989654 bytes.
28 11:09:40 Normal Created Created container: build
29 11:09:40 Normal Started Started container build
30 11:09:40 Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" already present on machine
31 11:09:40 Normal Created Created container: helper
32 11:09:41 Normal Started Started container helper
33 11:09:43 Running on runner-wrxjpbsjx-project-621-concurrent-4-w1kcfo6s via gitlab-runner-linux-1-746bdd58fd-tczzm...
34 11:09:43
35 11:09:43 section_end:1778065783:prepare_script
36 11:09:43 +section_start:1778065783:get_sources
37 11:09:43 +Getting source from Git repository
38 11:09:44 Gitaly correlation ID: 01KQYFN7CTDV70TE0HYSBGWQ7T
39 11:09:44 Fetching changes with git depth set to 1...
40 11:09:44 Initialized empty Git repository in /build/internal/gitlab-templates/.git/
41 11:09:44 Created fresh repository.
42 11:09:44 Checking out 19a8ce14 as detached HEAD (ref is master)...
43 11:09:44
44 11:09:44 Skipping Git submodules setup
45 11:09:44
46 11:09:44 section_end:1778065784:get_sources
47 11:09:44 +section_start:1778065784:step_script
48 11:09:44 +Executing "step_script" stage of the job script
49 11:09:45 section_start:1778065784:section_pre_build_script_0[hide_duration=true,collapsed=true] $ function cleanup {
50 11:09:45 rv=$?
51 11:09:45 if [ $rv -ne 0 ]; then
52 11:09:45 echo ""
53 11:09:45 echo " Failure Cause Analysis might help, please open this link:"
54 11:09:45 echo " https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
55 11:09:45 echo ""
56 11:09:45 fi
57 11:09:45 echo ""
58 11:09:45 echo "Scout Analysis: https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
59 11:09:45 echo ""
60 11:09:45 echo ""
61 11:09:45 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:09:45 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:09:45 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:09:45 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:09:45 echo ""
66 11:09:45 exit $rv
67 11:09:45 }
68 11:09:45 trap cleanup EXIT
69 11:09:45 echo "INFO: This is the CI job pre_build_script"
70 11:09:45 echo "INFO: It's defined in the backend/infra/aws repo."
71 11:09:45 echo "INFO: These additional Scandit variables are available to you:"
72 11:09:45 echo " SC_K8S_NODE_NAME: $SC_K8S_NODE_NAME"
73 11:09:45 echo " SC_K8S_IMAGE_ID: $SC_K8S_IMAGE_ID"
74 11:09:45 echo " SC_K8S_KYVERNO_PATCHES: |"
75 11:09:45 echo "$SC_K8S_KYVERNO_PATCHES" | sed 's/^/ /'
76 11:09:45 echo "cpu (r/l): ${SC_K8S_REQUESTS_CPU}/${SC_K8S_LIMITS_CPU}"
77 11:09:45 if command -v numfmt >/dev/null 2>&1; then
78 11:09:45 echo "memory (r/l): $(numfmt --to=iec --suffix=B $SC_K8S_REQUESTS_MEMORY)/$(numfmt --to=iec --suffix=B $SC_K8S_LIMITS_MEMORY)"
79 11:09:45 else
80 11:09:45 echo "memory (r/l): ${SC_K8S_REQUESTS_MEMORY}/${SC_K8S_LIMITS_MEMORY}"
81 11:09:45 fi
82 11:09:45 __start_time=${EPOCHSECONDS}
83 11:09:45 echo ""
84 11:09:45 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:09:45 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:09:45 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:09:45 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:09:45 echo ""
89 11:09:45 echo "Setting up credentials for Gitlab Python registries"
90 11:09:45 mkdir -p ~
91 11:09:45 echo "machine gitlab.scandit.com" > ~/.netrc
92 11:09:45 echo "login gitlab-ci-token" >> ~/.netrc
93 11:09:45 echo "password ${CI_JOB_TOKEN}" >> ~/.netrc
94 11:09:45 chmod 600 ~/.netrc
95 11:09:45 if command -v git &> /dev/null && [ "$(id -u)" -ne 0 ]; then
96 11:09:45 git config --global --add safe.directory $CI_PROJECT_DIR
97 11:09:45 fi
98 11:09:45 # Sonarqube server is running on the same cluster. Use internal address
99 11:09:45 export SONAR_HOST_URL="http://sonarqube.sonarqube.svc.cluster.local:9000"
100 11:09:45 section_end:1778065784:section_pre_build_script_0
101 11:09:45 INFO: This is the CI job pre_build_script
102 11:09:45 INFO: It's defined in the backend/infra/aws repo.
103 11:09:45 INFO: These additional Scandit variables are available to you:
104 11:09:45 SC_K8S_NODE_NAME: ip-10-0-22-143.eu-central-1.compute.internal
105 11:09:45 SC_K8S_IMAGE_ID:
106 11:09:45 SC_K8S_KYVERNO_PATCHES: |
107 11:09:45
108 11:09:45 cpu (r/l): 2/4
109 11:09:45 memory (r/l): 4000000000/17179869184
110 11:09:45
111 11:09:45 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-22-143.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-4-w1kcfo6s&var-resolution=15&from=1778065784000&to=now
112 11:09:45 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-22-143.eu-central-1.compute.internal&var-resolution=15s&from=1778065784000&to=now
113 11:09:45 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|=|1581321&var-filters=CI_JOB_ID|=|54484721&sortOrder=Ascending&from=1778065784000&to=now
114 11:09:45 date: invalid date '-7 days'
115 11:09:45 date: invalid date '+7 days'
116 11:09:45 Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build&project=internal/gitlab-templates
117 11:09:45
118 11:09:45 Setting up credentials for Gitlab Python registries
119 11:09:45 $ echo $DOCKER_CONFIG_JSON > /kaniko/.docker/config.json
120 11:09:45 $ mv /root/.netrc /kaniko/.netrc
121 11:09:45 section_start:1778065784:section_script_step_2[hide_duration=true,collapsed=true] $ function copy_files() {
122 11:09:45 local src="$1"
123 11:09:45 local trg="$2"
124 11:09:45 for f in $src; do
125 11:09:45 t="$trg/`dirname $f`"
126 11:09:45 mkdir -p $t || true
127 11:09:45 echo "Copy $f"
128 11:09:45 cp -pr $f $trg/$f
129 11:09:45 done
130 11:09:45 }
131 11:09:45 function recursive_hash() {
132 11:09:45 local dir="$1"
133 11:09:45 find "$dir" -exec stat -c '%F|%a|%u:%g|%n' {} + -type f -exec sha256sum {} + | sort | sha256sum | cut -d ' ' -f1
134 11:09:45 }
135 11:09:45 function remote_docker_digest() {
136 11:09:45 local images="$1"
137 11:09:45 echo $images | xargs -n 1 crane digest
138 11:09:45 }
139 11:09:45 function remote_image_exists() {
140 11:09:45 local image="$1"
141 11:09:45 crane manifest $image > /dev/null 2>&1
142 11:09:45 }
143 11:09:45 function remote_images_are_identical() {
144 11:09:45 local imageA="$1"
145 11:09:45 local imageB="$2"
146 11:09:45 if [[ $(remote_docker_digest "$imageA") == $(remote_docker_digest "$imageB") ]]; then
147 11:09:45 return 0
148 11:09:45 else
149 11:09:45 return 1
150 11:09:45 fi
151 11:09:45 }
152 11:09:45 function copy_image() {
153 11:09:45 local image="$1"
154 11:09:45 local remotes="$2"
155 11:09:45 local backup_ext="$3"
156 11:09:45 echo "$image"
157 11:09:45 local source_digest=$(remote_docker_digest $image)
158 11:09:45 local target_digest
159 11:09:45 for registry in $remotes; do
160 11:09:45 if target_digest=$(remote_docker_digest $registry); then
161 11:09:45 if [ "$target_digest" != "$source_digest" ]; then
162 11:09:45 echo "image outdated, overwriting with newest version"
163 11:09:45 crane copy $image $registry
164 11:09:45 crane copy $image ${registry}${backup_ext}
165 11:09:45 fi
166 11:09:45 else
167 11:09:45 echo "image does not exist, writing newest version"
168 11:09:45 crane copy $image $registry
169 11:09:45 crane copy $image ${registry}${backup_ext}
170 11:09:45 fi
171 11:09:45 done
172 11:09:45 }
173 11:09:45 section_end:1778065784:section_script_step_2
174 11:09:45 section_start:1778065784:section_script_step_3[hide_duration=true,collapsed=true] $ if [ "$CONTAINER_SUBDIR" != "" ]; then
175 11:09:45 echo "Entering subpath $CONTAINER_SUBDIR"
176 11:09:45 cd $CONTAINER_SUBDIR
177 11:09:45 fi
178 11:09:45 section_end:1778065784:section_script_step_3
179 11:09:45 Entering subpath sc-uv-example
180 11:09:45 $ copy_files "$CONTAINER_IMPLICIT_REQUIREMENTS $CONTAINER_REQUIREMENTS" "$CONTAINER_CONTEXT_PATH"
181 11:09:45 Copy /build/internal/gitlab-templates/Dockerfile.uv
182 11:09:45 Copy uv.lock
183 11:09:45 Copy pyproject.toml
184 11:09:45 $ echo "$CONTAINER_BUILD_ENVIRONMENT" > $CONTAINER_CONTEXT_PATH/.docker-build-env
185 11:09:45 $ docker_checksum=$(recursive_hash $CONTAINER_CONTEXT_PATH)
186 11:09:45 section_start:1778065784:section_script_step_7[hide_duration=true,collapsed=true] $ if [ "$CONTAINER_IMAGE_NAME" == "" ]; then
187 11:09:45 final_image_name=${CONTAINER_IMAGE_URL}
188 11:09:45 else
189 11:09:45 final_image_name=${CONTAINER_IMAGE_URL}/${CONTAINER_IMAGE_NAME}
190 11:09:45 fi
191 11:09:45 section_end:1778065784:section_script_step_7
192 11:09:45 $ final_image_url=${final_image_name}:${docker_checksum}
193 11:09:45 section_start:1778065784:section_script_step_9[hide_duration=true,collapsed=true] $ if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
194 11:09:45 echo $CONTAINER_IMAGE_VARIABLE=${final_image_url}-P${CI_PROJECT_ID}-${CI_PIPELINE_ID} > $CI_PROJECT_DIR/docker_image_build.env
195 11:09:45 else
196 11:09:45 echo $CONTAINER_IMAGE_VARIABLE=$final_image_url > $CI_PROJECT_DIR/docker_image_build.env
197 11:09:45 fi
198 11:09:45 section_end:1778065785:section_script_step_9
199 11:09:45 $ echo ${CONTAINER_IMAGE_VARIABLE}_HASH=$docker_checksum >> $CI_PROJECT_DIR/docker_image_build.env
200 11:09:45 section_start:1778065785:section_script_step_11[hide_duration=true,collapsed=true] $ if [ "${FORCE_BUILD}" != "true" ] || command -v crane &> /dev/null; then
201 11:09:45 echo $REGISTRY_PASSWORD | crane auth login $REGISTRY -u $REGISTRY_USER --password-stdin
202 11:09:45 fi
203 11:09:45 section_end:1778065785:section_script_step_11
204 11:09:45
205 11:09:45 WARNING! Your credentials are stored unencrypted in '/kaniko/.docker/config.json'.
206 11:09:45 Configure a credential helper to remove this warning. See
207 11:09:45 https://docs.docker.com/go/credential-store/
208 11:09:45
209 11:09:45 2026/05/06 11:09:45 logged in via /kaniko/.docker/config.json
210 11:09:45 section_start:1778065785:section_script_step_12[hide_duration=true,collapsed=true] $ if [ "${FORCE_BUILD}" != "true" ] && remote_image_exists "$final_image_url"; then
211 11:09:45 echo "Image already exists, skip the build."
212 11:09:45 echo "$final_image_url"
213 11:09:45 if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
214 11:09:45 _EXT=""
215 11:09:45 _BACKUP_EXT="-CI${CI_JOB_ID}-$(date '+%Y%m%d')"
216 11:09:45 elif [[ -n "$CI_MERGE_REQUEST_ID" ]]; then
217 11:09:45 _EXT="-MR${CI_MERGE_REQUEST_IID}"
218 11:09:45 _BACKUP_EXT=""
219 11:09:45 elif [[ "$CI_COMMIT_REF_PROTECTED" == "true" ]]; then
220 11:09:45 _EXT="-${CI_COMMIT_REF_SLUG}"
221 11:09:45 _BACKUP_EXT="-CI${CI_JOB_ID}-$(date '+%Y%m%d')"
222 11:09:45 fi
223 11:09:45 for _TAG in $CONTAINER_IMAGE_TAG; do
224 11:09:45 echo "Copying ${final_image_url} to ${final_image_name}:${_TAG}${_EXT}"
225 11:09:45 copy_image "${final_image_url}" "${final_image_name}:${_TAG}${_EXT}" "${_BACKUP_EXT}"
226 11:09:45 done
227 11:09:45 if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
228 11:09:45 _EXT="-P${CI_PROJECT_ID}-${CI_PIPELINE_ID}"
229 11:09:45 echo "Copying ${final_image_url} to ${final_image_url}${_EXT}"
230 11:09:45 copy_image "${final_image_url}" "${final_image_url}${_EXT}"
231 11:09:45 for _TAG in $CONTAINER_IMAGE_TAG; do
232 11:09:45 echo "Copying ${final_image_url} to ${final_image_name}:${_TAG}${_EXT}"
233 11:09:45 copy_image "${final_image_url}" "${final_image_name}:${_TAG}${_EXT}"
234 11:09:45 done
235 11:09:45 fi
236 11:09:45 exit 0
237 11:09:45 fi
238 11:09:45 section_end:1778065785:section_script_step_12
239 11:09:55 $ DESTINATIONS="--destination=$final_image_url"
240 11:09:55 section_start:1778065795:section_script_step_14[hide_duration=true,collapsed=true] $ if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
241 11:09:55 _EXT=""
242 11:09:55 TIMESTAMP_TAGS=$CONTAINER_IMAGE_TAG
243 11:09:55 elif [[ -n "$CI_MERGE_REQUEST_ID" ]]; then
244 11:09:55 _EXT="-MR${CI_MERGE_REQUEST_IID}"
245 11:09:55 TIMESTAMP_TAGS=""
246 11:09:55 elif [[ "$CI_COMMIT_REF_PROTECTED" == "true" ]]; then
247 11:09:55 _EXT="-${CI_COMMIT_REF_SLUG}"
248 11:09:55 TIMESTAMP_TAGS=$CONTAINER_IMAGE_TAG
249 11:09:55 fi
250 11:09:55 section_end:1778065795:section_script_step_14
251 11:09:55 section_start:1778065795:section_script_step_15[hide_duration=true,collapsed=true] $ for _TAG in $CONTAINER_IMAGE_TAG; do
252 11:09:55 DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}"
253 11:09:55 done
254 11:09:55 section_end:1778065795:section_script_step_15
255 11:09:55 section_start:1778065795:section_script_step_16[hide_duration=true,collapsed=true] $ if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
256 11:09:55 _EXT="-P${CI_PROJECT_ID}-${CI_PIPELINE_ID}"
257 11:09:55 DESTINATIONS="${DESTINATIONS} --destination=${final_image_url}${_EXT}"
258 11:09:55 for _TAG in $CONTAINER_IMAGE_TAG; do
259 11:09:55 DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}"
260 11:09:55 done
261 11:09:55 fi
262 11:09:55 section_end:1778065795:section_script_step_16
263 11:09:55 section_start:1778065795:section_script_step_17[hide_duration=true,collapsed=true] $ DATE=$(date '+%Y%m%d')
264 11:09:55 for _TAG in $TIMESTAMP_TAGS; do
265 11:09:55 DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}-CI${CI_JOB_ID}-${DATE}"
266 11:09:55 done
267 11:09:55 section_end:1778065795:section_script_step_17
268 11:09:55 section_start:1778065795:section_script_step_18[hide_duration=true,collapsed=true] $ if [ -n "${CONTAINER_BUILD_ARGS}" ]; then
269 11:09:55 for _BUILD_ARG in $CONTAINER_BUILD_ARGS; do
270 11:09:55 FINAL_BUILD_ARGS="--build-arg $_BUILD_ARG $FINAL_BUILD_ARGS"
271 11:09:55 done
272 11:09:55 fi
273 11:09:55 section_end:1778065795:section_script_step_18
274 11:09:55 section_start:1778065795:section_script_step_19[hide_duration=true,collapsed=true] $ for _PATH in $CONTAINER_IGNORE_PATHS; do
275 11:09:55 FINAL_IGNORE_PATHS="--ignore-path=$_PATH $FINAL_IGNORE_PATHS"
276 11:09:55 done
277 11:09:55 section_end:1778065795:section_script_step_19
278 11:09:55 section_start:1778065795:section_script_step_20[hide_duration=true,collapsed=true] $ if [ -n "${CONTAINER_PLATFORM}" ]; then
279 11:09:55 KANIKO_PLATFORM="--custom-platform=${CONTAINER_PLATFORM}"
280 11:09:55 fi
281 11:09:55 section_end:1778065795:section_script_step_20
282 11:09:55 $ ANNOTATIONS=""
283 11:09:55 section_start:1778065795:section_script_step_22[hide_duration=true,collapsed=true] $ if [[ -n "$CI_COMMIT_REF_NAME" ]]; then
284 11:09:55 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.ref.name=${CI_COMMIT_REF_NAME}"
285 11:09:55 fi
286 11:09:55 section_end:1778065795:section_script_step_22
287 11:09:55 section_start:1778065795:section_script_step_23[hide_duration=true,collapsed=true] $ if [[ -n "$CI_COMMIT_SHA" ]]; then
288 11:09:55 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.revision=${CI_COMMIT_SHA}"
289 11:09:55 fi
290 11:09:55 section_end:1778065795:section_script_step_23
291 11:09:55 section_start:1778065795:section_script_step_24[hide_duration=true,collapsed=true] $ if [[ -n "$CI_JOB_URL" ]]; then
292 11:09:55 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.url=${CI_JOB_URL}"
293 11:09:55 fi
294 11:09:55 section_end:1778065795:section_script_step_24
295 11:09:55 section_start:1778065795:section_script_step_25[hide_duration=true,collapsed=true] $ if [[ -n "$CI_PIPELINE_ID" ]]; then
296 11:09:55 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.pipeline_id=${CI_PIPELINE_ID}"
297 11:09:55 fi
298 11:09:55 section_end:1778065795:section_script_step_25
299 11:09:55 section_start:1778065795:section_script_step_26[hide_duration=true,collapsed=true] $ if [[ -n "$CI_JOB_ID" ]]; then
300 11:09:55 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.job_id=${CI_JOB_ID}"
301 11:09:55 fi
302 11:09:55 section_end:1778065795:section_script_step_26
303 11:09:55 section_start:1778065795:section_script_step_27[hide_duration=true,collapsed=true] $ if [[ -n "$CI_JOB_IMAGE" ]]; then
304 11:09:55 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.job_image=${CI_JOB_IMAGE}"
305 11:09:55 fi
306 11:09:55 section_end:1778065795:section_script_step_27
307 11:09:55 $ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.title=${final_image_name}:$(echo $CONTAINER_IMAGE_TAG | cut -d' ' -f1)"
308 11:09:55 $ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.created=$(date -u +%Y-%m-%dT%H:%M:%SZ)"
309 11:09:55 $ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.vendor=Scandit"
310 11:09:55 $ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.scandit.ci.hash=${docker_checksum}"
311 11:09:55 section_start:1778065795:section_script_step_32[hide_duration=true,collapsed=true] $ if [ -n "${CONTAINER_TARGET_STAGE}" ]; then
312 11:09:55 KANIKO_TARGET="--target $CONTAINER_TARGET_STAGE"
313 11:09:55 fi
314 11:09:55 section_end:1778065795:section_script_step_32
315 11:09:55 $ set -x
316 11:09:55 + 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'
317 11:09:55 $ /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
318 11:09:55 + /kaniko/executor --context /build/internal/gitlab-templates/context/ --dockerfile /build/internal/gitlab-templates/Dockerfile.uv '--destination=registry.scandit.com/internal/gitlab-templates/sc-uv-example-dev:a0627644f5b19a5299950b9d06386a69ed2ca73d2843193725069ae656cd6167' '--destination=registry.scandit.com/internal/gitlab-templates/sc-uv-example-dev:latest' '--destination=registry.scandit.com/internal/gitlab-templates/sc-uv-example-dev:latest-CI54484721-20260506' '--cache=true' --cache-copy-layers --cache-dir /cache/kaniko --cache-repo registry.scandit.com/internal/gitlab-templates/cache '--cache-ttl=336h' --annotation 'org.opencontainers.image.ref.name=master' --annotation 'org.opencontainers.image.revision=19a8ce14e2e16477c0e8fe40e5fa2b92ca33ea70' --annotation 'org.opencontainers.image.url=https://gitlab.scandit.com/internal/gitlab-templates/-/jobs/54484721' --annotation 'io.gitlab.ci.pipeline_id=1581321' --annotation 'io.gitlab.ci.job_id=54484721' --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-uv-example-dev:latest' --annotation 'org.opencontainers.image.created=2026-05-06T11:09:55Z' --annotation 'org.opencontainers.image.vendor=Scandit' --annotation 'io.scandit.ci.hash=a0627644f5b19a5299950b9d06386a69ed2ca73d2843193725069ae656cd6167' --preserve-context '--credential-helpers=gitlab' --secret 'id=netrc,src=/kaniko/.netrc' --secret 'id=ci_job_token,env=CI_JOB_TOKEN'
319 11:09:55 INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
320 11:09:55 INFO[0000] Retrieving image manifest registry.scandit.com/dockerfiles/uv:ubuntu-3.12
321 11:09:55 INFO[0000] Retrieving image registry.scandit.com/dockerfiles/uv:ubuntu-3.12 from registry registry.scandit.com
322 11:09:55 INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
323 11:09:55 INFO[0000] Retrieving image manifest registry.scandit.com/dockerfiles/uv:ubuntu-3.12
324 11:09:55 INFO[0000] Returning cached image manifest
325 11:09:55 INFO[0000] Retrieving image manifest registry.scandit.com/dockerfiles/uv:ubuntu-3.12
326 11:09:55 INFO[0000] Returning cached image manifest
327 11:09:55 INFO[0000] Retrieving image manifest registry.scandit.com/dockerfiles/uv:ubuntu-3.12
328 11:09:55 INFO[0000] Returning cached image manifest
329 11:09:55 INFO[0000] Built cross stage deps: map[]
330 11:09:55 INFO[0000] Skipping context snapshot as no-one requires it
331 11:09:55 INFO[0000] Retrieving image manifest registry.scandit.com/dockerfiles/uv:ubuntu-3.12
332 11:09:55 INFO[0000] Returning cached image manifest
333 11:09:55 INFO[0000] Retrieving image manifest registry.scandit.com/dockerfiles/uv:ubuntu-3.12
334 11:09:55 INFO[0000] Returning cached image manifest
335 11:09:55 INFO[0000] Building stage 'registry.scandit.com/dockerfiles/uv:ubuntu-3.12' [idx: '0', base-idx: '-1']
336 11:09:55 INFO[0000] Checking for cached layer registry.scandit.com/internal/gitlab-templates/cache:0442441a2f692bdaa3f05abe48b1769516e28e3634749049680ab70af96751cc...
337 11:09:55 INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
338 11:09:56 INFO[0000] No cached layer found for cmd COPY --chown=app:app uv.lock pyproject.toml ./
339 11:09:56 INFO[0000] Unpacking rootfs as cmd COPY --chown=app:app uv.lock pyproject.toml ./ requires it.
340 11:10:00 INFO[0005] ARG UV_SYNC_ARGS="--all-extras --no-install-project --no-install-workspace"
341 11:10:00 INFO[0005] Taking snapshot of files...
342 11:10:00 INFO[0005] COPY --chown=app:app uv.lock pyproject.toml ./
343 11:10:00 INFO[0005] Taking snapshot of files...
344 11:10:00 INFO[0005] Pushing layer registry.scandit.com/internal/gitlab-templates/cache:0442441a2f692bdaa3f05abe48b1769516e28e3634749049680ab70af96751cc to cache now
345 11:10:00 INFO[0005] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
346 11:10:00 INFO[0005] Pushing image to registry.scandit.com/internal/gitlab-templates/cache:0442441a2f692bdaa3f05abe48b1769516e28e3634749049680ab70af96751cc
347 11:10:00 INFO[0005] 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 uv sync --frozen --no-cache ${UV_SYNC_ARGS}
348 11:10:00 INFO[0005] Initializing snapshotter ...
349 11:10:00 INFO[0005] Taking snapshot of full filesystem...
350 11:10:01 INFO[0005] Pushed registry.scandit.com/internal/gitlab-templates/cache@sha256:0e621f2cc14f2c8bdaca200f7463ae5f0d13934c85033efc8b25822f37eb4944
351 11:10:17 INFO[0022] Cmd: /bin/sh
352 11:10:17 INFO[0022] Args: [-c uv sync --frozen --no-cache ${UV_SYNC_ARGS}]
353 11:10:17 INFO[0022] Util.Lookup returned: &{Uid:10001 Gid:10001 Username:app Name: HomeDir:/home/app}
354 11:10:17 INFO[0022] Performing slow lookup of group ids for app
355 11:10:17 INFO[0022] Running: [/kaniko/tini -s -- /bin/sh -c uv sync --frozen --no-cache ${UV_SYNC_ARGS}]
356 11:10:17 Using CPython 3.12.12
357 11:10:17 Creating virtual environment at: .venv
358 11:10:18 Downloading pygments (1.2MiB)
359 11:10:18 Downloaded pygments
360 11:10:18 Prepared 22 packages in 176ms
361 11:10:18 Installed 22 packages in 401ms
362 11:10:18 + annotated-doc==0.0.4
363 11:10:18 + attrs==26.1.0
364 11:10:18 + certifi==2026.2.25
365 11:10:18 + charset-normalizer==3.4.6
366 11:10:18 + click==8.3.1
367 11:10:18 + idna==3.11
368 11:10:18 + jsonmerge==1.9.2
369 11:10:18 + jsonschema==4.26.0
370 11:10:18 + jsonschema-specifications==2025.9.1
371 11:10:18 + markdown-it-py==4.0.0
372 11:10:18 + mdurl==0.1.2
373 11:10:18 + pygments==2.20.0
374 11:10:18 + pylilibet==0.12.5
375 11:10:18 + referencing==0.37.0
376 11:10:18 + requests==2.33.0
377 11:10:18 + rich==14.3.3
378 11:10:18 + rpds-py==0.30.0
379 11:10:18 + shellingham==1.5.4
380 11:10:18 + tenacity==9.1.4
381 11:10:18 + typer==0.24.1
382 11:10:18 + typing-extensions==4.15.0
383 11:10:18 + urllib3==2.6.3
384 11:10:18 INFO[0023] Taking snapshot of full filesystem...
385 11:10:19 INFO[0024] Pushing layer registry.scandit.com/internal/gitlab-templates/cache:ee62762f3e526ebd9e650a4f261447f0160d7675c01538e1cd995c9a491b139b to cache now
386 11:10:19 INFO[0024] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
387 11:10:19 INFO[0024] Pushing image to registry.scandit.com/internal/gitlab-templates/cache:ee62762f3e526ebd9e650a4f261447f0160d7675c01538e1cd995c9a491b139b
388 11:10:20 INFO[0025] Pushed registry.scandit.com/internal/gitlab-templates/cache@sha256:8eeec972ec1659f97d42e66da2531d66697c2f68faacf04932bd137b07a158ca
389 11:10:20 INFO[0025] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
390 11:10:20 INFO[0025] Pushing image to registry.scandit.com/internal/gitlab-templates/sc-uv-example-dev:a0627644f5b19a5299950b9d06386a69ed2ca73d2843193725069ae656cd6167
391 11:10:22 INFO[0027] Pushed registry.scandit.com/internal/gitlab-templates/sc-uv-example-dev@sha256:e660fe300b157b91562d27feca078814dfc97dd76d26efbb31d4c7c35a0d38ed
392 11:10:22 INFO[0027] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
393 11:10:22 INFO[0027] Pushing image to registry.scandit.com/internal/gitlab-templates/sc-uv-example-dev:latest
394 11:10:23 INFO[0027] Pushed registry.scandit.com/internal/gitlab-templates/sc-uv-example-dev@sha256:e660fe300b157b91562d27feca078814dfc97dd76d26efbb31d4c7c35a0d38ed
395 11:10:23 INFO[0027] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
396 11:10:23 INFO[0027] Pushing image to registry.scandit.com/internal/gitlab-templates/sc-uv-example-dev:latest-CI54484721-20260506
397 11:10:23 INFO[0028] Pushed registry.scandit.com/internal/gitlab-templates/sc-uv-example-dev@sha256:e660fe300b157b91562d27feca078814dfc97dd76d26efbb31d4c7c35a0d38ed
398 11:10:23 + cleanup
399 11:10:23 + rv=0
400 11:10:23 + '[' 0 -ne 0 ]
401 11:10:23 + echo
402 11:10:23
403 11:10:23 + echo 'Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54484721'
404 11:10:23 Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54484721
405 11:10:23 + echo
406 11:10:23
407 11:10:23 + echo
408 11:10:23
409 11:10:23 + echo 'Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-host=ip-10-0-22-143.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-4-w1kcfo6s&var-resolution=15&from=1778065784000&to=1778065823000'
410 11:10: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-22-143.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-4-w1kcfo6s&var-resolution=15&from=1778065784000&to=1778065823000
411 11:10:23 + echo 'Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=lu1rmx27z&var-node=ip-10-0-22-143.eu-central-1.compute.internal&var-resolution=15s&from=1778065784000&to=1778065823000'
412 11:10: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-22-143.eu-central-1.compute.internal&var-resolution=15s&from=1778065784000&to=1778065823000
413 11:10:23 + echo 'Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=nVsAo7UVk&var-filters=log_group|=|gitlab-runner&var-filters=source|=|k8s-ci.aws.scandit.io&var-filters=namespace|=|gitlab-runner&var-filters=CI_PROJECT_ID|=|621&var-filters=CI_PIPELINE_ID|=|1581321&var-filters=CI_JOB_ID|=|54484721&sortOrder=Ascending&from=1778065784000&to=1778065823000'
414 11:10: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|=|1581321&var-filters=CI_JOB_ID|=|54484721&sortOrder=Ascending&from=1778065784000&to=1778065823000
415 11:10:23 + date -d '-7 days' '+%Y-%m-%d'
416 11:10:23 date: invalid date '-7 days'
417 11:10:23 + date -d '+7 days' '+%Y-%m-%d'
418 11:10:23 date: invalid date '+7 days'
419 11:10:23 + echo 'Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build&project=internal/gitlab-templates'
420 11:10:23 Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build&project=internal/gitlab-templates
421 11:10:23 + echo
422 11:10:23
423 11:10:23 + exit 0
424 11:10:23
425 11:10:23 section_end:1778065823:step_script
426 11:10:23 +section_start:1778065823:upload_artifacts_on_success
427 11:10:23 +Uploading artifacts for successful job
428 11:10:24 Uploading artifacts...
429 11:10:24 docker_image_build.env: found 1 matching artifact files and directories
430 11:10:24 Uploading artifacts as "dotenv" to coordinator... 201 Created correlation_id=01KQYFPPEK0E33AVRD9WHE4958 id=54484721 responseStatus=201 Created token=64_4KU1Cg
431 11:10:24
432 11:10:24 section_end:1778065824:upload_artifacts_on_success
433 11:10:24 +section_start:1778065824:cleanup_file_variables
434 11:10:24 +Cleaning up project directory and file based variables
435 11:10:25
436 11:10:25 section_end:1778065825:cleanup_file_variables
437 11:10:25 +
438 11:10:25 Job succeeded
439