build-pre-commit-image ○ success

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

302 lines
Match - of 0
1 22:38:20 Running with gitlab-runner 18.9.0 (07e534ba)
2 22:38:20 on gitlab-runner-linux-1-746bdd58fd-cqwdq wRxjPbsJX, system ID: r_BbsT8E7thlM4
3 22:38:20 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:20 Resolving secrets
5 22:38:20 section_start:1778020700:prepare_executor
6 22:38:20 +Preparing the "kubernetes" executor
7 22:38:20 "CPURequest" overwritten with "2"
8 22:38:20 "MemoryRequest" overwritten with "4G"
9 22:38:20 Using Kubernetes namespace: gitlab-runner
10 22:38:20 Using Kubernetes executor with image registry.scandit.com/dockerfiles/kaniko:v1.27.3-crane@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac ...
11 22:38:20 Using attach strategy to execute scripts...
12 22:38:20 Using effective pull policy of [Always] for container helper
13 22:38:20 Using effective pull policy of [Always] for container init-permissions
14 22:38:20 Using effective pull policy of [Always] for container build
15 22:38:20 section_end:1778020700:prepare_executor
16 22:38:20 +section_start:1778020700:prepare_script
17 22:38:20 +Preparing environment
18 22:38:20 Using FF_USE_POD_ACTIVE_DEADLINE_SECONDS, the Pod activeDeadlineSeconds will be set to the job timeout: 1h0m0s...
19 22:38:20 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:21 Subscribing to Kubernetes Pod events...
21 22:38:21 Type Reason Message
22 22:38:21 Warning FailedScheduling 0/31 nodes are available: 1 node(s) had untolerated taint {scandit.io/clickhouse: production}, 1 node(s) had untolerated taint {scandit.io/clickhouse: staging}, 1 node(s) had untolerated taint {scandit.io/sonarqube: dedicated}, 21 node(s) didn't match Pod's node affinity/selector, 7 Insufficient cpu. preemption: 0/31 nodes are available: 24 Preemption is not helpful for scheduling, 7 No preemption victims found for incoming pod.
23 22:38:24 Warning FailedScheduling 0/31 nodes are available: 1 node(s) had untolerated taint {scandit.io/clickhouse: production}, 1 node(s) had untolerated taint {scandit.io/clickhouse: staging}, 1 node(s) had untolerated taint {scandit.io/sonarqube: dedicated}, 21 node(s) didn't match Pod's node affinity/selector, 7 Insufficient cpu. preemption: 0/31 nodes are available: 24 Preemption is not helpful for scheduling, 7 No preemption victims found for incoming pod.
24 22:38:28 Warning FailedScheduling 0/31 nodes are available: 1 node(s) had untolerated taint {scandit.io/clickhouse: production}, 1 node(s) had untolerated taint {scandit.io/clickhouse: staging}, 1 node(s) had untolerated taint {scandit.io/sonarqube: dedicated}, 21 node(s) didn't match Pod's node affinity/selector, 7 Insufficient cpu. preemption: 0/31 nodes are available: 24 Preemption is not helpful for scheduling, 7 No preemption victims found for incoming pod.
25 22:38:28 Warning FailedScheduling 0/31 nodes are available: 1 node(s) had untolerated taint {scandit.io/clickhouse: production}, 1 node(s) had untolerated taint {scandit.io/clickhouse: staging}, 1 node(s) had untolerated taint {scandit.io/sonarqube: dedicated}, 21 node(s) didn't match Pod's node affinity/selector, 7 Insufficient cpu. preemption: 0/31 nodes are available: 24 Preemption is not helpful for scheduling, 7 No preemption victims found for incoming pod.
26 22:38:28 Warning FailedScheduling 0/31 nodes are available: 1 node(s) had untolerated taint {scandit.io/clickhouse: production}, 1 node(s) had untolerated taint {scandit.io/clickhouse: staging}, 1 node(s) had untolerated taint {scandit.io/sonarqube: dedicated}, 21 node(s) didn't match Pod's node affinity/selector, 7 Insufficient cpu. preemption: 0/31 nodes are available: 24 Preemption is not helpful for scheduling, 7 No preemption victims found for incoming pod.
27 22:38:28 Warning FailedScheduling 0/31 nodes are available: 1 node(s) had untolerated taint {scandit.io/clickhouse: production}, 1 node(s) had untolerated taint {scandit.io/clickhouse: staging}, 1 node(s) had untolerated taint {scandit.io/sonarqube: dedicated}, 21 node(s) didn't match Pod's node affinity/selector, 7 Insufficient cpu. preemption: 0/31 nodes are available: 24 Preemption is not helpful for scheduling, 7 No preemption victims found for incoming pod.
28 22:38:29 Warning FailedScheduling 0/31 nodes are available: 1 node(s) had untolerated taint {scandit.io/clickhouse: production}, 1 node(s) had untolerated taint {scandit.io/clickhouse: staging}, 1 node(s) had untolerated taint {scandit.io/sonarqube: dedicated}, 21 node(s) didn't match Pod's node affinity/selector, 7 Insufficient cpu. preemption: 0/31 nodes are available: 24 Preemption is not helpful for scheduling, 7 No preemption victims found for incoming pod.
29 22:38:29 Warning FailedScheduling 0/31 nodes are available: 1 node(s) had untolerated taint {scandit.io/clickhouse: production}, 1 node(s) had untolerated taint {scandit.io/clickhouse: staging}, 1 node(s) had untolerated taint {scandit.io/sonarqube: dedicated}, 21 node(s) didn't match Pod's node affinity/selector, 7 Insufficient cpu. preemption: 0/31 nodes are available: 24 Preemption is not helpful for scheduling, 7 No preemption victims found for incoming pod.
30 22:38:29 Warning FailedScheduling 0/31 nodes are available: 1 node(s) had untolerated taint {scandit.io/clickhouse: production}, 1 node(s) had untolerated taint {scandit.io/clickhouse: staging}, 1 node(s) had untolerated taint {scandit.io/sonarqube: dedicated}, 21 node(s) didn't match Pod's node affinity/selector, 7 Insufficient cpu. preemption: 0/31 nodes are available: 24 Preemption is not helpful for scheduling, 7 No preemption victims found for incoming pod.
31 22:38:31 Warning FailedScheduling 0/31 nodes are available: 1 node(s) had untolerated taint {scandit.io/clickhouse: production}, 1 node(s) had untolerated taint {scandit.io/clickhouse: staging}, 1 node(s) had untolerated taint {scandit.io/sonarqube: dedicated}, 21 node(s) didn't match Pod's node affinity/selector, 7 Insufficient cpu. preemption: 0/31 nodes are available: 24 Preemption is not helpful for scheduling, 7 No preemption victims found for incoming pod.
32 22:38:31 Warning FailedScheduling 0/31 nodes are available: 1 node(s) had untolerated taint {scandit.io/clickhouse: production}, 1 node(s) had untolerated taint {scandit.io/clickhouse: staging}, 1 node(s) had untolerated taint {scandit.io/sonarqube: dedicated}, 21 node(s) didn't match Pod's node affinity/selector, 7 Insufficient cpu. preemption: 0/31 nodes are available: 24 Preemption is not helpful for scheduling, 7 No preemption victims found for incoming pod.
33 22:38:31 Warning FailedScheduling 0/31 nodes are available: 1 node(s) had untolerated taint {scandit.io/clickhouse: production}, 1 node(s) had untolerated taint {scandit.io/clickhouse: staging}, 1 node(s) had untolerated taint {scandit.io/sonarqube: dedicated}, 21 node(s) didn't match Pod's node affinity/selector, 7 Insufficient cpu. preemption: 0/31 nodes are available: 24 Preemption is not helpful for scheduling, 7 No preemption victims found for incoming pod.
34 22:38:31 Normal Scheduled Successfully assigned gitlab-runner/runner-wrxjpbsjx-project-621-concurrent-2-xeh0ldo1 to ip-10-0-20-43.eu-central-1.compute.internal
35 22:38:32 Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" already present on machine
36 22:38:32 Normal Created Created container: init-permissions
37 22:38:32 Normal Started Started container init-permissions
38 22:38:33 Normal Pulling Pulling image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/kaniko@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac"
39 22:38:34 Normal Pulled Successfully pulled image "498954711405.dkr.ecr.eu-central-1.amazonaws.com/dockerfiles/kaniko@sha256:72bdc063db14f38a45910d33ccf066ecb088d4833fb2437fef336e49b81fd4ac" in 869ms (870ms including waiting). Image size: 49989654 bytes.
40 22:38:34 Normal Created Created container: build
41 22:38:34 Normal Started Started container build
42 22:38:34 Normal Pulled Container image "gitlab/gitlab-runner-helper:x86_64-v18.8.0" already present on machine
43 22:38:34 Normal Created Created container: helper
44 22:38:34 Normal Started Started container helper
45 22:38:36 Running on runner-wrxjpbsjx-project-621-concurrent-2-xeh0ldo1 via gitlab-runner-linux-1-746bdd58fd-cqwdq...
46 22:38:36
47 22:38:36 section_end:1778020716:prepare_script
48 22:38:36 +section_start:1778020716:get_sources
49 22:38:36 +Getting source from Git repository
50 22:38:37 Gitaly correlation ID: 01KQX4NKJ68Q5FQ2JK1M4EKGAD
51 22:38:37 Fetching changes with git depth set to 1...
52 22:38:37 Initialized empty Git repository in /build/internal/gitlab-templates/.git/
53 22:38:37 Created fresh repository.
54 22:38:37 Checking out 13881c4b as detached HEAD (ref is refs/merge-requests/638/merge)...
55 22:38:37
56 22:38:37 Skipping Git submodules setup
57 22:38:37
58 22:38:37 section_end:1778020717:get_sources
59 22:38:37 +section_start:1778020717:step_script
60 22:38:37 +Executing "step_script" stage of the job script
61 22:38:38 section_start:1778020718:section_pre_build_script_0[hide_duration=true,collapsed=true] $ function cleanup {
62 22:38:38 rv=$?
63 22:38:38 if [ $rv -ne 0 ]; then
64 22:38:38 echo ""
65 22:38:38 echo " Failure Cause Analysis might help, please open this link:"
66 22:38:38 echo " https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
67 22:38:38 echo ""
68 22:38:38 fi
69 22:38:38 echo ""
70 22:38:38 echo "Scout Analysis: https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
71 22:38:38 echo ""
72 22:38:38 echo ""
73 22:38:38 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"
74 22:38:38 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"
75 22:38:38 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"
76 22:38:38 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}"
77 22:38:38 echo ""
78 22:38:38 exit $rv
79 22:38:38 }
80 22:38:38 trap cleanup EXIT
81 22:38:38 echo "INFO: This is the CI job pre_build_script"
82 22:38:38 echo "INFO: It's defined in the backend/infra/aws repo."
83 22:38:38 echo "INFO: These additional Scandit variables are available to you:"
84 22:38:38 echo " SC_K8S_NODE_NAME: $SC_K8S_NODE_NAME"
85 22:38:38 echo " SC_K8S_IMAGE_ID: $SC_K8S_IMAGE_ID"
86 22:38:38 echo " SC_K8S_KYVERNO_PATCHES: |"
87 22:38:38 echo "$SC_K8S_KYVERNO_PATCHES" | sed 's/^/ /'
88 22:38:38 echo "cpu (r/l): ${SC_K8S_REQUESTS_CPU}/${SC_K8S_LIMITS_CPU}"
89 22:38:38 if command -v numfmt >/dev/null 2>&1; then
90 22:38:38 echo "memory (r/l): $(numfmt --to=iec --suffix=B $SC_K8S_REQUESTS_MEMORY)/$(numfmt --to=iec --suffix=B $SC_K8S_LIMITS_MEMORY)"
91 22:38:38 else
92 22:38:38 echo "memory (r/l): ${SC_K8S_REQUESTS_MEMORY}/${SC_K8S_LIMITS_MEMORY}"
93 22:38:38 fi
94 22:38:38 __start_time=${EPOCHSECONDS}
95 22:38:38 echo ""
96 22:38:38 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"
97 22:38:38 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"
98 22:38:38 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"
99 22:38:38 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}"
100 22:38:38 echo ""
101 22:38:38 echo "Setting up credentials for Gitlab Python registries"
102 22:38:38 mkdir -p ~
103 22:38:38 echo "machine gitlab.scandit.com" > ~/.netrc
104 22:38:38 echo "login gitlab-ci-token" >> ~/.netrc
105 22:38:38 echo "password ${CI_JOB_TOKEN}" >> ~/.netrc
106 22:38:38 chmod 600 ~/.netrc
107 22:38:38 if command -v git &> /dev/null && [ "$(id -u)" -ne 0 ]; then
108 22:38:38 git config --global --add safe.directory $CI_PROJECT_DIR
109 22:38:38 fi
110 22:38:38 # Sonarqube server is running on the same cluster. Use internal address
111 22:38:38 export SONAR_HOST_URL="http://sonarqube.sonarqube.svc.cluster.local:9000"
112 22:38:38 section_end:1778020718:section_pre_build_script_0
113 22:38:38 INFO: This is the CI job pre_build_script
114 22:38:38 INFO: It's defined in the backend/infra/aws repo.
115 22:38:38 INFO: These additional Scandit variables are available to you:
116 22:38:38 SC_K8S_NODE_NAME: ip-10-0-20-43.eu-central-1.compute.internal
117 22:38:38 SC_K8S_IMAGE_ID:
118 22:38:38 SC_K8S_KYVERNO_PATCHES: |
119 22:38:38
120 22:38:38 cpu (r/l): 2/4
121 22:38:38 memory (r/l): 4000000000/17179869184
122 22:38:38
123 22:38:38 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-20-43.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-2-xeh0ldo1&var-resolution=15&from=1778020718000&to=now
124 22:38:38 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-20-43.eu-central-1.compute.internal&var-resolution=15s&from=1778020718000&to=now
125 22:38:38 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|=|1580353&var-filters=CI_JOB_ID|=|54442914&sortOrder=Ascending&from=1778020718000&to=now
126 22:38:38 date: invalid date '-7 days'
127 22:38:38 date: invalid date '+7 days'
128 22:38:38 Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build-pre-commit-image&project=internal/gitlab-templates
129 22:38:38
130 22:38:38 Setting up credentials for Gitlab Python registries
131 22:38:38 $ echo "FROM registry.scandit.com/internal/gitlab-templates/pre-commit:${PRE_COMMIT_PYTHON_VERSION}-${PRE_COMMIT_VERSION}" > Dockerfile.pre-commit-project
132 22:38:38 $ echo $DOCKER_CONFIG_JSON > /kaniko/.docker/config.json
133 22:38:38 $ mv /root/.netrc /kaniko/.netrc
134 22:38:38 section_start:1778020718:section_script_step_3[hide_duration=true,collapsed=true] $ function copy_files() {
135 22:38:38 local src="$1"
136 22:38:38 local trg="$2"
137 22:38:38 for f in $src; do
138 22:38:38 t="$trg/`dirname $f`"
139 22:38:38 mkdir -p $t || true
140 22:38:38 echo "Copy $f"
141 22:38:38 cp -pr $f $trg/$f
142 22:38:38 done
143 22:38:38 }
144 22:38:38 function recursive_hash() {
145 22:38:38 local dir="$1"
146 22:38:38 find "$dir" -exec stat -c '%F|%a|%u:%g|%n' {} + -type f -exec sha256sum {} + | sort | sha256sum | cut -d ' ' -f1
147 22:38:38 }
148 22:38:38 function remote_docker_digest() {
149 22:38:38 local images="$1"
150 22:38:38 echo $images | xargs -n 1 crane digest
151 22:38:38 }
152 22:38:38 function remote_image_exists() {
153 22:38:38 local image="$1"
154 22:38:38 crane manifest $image > /dev/null 2>&1
155 22:38:38 }
156 22:38:38 function remote_images_are_identical() {
157 22:38:38 local imageA="$1"
158 22:38:38 local imageB="$2"
159 22:38:38 if [[ $(remote_docker_digest "$imageA") == $(remote_docker_digest "$imageB") ]]; then
160 22:38:38 return 0
161 22:38:38 else
162 22:38:38 return 1
163 22:38:38 fi
164 22:38:38 }
165 22:38:38 function copy_image() {
166 22:38:38 local image="$1"
167 22:38:38 local remotes="$2"
168 22:38:38 local backup_ext="$3"
169 22:38:38 echo "$image"
170 22:38:38 local source_digest=$(remote_docker_digest $image)
171 22:38:38 local target_digest
172 22:38:38 for registry in $remotes; do
173 22:38:38 if target_digest=$(remote_docker_digest $registry); then
174 22:38:38 if [ "$target_digest" != "$source_digest" ]; then
175 22:38:38 echo "image outdated, overwriting with newest version"
176 22:38:38 crane copy $image $registry
177 22:38:38 crane copy $image ${registry}${backup_ext}
178 22:38:38 fi
179 22:38:38 else
180 22:38:38 echo "image does not exist, writing newest version"
181 22:38:38 crane copy $image $registry
182 22:38:38 crane copy $image ${registry}${backup_ext}
183 22:38:38 fi
184 22:38:38 done
185 22:38:38 }
186 22:38:38 section_end:1778020718:section_script_step_3
187 22:38:38 section_start:1778020718:section_script_step_4[hide_duration=true,collapsed=true] $ if [ "$CONTAINER_SUBDIR" != "" ]; then
188 22:38:38 echo "Entering subpath $CONTAINER_SUBDIR"
189 22:38:38 cd $CONTAINER_SUBDIR
190 22:38:38 fi
191 22:38:38 section_end:1778020718:section_script_step_4
192 22:38:38 $ copy_files "$CONTAINER_IMPLICIT_REQUIREMENTS $CONTAINER_REQUIREMENTS" "$CONTAINER_CONTEXT_PATH"
193 22:38:38 Copy Dockerfile.pre-commit-project
194 22:38:38 Copy .pre-commit-config.yaml
195 22:38:38 $ echo "$CONTAINER_BUILD_ENVIRONMENT" > $CONTAINER_CONTEXT_PATH/.docker-build-env
196 22:38:38 $ docker_checksum=$(recursive_hash $CONTAINER_CONTEXT_PATH)
197 22:38:38 section_start:1778020718:section_script_step_8[hide_duration=true,collapsed=true] $ if [ "$CONTAINER_IMAGE_NAME" == "" ]; then
198 22:38:38 final_image_name=${CONTAINER_IMAGE_URL}
199 22:38:38 else
200 22:38:38 final_image_name=${CONTAINER_IMAGE_URL}/${CONTAINER_IMAGE_NAME}
201 22:38:38 fi
202 22:38:38 section_end:1778020718:section_script_step_8
203 22:38:38 $ final_image_url=${final_image_name}:${docker_checksum}
204 22:38:38 section_start:1778020718:section_script_step_10[hide_duration=true,collapsed=true] $ if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
205 22:38:38 echo $CONTAINER_IMAGE_VARIABLE=${final_image_url}-P${CI_PROJECT_ID}-${CI_PIPELINE_ID} > $CI_PROJECT_DIR/docker_image_build.env
206 22:38:38 else
207 22:38:38 echo $CONTAINER_IMAGE_VARIABLE=$final_image_url > $CI_PROJECT_DIR/docker_image_build.env
208 22:38:38 fi
209 22:38:38 section_end:1778020718:section_script_step_10
210 22:38:38 $ echo ${CONTAINER_IMAGE_VARIABLE}_HASH=$docker_checksum >> $CI_PROJECT_DIR/docker_image_build.env
211 22:38:38 section_start:1778020718:section_script_step_12[hide_duration=true,collapsed=true] $ if [ "${FORCE_BUILD}" != "true" ] || command -v crane &> /dev/null; then
212 22:38:38 echo $REGISTRY_PASSWORD | crane auth login $REGISTRY -u $REGISTRY_USER --password-stdin
213 22:38:38 fi
214 22:38:38 section_end:1778020718:section_script_step_12
215 22:38:38
216 22:38:38 WARNING! Your credentials are stored unencrypted in '/kaniko/.docker/config.json'.
217 22:38:38 Configure a credential helper to remove this warning. See
218 22:38:38 https://docs.docker.com/go/credential-store/
219 22:38:38
220 22:38:38 2026/05/05 22:38:38 logged in via /kaniko/.docker/config.json
221 22:38:38 section_start:1778020718:section_script_step_13[hide_duration=true,collapsed=true] $ if [ "${FORCE_BUILD}" != "true" ] && remote_image_exists "$final_image_url"; then
222 22:38:38 echo "Image already exists, skip the build."
223 22:38:38 echo "$final_image_url"
224 22:38:38 if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
225 22:38:38 _EXT=""
226 22:38:38 _BACKUP_EXT="-CI${CI_JOB_ID}-$(date '+%Y%m%d')"
227 22:38:38 elif [[ -n "$CI_MERGE_REQUEST_ID" ]]; then
228 22:38:38 _EXT="-MR${CI_MERGE_REQUEST_IID}"
229 22:38:38 _BACKUP_EXT=""
230 22:38:38 elif [[ "$CI_COMMIT_REF_PROTECTED" == "true" ]]; then
231 22:38:38 _EXT="-${CI_COMMIT_REF_SLUG}"
232 22:38:38 _BACKUP_EXT="-CI${CI_JOB_ID}-$(date '+%Y%m%d')"
233 22:38:38 fi
234 22:38:38 for _TAG in $CONTAINER_IMAGE_TAG; do
235 22:38:38 echo "Copying ${final_image_url} to ${final_image_name}:${_TAG}${_EXT}"
236 22:38:38 copy_image "${final_image_url}" "${final_image_name}:${_TAG}${_EXT}" "${_BACKUP_EXT}"
237 22:38:38 done
238 22:38:38 if [ "${PIPELINE_IMAGE_REFS}" == "1" ]; then
239 22:38:38 _EXT="-P${CI_PROJECT_ID}-${CI_PIPELINE_ID}"
240 22:38:38 echo "Copying ${final_image_url} to ${final_image_url}${_EXT}"
241 22:38:38 copy_image "${final_image_url}" "${final_image_url}${_EXT}"
242 22:38:38 for _TAG in $CONTAINER_IMAGE_TAG; do
243 22:38:38 echo "Copying ${final_image_url} to ${final_image_name}:${_TAG}${_EXT}"
244 22:38:38 copy_image "${final_image_url}" "${final_image_name}:${_TAG}${_EXT}"
245 22:38:38 done
246 22:38:38 fi
247 22:38:38 exit 0
248 22:38:38 fi
249 22:38:38 section_end:1778020718:section_script_step_13
250 22:38:38 Image already exists, skip the build.
251 22:38:38 registry.scandit.com/internal/gitlab-templates/pre-commit:17f326f916c2676c279ad503717158f9dc23bc3df559feda764e3fd7ac8bdc56
252 22:38:38 Copying registry.scandit.com/internal/gitlab-templates/pre-commit:17f326f916c2676c279ad503717158f9dc23bc3df559feda764e3fd7ac8bdc56 to registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1-MR638
253 22:38:38 registry.scandit.com/internal/gitlab-templates/pre-commit:17f326f916c2676c279ad503717158f9dc23bc3df559feda764e3fd7ac8bdc56
254 22:38:39 image outdated, overwriting with newest version
255 22:38:39 2026/05/05 22:38:39 Copying from registry.scandit.com/internal/gitlab-templates/pre-commit:17f326f916c2676c279ad503717158f9dc23bc3df559feda764e3fd7ac8bdc56 to registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1-MR638
256 22:38:39 2026/05/05 22:38:39 existing blob: sha256:d9bfa3fa53d457961c6711b3cccb29fd7474a2432039d570e0e3ae95cf2f831c
257 22:38:39 2026/05/05 22:38:39 existing blob: sha256:a997a4244c8161a610caebdccc31ab678d07d95392192b27cc241b64645427b2
258 22:38:39 2026/05/05 22:38:39 existing blob: sha256:80a51a93a0848aec8bd2b4f355588cb2a3694f0b5ad417d59a429d08a7bbbaad
259 22:38:39 2026/05/05 22:38:39 existing blob: sha256:817807f3c64e0b90b66edc7d90297f121cad2a7c2a3ee05a731557762f91e6c7
260 22:38:39 2026/05/05 22:38:39 existing blob: sha256:03dc47444df718469e2dd4a35b3a857b7de8d53a0e5781d56a53c45a4220fb32
261 22:38:39 2026/05/05 22:38:39 existing blob: sha256:89732bc7504122601f40269fc9ddfb70982e633ea9caf641ae45736f2846b004
262 22:38:39 2026/05/05 22:38:39 existing blob: sha256:acbfe6e2bffda08ee640fd8cd8354d0bb6cf250096b834faa0b3a6ca7763d484
263 22:38:39 2026/05/05 22:38:39 existing blob: sha256:4cc0fc1a251ae9782aba2833c0d577df45f19bebdc827f78b391a8bc93934a24
264 22:38:39 2026/05/05 22:38:39 existing blob: sha256:cecca7fd3c8f2c7fdc7707a3ec162e0d0d27779c118879ab6a817f94543e6c09
265 22:38:39 2026/05/05 22:38:39 existing blob: sha256:b790cb509f575468aea2557e740eb9ccacb04e2b0b3ace095225e04dfea36504
266 22:38:39 2026/05/05 22:38:39 existing blob: sha256:7172f9d759a920f9d4662320ab084efd69588d99b841f3d586c565f7d847f7a0
267 22:38:39 2026/05/05 22:38:39 existing blob: sha256:67a45b62ab98df3bb5947fd728dbf2c53d125bb4c88733e233f9be42cbe12be0
268 22:38:39 2026/05/05 22:38:39 existing blob: sha256:50474e8463a03e5662638d9a6eb801a7b2c8eb9afb50f67acf486a0337522f89
269 22:38:39 2026/05/05 22:38:39 existing blob: sha256:96e14c3938cee4624b747ca38f3f7d190b3f9c8d091b7a90bfcf434679347f3e
270 22:38:39 2026/05/05 22:38:39 existing blob: sha256:c0048147bc1665f4a9c772844be2ad066fef331141ef061e7a4fd31e2de179d3
271 22:38:39 2026/05/05 22:38:39 existing blob: sha256:7f6a4bc8055c5bceaded67c3b443331dc3c75d65c73642feed34830262edfab1
272 22:38:39 2026/05/05 22:38:39 existing blob: sha256:e0bfa438565a955d9ebd4a24fb859dce074425aff70f236932535401ef15ae1b
273 22:38:40 2026/05/05 22:38:40 registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1-MR638: digest: sha256:e1a42072273b679421c82fa0fb2d4487612d040caad8151ebb4c02ca2babfe0e size: 5364
274 22:38:40 2026/05/05 22:38:40 Copying from registry.scandit.com/internal/gitlab-templates/pre-commit:17f326f916c2676c279ad503717158f9dc23bc3df559feda764e3fd7ac8bdc56 to registry.scandit.com/internal/gitlab-templates/pre-commit:3.12-3.7.1-MR638
275 22:38:40 2026/05/05 22:38:40 existing manifest: 3.12-3.7.1-MR638@sha256:e1a42072273b679421c82fa0fb2d4487612d040caad8151ebb4c02ca2babfe0e
276 22:38:40
277 22:38:40 Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54442914
278 22:38:40
279 22:38:40
280 22:38:40 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-20-43.eu-central-1.compute.internal&var-namespace=gitlab-runner&var-pod=runner-wrxjpbsjx-project-621-concurrent-2-xeh0ldo1&var-resolution=15&from=1778020718000&to=1778020720000
281 22:38:40 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-20-43.eu-central-1.compute.internal&var-resolution=15s&from=1778020718000&to=1778020720000
282 22:38:40 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|=|1580353&var-filters=CI_JOB_ID|=|54442914&sortOrder=Ascending&from=1778020718000&to=1778020720000
283 22:38:40 date: invalid date '-7 days'
284 22:38:40 date: invalid date '+7 days'
285 22:38:40 Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=~&job_name=build-pre-commit-image&project=internal/gitlab-templates
286 22:38:40
287 22:38:40
288 22:38:40 section_end:1778020720:step_script
289 22:38:40 +section_start:1778020720:upload_artifacts_on_success
290 22:38:40 +Uploading artifacts for successful job
291 22:38:40 Uploading artifacts...
292 22:38:40 docker_image_build.env: found 1 matching artifact files and directories
293 22:38:41 Uploading artifacts as "dotenv" to coordinator... 201 Created correlation_id=01KQX4P86HCY7HW7WYRWG6V06V id=54442914 responseStatus=201 Created token=64_xagbHF
294 22:38:41
295 22:38:41 section_end:1778020721:upload_artifacts_on_success
296 22:38:41 +section_start:1778020721:cleanup_file_variables
297 22:38:41 +Cleaning up project directory and file based variables
298 22:38:41
299 22:38:41 section_end:1778020721:cleanup_file_variables
300 22:38:41 +
301 22:38:42 Job succeeded
302