build-pre-commit-image ○ success

Duration: 24s
Queued: 0s
📁 Stage: docker-image
🖥 Runner: linux-aws-1
Average Duration
19s
This job: 24s
Failure Rate
1.6%
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

384 lines
Match - of 0
1 22:38:49 Running with gitlab-runner 18.9.0 (07e534ba)
2 22:38:49 on gitlab-runner-linux-1-746bdd58fd-szt6v wRxjPbsJX, system ID: r_Be2HPiYaBlrW
3 22:38:49 feature flags: FF_USE_FASTZIP:true, FF_USE_NEW_BASH_EVAL_STRATEGY:true, FF_USE_DYNAMIC_TRACE_FORCE_SEND_INTERVAL:true, FF_SCRIPT_SECTIONS:true, FF_USE_ADVANCED_POD_SPEC_CONFIGURATION:true, FF_PRINT_POD_EVENTS:true, FF_USE_DUMB_INIT_WITH_KUBERNETES_EXECUTOR:true, FF_LOG_IMAGES_CONFIGURED_FOR_JOB:true, FF_CLEAN_UP_FAILED_CACHE_EXTRACT:true, FF_GIT_URLS_WITHOUT_TOKENS:true, FF_WAIT_FOR_POD_TO_BE_REACHABLE:true, FF_USE_FLEETING_ACQUIRE_HEARTBEATS:true, FF_USE_JOB_ROUTER:true
4 22:38:49 Resolving secrets
5 22:38:49 section_start:1778020729:prepare_executor
6 22:38:49 +Preparing the "kubernetes" executor
7 22:38:49 "CPURequest" overwritten with "2"
8 22:38:49 "MemoryRequest" overwritten with "4G"
9 22:38:49 Using Kubernetes namespace: gitlab-runner
10 22:38:49 Using Kubernetes executor with image registry.scandit.com/dockerfiles/kaniko:v1.27.4-crane@sha256:fa662cefab90e8cde8767935540790733c85bd963f2c18b444d6595e3e91a0ff ...
11 22:38:49 Using attach strategy to execute scripts...
12 22:38:49 Using effective pull policy of [Always] for container build
13 22:38:49 Using effective pull policy of [Always] for container helper
14 22:38:49 Using effective pull policy of [Always] for container init-permissions
15 22:38:49 section_end:1778020729:prepare_executor
16 22:38:49 +section_start:1778020729:prepare_script
17 22:38:49 +Preparing environment
18 22:38:49 Using FF_USE_POD_ACTIVE_DEADLINE_SECONDS, the Pod activeDeadlineSeconds will be set to the job timeout: 1h0m0s...
19 22:38:49 WARNING: Advanced Pod Spec configuration enabled, merging the provided PodSpec to the generated one. This is a beta feature and is subject to change. Feedback is collected in this issue: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/29659 ...
20 22:38:50 Subscribing to Kubernetes Pod events...
21 22:38:50 Type Reason Message
22 22:38:50 Normal Scheduled Successfully assigned gitlab-runner/runner-wrxjpbsjx-project-621-concurrent-0-akpjwm5d to ip-10-0-62-204.eu-central-1.compute.internal
23 22:38:51 Normal Pulling Pulling image "gitlab/gitlab-runner-helper:x86_64-v18.8.0"
24 22:38:53 Normal Pulled Successfully pulled image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" in 2.328s (2.328s including waiting). Image size: 39949060 bytes.
25 22:38:53 Normal Created Created container: init-permissions
26 22:38:53 Normal Started Started container init-permissions
27 22:39:01 Normal Pulling Pulling image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/kaniko@sha256:fa662cefab90e8cde8767935540790733c85bd963f2c18b444d6595e3e91a0ff"
28 22:39:02 Normal Pulled Successfully pulled image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/kaniko@sha256:fa662cefab90e8cde8767935540790733c85bd963f2c18b444d6595e3e91a0ff" in 1.085s (1.085s including waiting). Image size: 50126433 bytes.
29 22:39:02 Normal Created Created container: build
30 22:39:02 Normal Started Started container build
31 22:39:02 Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" already present on machine
32 22:39:02 Normal Created Created container: helper
33 22:39:02 Normal Started Started container helper
34 22:39:05 Running on runner-wrxjpbsjx-project-621-concurrent-0-akpjwm5d via gitlab-runner-linux-1-746bdd58fd-szt6v...
35 22:39:05
36 22:39:05 section_end:1778020745:prepare_script
37 22:39:05 +section_start:1778020745:get_sources
38 22:39:05 +Getting source from Git repository
39 22:39:06 Gitaly correlation ID: 01KQX4PFVAW3B1S76JTVNKYJM9
40 22:39:06 Fetching changes with git depth set to 1...
41 22:39:06 Initialized empty Git repository in /build/internal/gitlab-templates/.git/
42 22:39:06 Created fresh repository.
43 22:39:07 Checking out 22f5b5c3 as detached HEAD (ref is refs/merge-requests/639/merge)...
44 22:39:07
45 22:39:07 Skipping Git submodules setup
46 22:39:07
47 22:39:07 section_end:1778020747:get_sources
48 22:39:07 +section_start:1778020747:step_script
49 22:39:07 +Executing "step_script" stage of the job script
50 22:39:07 section_start:1778020747:section_pre_build_script_0[hide_duration=true,collapsed=true] $ function cleanup {
51 22:39:07 rv=$?
52 22:39:07 if [ $rv -ne 0 ]; then
53 22:39:07 echo ""
54 22:39:07 echo " Failure Cause Analysis might help, please open this link:"
55 22:39:07 echo " https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
56 22:39:07 echo ""
57 22:39:07 fi
58 22:39:07 echo ""
59 22:39:07 echo "Scout Analysis: https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
60 22:39:07 echo ""
61 22:39:07 echo ""
62 22:39:07 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"
63 22:39:07 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"
64 22:39:07 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"
65 22:39:07 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}"
66 22:39:07 echo ""
67 22:39:07 exit $rv
68 22:39:07 }
69 22:39:07 trap cleanup EXIT
70 22:39:07 echo "INFO: This is the CI job pre_build_script"
71 22:39:07 echo "INFO: It's defined in the backend/infra/aws repo."
72 22:39:07 echo "INFO: These additional Scandit variables are available to you:"
73 22:39:07 echo " SC_K8S_NODE_NAME: $SC_K8S_NODE_NAME"
74 22:39:07 echo " SC_K8S_IMAGE_ID: $SC_K8S_IMAGE_ID"
75 22:39:07 echo " SC_K8S_KYVERNO_PATCHES: |"
76 22:39:07 echo "$SC_K8S_KYVERNO_PATCHES" | sed 's/^/ /'
77 22:39:07 echo "cpu (r/l): ${SC_K8S_REQUESTS_CPU}/${SC_K8S_LIMITS_CPU}"
78 22:39:07 if command -v numfmt >/dev/null 2>&1; then
79 22:39:07 echo "memory (r/l): $(numfmt --to=iec --suffix=B $SC_K8S_REQUESTS_MEMORY)/$(numfmt --to=iec --suffix=B $SC_K8S_LIMITS_MEMORY)"
80 22:39:07 else
81 22:39:07 echo "memory (r/l): ${SC_K8S_REQUESTS_MEMORY}/${SC_K8S_LIMITS_MEMORY}"
82 22:39:07 fi
83 22:39:07 __start_time=${EPOCHSECONDS}
84 22:39:07 echo ""
85 22:39:07 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"
86 22:39:07 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"
87 22:39:07 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"
88 22:39:07 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}"
89 22:39:07 echo ""
90 22:39:07 echo "Setting up credentials for Gitlab Python registries"
91 22:39:07 mkdir -p ~
92 22:39:07 echo "machine gitlab.scandit.com" > ~/.netrc
93 22:39:07 echo "login gitlab-ci-token" >> ~/.netrc
94 22:39:07 echo "password ${CI_JOB_TOKEN}" >> ~/.netrc
95 22:39:07 chmod 600 ~/.netrc
96 22:39:07 if command -v git &> /dev/null && [ "$(id -u)" -ne 0 ]; then
97 22:39:07 git config --global --add safe.directory $CI_PROJECT_DIR
98 22:39:07 fi
99 22:39:07 # Sonarqube server is running on the same cluster. Use internal address
100 22:39:07 export SONAR_HOST_URL="http://sonarqube.sonarqube.svc.cluster.local:9000"
101 22:39:07 section_end:1778020747:section_pre_build_script_0
102 22:39:07 INFO: This is the CI job pre_build_script
103 22:39:07 INFO: It's defined in the backend/infra/aws repo.
104 22:39:07 INFO: These additional Scandit variables are available to you:
105 22:39:07 SC_K8S_NODE_NAME: ip-10-0-62-204.eu-central-1.compute.internal
106 22:39:07 SC_K8S_IMAGE_ID:
107 22:39:07 SC_K8S_KYVERNO_PATCHES: |
108 22:39:07
109 22:39:07 cpu (r/l): 2/4
110 22:39:07 memory (r/l): 4000000000/17179869184
111 22:39:07
112 22:39:07 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-62-204.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-0-akpjwm5d&var-resolution=15&from=1778020747000&to=now
113 22:39:07 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-62-204.eu-central-1.compute.internal&var-resolution=15s&from=1778020747000&to=now
114 22:39:07 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|=|1580356&var-filters=CI_JOB_ID|=|54442883&sortOrder=Ascending&from=1778020747000&to=now
115 22:39:07 date: invalid date '-7 days'
116 22:39:07 date: invalid date '+7 days'
117 22:39:07 Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build-pre-commit-image&project=internal/gitlab-templates
118 22:39:07
119 22:39:07 Setting up credentials for Gitlab Python registries
120 22:39:07 $ echo "FROM registry.scandit.com/internal/gitlab-templates/pre-commit:${PRE_COMMIT_PYTHON_VERSION}-${PRE_COMMIT_VERSION}" > Dockerfile.pre-commit-project
121 22:39:07 $ echo $DOCKER_CONFIG_JSON > /kaniko/.docker/config.json
122 22:39:07 $ mv /root/.netrc /kaniko/.netrc
123 22:39:07 section_start:1778020747:section_script_step_3[hide_duration=true,collapsed=true] $ function copy_files() {
124 22:39:07 local src="$1"
125 22:39:07 local trg="$2"
126 22:39:07 for f in $src; do
127 22:39:07 t="$trg/`dirname $f`"
128 22:39:07 mkdir -p $t || true
129 22:39:07 echo "Copy $f"
130 22:39:07 cp -pr $f $trg/$f
131 22:39:07 done
132 22:39:07 }
133 22:39:07 function recursive_hash() {
134 22:39:07 local dir="$1"
135 22:39:07 find "$dir" -exec stat -c '%F|%a|%u:%g|%n' {} + -type f -exec sha256sum {} + | sort | sha256sum | cut -d ' ' -f1
136 22:39:07 }
137 22:39:07 function remote_docker_digest() {
138 22:39:07 local images="$1"
139 22:39:07 echo $images | xargs -n 1 crane digest
140 22:39:07 }
141 22:39:07 function remote_image_exists() {
142 22:39:07 local image="$1"
143 22:39:07 crane manifest $image > /dev/null 2>&1
144 22:39:07 }
145 22:39:07 function remote_images_are_identical() {
146 22:39:07 local imageA="$1"
147 22:39:07 local imageB="$2"
148 22:39:07 if [[ $(remote_docker_digest "$imageA") == $(remote_docker_digest "$imageB") ]]; then
149 22:39:07 return 0
150 22:39:07 else
151 22:39:07 return 1
152 22:39:07 fi
153 22:39:07 }
154 22:39:07 function copy_image() {
155 22:39:07 local image="$1"
156 22:39:07 local remotes="$2"
157 22:39:07 local backup_ext="$3"
158 22:39:07 echo "$image"
159 22:39:07 local source_digest=$(remote_docker_digest $image)
160 22:39:07 local target_digest
161 22:39:07 for registry in $remotes; do
162 22:39:07 if target_digest=$(remote_docker_digest $registry); then
163 22:39:07 if [ "$target_digest" != "$source_digest" ]; then
164 22:39:07 echo "image outdated, overwriting with newest version"
165 22:39:07 crane copy $image $registry
166 22:39:07 crane copy $image ${registry}${backup_ext}
167 22:39:07 fi
168 22:39:07 else
169 22:39:07 echo "image does not exist, writing newest version"
170 22:39:07 crane copy $image $registry
171 22:39:07 crane copy $image ${registry}${backup_ext}
172 22:39:07 fi
173 22:39:07 done
174 22:39:07 }
175 22:39:07 section_end:1778020747:section_script_step_3
176 22:39:07 section_start:1778020747:section_script_step_4[hide_duration=true,collapsed=true] $ if [ "$CONTAINER_SUBDIR" != "" ]; then
177 22:39:07 echo "Entering subpath $CONTAINER_SUBDIR"
178 22:39:07 cd $CONTAINER_SUBDIR
179 22:39:07 fi
180 22:39:07 section_end:1778020747:section_script_step_4
181 22:39:07 $ copy_files "$CONTAINER_IMPLICIT_REQUIREMENTS $CONTAINER_REQUIREMENTS" "$CONTAINER_CONTEXT_PATH"
182 22:39:07 Copy Dockerfile.pre-commit-project
183 22:39:07 Copy .pre-commit-config.yaml
184 22:39:07 $ echo "$CONTAINER_BUILD_ENVIRONMENT" > $CONTAINER_CONTEXT_PATH/.docker-build-env
185 22:39:07 $ docker_checksum=$(recursive_hash $CONTAINER_CONTEXT_PATH)
186 22:39:07 section_start:1778020747:section_script_step_8[hide_duration=true,collapsed=true] $ if [ "$CONTAINER_IMAGE_NAME" == "" ]; then
187 22:39:07 final_image_name=${CONTAINER_IMAGE_URL}
188 22:39:07 else
189 22:39:07 final_image_name=${CONTAINER_IMAGE_URL}/${CONTAINER_IMAGE_NAME}
190 22:39:07 fi
191 22:39:07 section_end:1778020747:section_script_step_8
192 22:39:07 $ final_image_url=${final_image_name}:${docker_checksum}
193 22:39:07 section_start:1778020747:section_script_step_10[hide_duration=true,collapsed=true] $ if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
194 22:39:07 echo $CONTAINER_IMAGE_VARIABLE=${final_image_url}-P${CI_PROJECT_ID}-${CI_PIPELINE_ID} > $CI_PROJECT_DIR/docker_image_build.env
195 22:39:07 else
196 22:39:07 echo $CONTAINER_IMAGE_VARIABLE=$final_image_url > $CI_PROJECT_DIR/docker_image_build.env
197 22:39:07 fi
198 22:39:07 section_end:1778020747:section_script_step_10
199 22:39:07 $ echo ${CONTAINER_IMAGE_VARIABLE}_HASH=$docker_checksum >> $CI_PROJECT_DIR/docker_image_build.env
200 22:39:07 section_start:1778020747:section_script_step_12[hide_duration=true,collapsed=true] $ if [ "${FORCE_BUILD}" != "true" ] || command -v crane &> /dev/null; then
201 22:39:07 echo $REGISTRY_PASSWORD | crane auth login $REGISTRY -u $REGISTRY_USER --password-stdin
202 22:39:07 fi
203 22:39:07 section_end:1778020747:section_script_step_12
204 22:39:07
205 22:39:07 WARNING! Your credentials are stored unencrypted in '/kaniko/.docker/config.json'.
206 22:39:07 Configure a credential helper to remove this warning. See
207 22:39:07 https://docs.docker.com/go/credential-store/
208 22:39:07
209 22:39:07 2026/05/05 22:39:07 logged in via /kaniko/.docker/config.json
210 22:39:07 section_start:1778020747:section_script_step_13[hide_duration=true,collapsed=true] $ if [ "${FORCE_BUILD}" != "true" ] && remote_image_exists "$final_image_url"; then
211 22:39:07 echo "Image already exists, skip the build."
212 22:39:07 echo "$final_image_url"
213 22:39:07 if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
214 22:39:07 _EXT=""
215 22:39:07 _BACKUP_EXT="-CI${CI_JOB_ID}-$(date '+%Y%m%d')"
216 22:39:07 elif [[ -n "$CI_MERGE_REQUEST_ID" ]]; then
217 22:39:07 _EXT="-MR${CI_MERGE_REQUEST_IID}"
218 22:39:07 _BACKUP_EXT=""
219 22:39:07 elif [[ "$CI_COMMIT_REF_PROTECTED" == "true" ]]; then
220 22:39:07 _EXT="-${CI_COMMIT_REF_SLUG}"
221 22:39:07 _BACKUP_EXT="-CI${CI_JOB_ID}-$(date '+%Y%m%d')"
222 22:39:07 fi
223 22:39:07 for _TAG in $CONTAINER_IMAGE_TAG; do
224 22:39:07 echo "Copying ${final_image_url} to ${final_image_name}:${_TAG}${_EXT}"
225 22:39:07 copy_image "${final_image_url}" "${final_image_name}:${_TAG}${_EXT}" "${_BACKUP_EXT}"
226 22:39:07 done
227 22:39:07 if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
228 22:39:07 _EXT="-P${CI_PROJECT_ID}-${CI_PIPELINE_ID}"
229 22:39:07 echo "Copying ${final_image_url} to ${final_image_url}${_EXT}"
230 22:39:07 copy_image "${final_image_url}" "${final_image_url}${_EXT}"
231 22:39:07 for _TAG in $CONTAINER_IMAGE_TAG; do
232 22:39:07 echo "Copying ${final_image_url} to ${final_image_name}:${_TAG}${_EXT}"
233 22:39:07 copy_image "${final_image_url}" "${final_image_name}:${_TAG}${_EXT}"
234 22:39:07 done
235 22:39:07 fi
236 22:39:07 exit 0
237 22:39:07 fi
238 22:39:07 section_end:1778020747:section_script_step_13
239 22:39:08 $ DESTINATIONS="--destination=$final_image_url"
240 22:39:08 section_start:1778020747:section_script_step_15[hide_duration=true,collapsed=true] $ if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
241 22:39:08 _EXT=""
242 22:39:08 TIMESTAMP_TAGS=$CONTAINER_IMAGE_TAG
243 22:39:08 elif [[ -n "$CI_MERGE_REQUEST_ID" ]]; then
244 22:39:08 _EXT="-MR${CI_MERGE_REQUEST_IID}"
245 22:39:08 TIMESTAMP_TAGS=""
246 22:39:08 elif [[ "$CI_COMMIT_REF_PROTECTED" == "true" ]]; then
247 22:39:08 _EXT="-${CI_COMMIT_REF_SLUG}"
248 22:39:08 TIMESTAMP_TAGS=$CONTAINER_IMAGE_TAG
249 22:39:08 fi
250 22:39:08 section_end:1778020747:section_script_step_15
251 22:39:08 section_start:1778020747:section_script_step_16[hide_duration=true,collapsed=true] $ for _TAG in $CONTAINER_IMAGE_TAG; do
252 22:39:08 DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}"
253 22:39:08 done
254 22:39:08 section_end:1778020747:section_script_step_16
255 22:39:08 section_start:1778020747:section_script_step_17[hide_duration=true,collapsed=true] $ if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
256 22:39:08 _EXT="-P${CI_PROJECT_ID}-${CI_PIPELINE_ID}"
257 22:39:08 DESTINATIONS="${DESTINATIONS} --destination=${final_image_url}${_EXT}"
258 22:39:08 for _TAG in $CONTAINER_IMAGE_TAG; do
259 22:39:08 DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}"
260 22:39:08 done
261 22:39:08 fi
262 22:39:08 section_end:1778020747:section_script_step_17
263 22:39:08 section_start:1778020747:section_script_step_18[hide_duration=true,collapsed=true] $ DATE=$(date '+%Y%m%d')
264 22:39:08 for _TAG in $TIMESTAMP_TAGS; do
265 22:39:08 DESTINATIONS="${DESTINATIONS} --destination=${final_image_name}:${_TAG}${_EXT}-CI${CI_JOB_ID}-${DATE}"
266 22:39:08 done
267 22:39:08 section_end:1778020747:section_script_step_18
268 22:39:08 section_start:1778020747:section_script_step_19[hide_duration=true,collapsed=true] $ if [ -n "${CONTAINER_BUILD_ARGS}" ]; then
269 22:39:08 for _BUILD_ARG in $CONTAINER_BUILD_ARGS; do
270 22:39:08 FINAL_BUILD_ARGS="--build-arg $_BUILD_ARG $FINAL_BUILD_ARGS"
271 22:39:08 done
272 22:39:08 fi
273 22:39:08 section_end:1778020747:section_script_step_19
274 22:39:08 section_start:1778020747:section_script_step_20[hide_duration=true,collapsed=true] $ for _PATH in $CONTAINER_IGNORE_PATHS; do
275 22:39:08 FINAL_IGNORE_PATHS="--ignore-path=$_PATH $FINAL_IGNORE_PATHS"
276 22:39:08 done
277 22:39:08 section_end:1778020747:section_script_step_20
278 22:39:08 section_start:1778020747:section_script_step_21[hide_duration=true,collapsed=true] $ if [ -n "${CONTAINER_PLATFORM}" ]; then
279 22:39:08 KANIKO_PLATFORM="--custom-platform=${CONTAINER_PLATFORM}"
280 22:39:08 fi
281 22:39:08 section_end:1778020747:section_script_step_21
282 22:39:08 $ ANNOTATIONS=""
283 22:39:08 section_start:1778020747:section_script_step_23[hide_duration=true,collapsed=true] $ if [[ -n "$CI_COMMIT_REF_NAME" ]]; then
284 22:39:08 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.ref.name=${CI_COMMIT_REF_NAME}"
285 22:39:08 fi
286 22:39:08 section_end:1778020747:section_script_step_23
287 22:39:08 section_start:1778020747:section_script_step_24[hide_duration=true,collapsed=true] $ if [[ -n "$CI_COMMIT_SHA" ]]; then
288 22:39:08 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.revision=${CI_COMMIT_SHA}"
289 22:39:08 fi
290 22:39:08 section_end:1778020747:section_script_step_24
291 22:39:08 section_start:1778020747:section_script_step_25[hide_duration=true,collapsed=true] $ if [[ -n "$CI_JOB_URL" ]]; then
292 22:39:08 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.url=${CI_JOB_URL}"
293 22:39:08 fi
294 22:39:08 section_end:1778020747:section_script_step_25
295 22:39:08 section_start:1778020747:section_script_step_26[hide_duration=true,collapsed=true] $ if [[ -n "$CI_PIPELINE_ID" ]]; then
296 22:39:08 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.pipeline_id=${CI_PIPELINE_ID}"
297 22:39:08 fi
298 22:39:08 section_end:1778020747:section_script_step_26
299 22:39:08 section_start:1778020747:section_script_step_27[hide_duration=true,collapsed=true] $ if [[ -n "$CI_JOB_ID" ]]; then
300 22:39:08 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.job_id=${CI_JOB_ID}"
301 22:39:08 fi
302 22:39:08 section_end:1778020747:section_script_step_27
303 22:39:08 section_start:1778020747:section_script_step_28[hide_duration=true,collapsed=true] $ if [[ -n "$CI_JOB_IMAGE" ]]; then
304 22:39:08 ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.gitlab.ci.job_image=${CI_JOB_IMAGE}"
305 22:39:08 fi
306 22:39:08 section_end:1778020747:section_script_step_28
307 22:39:08 $ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.title=${final_image_name}:$(echo $CONTAINER_IMAGE_TAG | cut -d' ' -f1)"
308 22:39:08 $ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.created=$(date -u +%Y-%m-%dT%H:%M:%SZ)"
309 22:39:08 $ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY org.opencontainers.image.vendor=Scandit"
310 22:39:08 $ ANNOTATIONS="${ANNOTATIONS} $KANIKO_ANNOTATION_KEY io.scandit.ci.hash=${docker_checksum}"
311 22:39:08 section_start:1778020747:section_script_step_33[hide_duration=true,collapsed=true] $ if [ -n "${CONTAINER_TARGET_STAGE}" ]; then
312 22:39:08 KANIKO_TARGET="--target $CONTAINER_TARGET_STAGE"
313 22:39:08 fi
314 22:39:08 section_end:1778020747:section_script_step_33
315 22:39:08 $ set -x
316 22:39:08 + 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 22:39:08 $ /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 22:39:08 + /kaniko/executor --context /build/internal/gitlab-templates/context/ --dockerfile Dockerfile.pre-commit-project '--destination=registry.scandit.com/internal/gitlab-templates/pre-commit:b4971a585eafc9dffad71c29f2a191beaba873598099501f783cfd10b4f21969' '--destination=registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1-MR639' '--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=renovate/registry.scandit.com-dockerfiles-kaniko-1.x' --annotation 'org.opencontainers.image.revision=22f5b5c32e4d267c3494a360c3cf287d060f8b90' --annotation 'org.opencontainers.image.url=https://gitlab.scandit.com/internal/gitlab-templates/-/jobs/54442883' --annotation 'io.gitlab.ci.pipeline_id=1580356' --annotation 'io.gitlab.ci.job_id=54442883' --annotation 'io.gitlab.ci.job_image=registry.scandit.com/dockerfiles/kaniko:v1.27.4-crane@sha256:fa662cefab90e8cde8767935540790733c85bd963f2c18b444d6595e3e91a0ff' --annotation 'org.opencontainers.image.title=registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1' --annotation 'org.opencontainers.image.created=2026-05-05T22:39:07Z' --annotation 'org.opencontainers.image.vendor=Scandit' --annotation 'io.scandit.ci.hash=b4971a585eafc9dffad71c29f2a191beaba873598099501f783cfd10b4f21969' --preserve-context '--credential-helpers=gitlab' --secret 'id=netrc,src=/kaniko/.netrc' --secret 'id=ci_job_token,env=CI_JOB_TOKEN'
319 22:39:08 INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
320 22:39:08 INFO[0000] Retrieving image manifest registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1
321 22:39:08 INFO[0000] Retrieving image registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1 from registry registry.scandit.com
322 22:39:08 INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
323 22:39:08 INFO[0000] Retrieving image manifest registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1
324 22:39:08 INFO[0000] Returning cached image manifest
325 22:39:08 INFO[0000] Retrieving image manifest registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1
326 22:39:08 INFO[0000] Returning cached image manifest
327 22:39:08 INFO[0000] Retrieving image manifest registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1
328 22:39:08 INFO[0000] Returning cached image manifest
329 22:39:08 INFO[0000] Built cross stage deps: map[]
330 22:39:08 INFO[0000] Skipping context snapshot as no-one requires it
331 22:39:08 INFO[0000] Retrieving image manifest registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1
332 22:39:08 INFO[0000] Returning cached image manifest
333 22:39:08 INFO[0000] Retrieving image manifest registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1
334 22:39:08 INFO[0000] Returning cached image manifest
335 22:39:08 INFO[0000] Building stage 'registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1' [idx: '0', base-idx: '-1']
336 22:39:08 INFO[0000] Skipping unpacking as no commands require it.
337 22:39:08 INFO[0000] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
338 22:39:08 INFO[0000] Pushing image to registry.scandit.com/internal/gitlab-templates/pre-commit:b4971a585eafc9dffad71c29f2a191beaba873598099501f783cfd10b4f21969
339 22:39:10 INFO[0002] Pushed registry.scandit.com/internal/gitlab-templates/pre-commit@sha256:d945b720a514fc758d8a4496ad715e7cb4e10ea3d469658a30d19573fd2a763c
340 22:39:10 INFO[0002] credential providers by priority: [file:/kaniko/.docker/config.json, gitlab]
341 22:39:10 INFO[0002] Pushing image to registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1-MR639
342 22:39:11 INFO[0003] Pushed registry.scandit.com/internal/gitlab-templates/pre-commit@sha256:d945b720a514fc758d8a4496ad715e7cb4e10ea3d469658a30d19573fd2a763c
343 22:39:11 + cleanup
344 22:39:11 + rv=0
345 22:39:11 + '[' 0 -ne 0 ]
346 22:39:11 + echo
347 22:39:11
348 22:39:11 + echo 'Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54442883'
349 22:39:11 Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54442883
350 22:39:11 + echo
351 22:39:11
352 22:39:11 + echo
353 22:39:11
354 22:39:11 + 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-62-204.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-0-akpjwm5d&var-resolution=15&from=1778020747000&to=1778020751000'
355 22:39: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-62-204.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-0-akpjwm5d&var-resolution=15&from=1778020747000&to=1778020751000
356 22:39:11 + 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-62-204.eu-central-1.compute.internal&var-resolution=15s&from=1778020747000&to=1778020751000'
357 22:39: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-62-204.eu-central-1.compute.internal&var-resolution=15s&from=1778020747000&to=1778020751000
358 22:39:11 + 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|=|1580356&var-filters=CI_JOB_ID|=|54442883&sortOrder=Ascending&from=1778020747000&to=1778020751000'
359 22:39: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|=|1580356&var-filters=CI_JOB_ID|=|54442883&sortOrder=Ascending&from=1778020747000&to=1778020751000
360 22:39:11 + date -d '-7 days' '+%Y-%m-%d'
361 22:39:11 date: invalid date '-7 days'
362 22:39:11 + date -d '+7 days' '+%Y-%m-%d'
363 22:39:11 date: invalid date '+7 days'
364 22:39:11 + echo 'Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build-pre-commit-image&project=internal/gitlab-templates'
365 22:39:11 Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build-pre-commit-image&project=internal/gitlab-templates
366 22:39:11 + echo
367 22:39:11
368 22:39:11 + exit 0
369 22:39:11
370 22:39:11 section_end:1778020751:step_script
371 22:39:11 +section_start:1778020751:upload_artifacts_on_success
372 22:39:11 +Uploading artifacts for successful job
373 22:39:12 Uploading artifacts...
374 22:39:12 docker_image_build.env: found 1 matching artifact files and directories
375 22:39:12 Uploading artifacts as "dotenv" to coordinator... 201 Created correlation_id=01KQX4Q6Y2T0S0ARK92N8BRBQM id=54442883 responseStatus=201 Created token=64_8aexY1
376 22:39:12
377 22:39:12 section_end:1778020752:upload_artifacts_on_success
378 22:39:12 +section_start:1778020752:cleanup_file_variables
379 22:39:12 +Cleaning up project directory and file based variables
380 22:39:13
381 22:39:13 section_end:1778020753:cleanup_file_variables
382 22:39:13 +
383 22:39:13 Job succeeded
384