+ SNAPSHOT_SPEC_FILE=/var/workdir/release/73a7398d-e21e-4159-adb1-64e80c630018/snapshot_spec.json + DATA_FILE=/var/workdir/release/73a7398d-e21e-4159-adb1-64e80c630018/data.json + SNAPSHOT_SPEC_FILE_ORIG=/var/workdir/release/73a7398d-e21e-4159-adb1-64e80c630018/snapshot_spec.json.orig + '[' '!' -f /var/workdir/release/73a7398d-e21e-4159-adb1-64e80c630018/snapshot_spec.json ']' + cp /var/workdir/release/73a7398d-e21e-4159-adb1-64e80c630018/snapshot_spec.json /var/workdir/release/73a7398d-e21e-4159-adb1-64e80c630018/snapshot_spec.json.orig + '[' '!' -f /var/workdir/release/73a7398d-e21e-4159-adb1-64e80c630018/data.json ']' ++ jq .mapping /var/workdir/release/73a7398d-e21e-4159-adb1-64e80c630018/data.json + MAPPING='{ "components": [ { "name": "tsf-demo-comp", "repository": "quay.io/rhtap_qe/default-managed-tenant-syc5c/default-managed-tenant-syc5c-91415c/tsf-demo-comp" } ], "defaults": { "pushSourceContainer": false, "tags": [ "latest", "{{ git_sha }}" ] } }' + [[ { "components": [ { "name": "tsf-demo-comp", "repository": "quay.io/rhtap_qe/default-managed-tenant-syc5c/default-managed-tenant-syc5c-91415c/tsf-demo-comp" } ], "defaults": { "pushSourceContainer": false, "tags": [ "latest", "{{ git_sha }}" ] } } == \n\u\l\l ]] + jq -c -s ' .[0] as $snapshot | .[0].components + .[1].components | group_by(.name) | [.[] | select(length > 1)] | map(reduce .[] as $x ({}; . * $x)) as $mergedComponents | $snapshot | .components = $mergedComponents' ++ cat /var/workdir/release/73a7398d-e21e-4159-adb1-64e80c630018/snapshot_spec.json.orig + echo -n '{ "artifacts": {}, "componentGroup": "", "components": [ { "containerImage": "quay.io/rhtap_qe/default-tenant/tsf-demo-comp@sha256:f13f36d0e40cb94b1bb365d8cbf52270144cddfbfc2d9a51f14424c46da6a0c5", "name": "tsf-demo-comp", "source": { "git": { "revision": "8a419f9b1a920375f8112c9b7477d42bbd82b6c9", "url": "https://github.com/rhads-tsf-qe/testrepo" } }, "version": "" } ] }' + echo '{ "components": [ { "name": "tsf-demo-comp", "repository": "quay.io/rhtap_qe/default-managed-tenant-syc5c/default-managed-tenant-syc5c-91415c/tsf-demo-comp" } ], "defaults": { "pushSourceContainer": false, "tags": [ "latest", "{{ git_sha }}" ] } }' + printf true + tee /tekton/results/mapped true+ '[' true = true ']' ++ jq '.components | length' + '[' 1 -eq 0 ']' ++ jq '.defaults.tags // []' + defaultTags='[ "latest", "{{ git_sha }}" ]' ++ jq -r '.defaults.timestampFormat // "%s"' + defaultTimestampFormat=%s ++ date '+%Y%m%d %T' + currentTimestamp='20260415 23:27:22' ++ jq -c '.defaults.contentGateway // {}' + defaultCGWSettings='{}' ++ jq '.components | length' /var/workdir/release/73a7398d-e21e-4159-adb1-64e80c630018/snapshot_spec.json + NUM_MAPPED_COMPONENTS=1 + (( i = 0 )) + (( i < NUM_MAPPED_COMPONENTS )) ++ jq -c --argjson i 0 '.components[$i]' /var/workdir/release/73a7398d-e21e-4159-adb1-64e80c630018/snapshot_spec.json + component='{"containerImage":"quay.io/rhtap_qe/default-tenant/tsf-demo-comp@sha256:f13f36d0e40cb94b1bb365d8cbf52270144cddfbfc2d9a51f14424c46da6a0c5","name":"tsf-demo-comp","source":{"git":{"revision":"8a419f9b1a920375f8112c9b7477d42bbd82b6c9","url":"https://github.com/rhads-tsf-qe/testrepo"}},"version":"","repository":"quay.io/rhtap_qe/default-managed-tenant-syc5c/default-managed-tenant-syc5c-91415c/tsf-demo-comp"}' ++ jq '.componentTags // []' + componentTags='[]' ++ jq -n --argjson defaults '[ "latest", "{{ git_sha }}" ]' --argjson componentTags '[]' '$defaults? + $componentTags? | unique' + defaultComponentTags='[ "latest", "{{ git_sha }}" ]' ++ jq -r .name + NAME=tsf-demo-comp ++ jq -r .containerImage + IMAGE_REF=quay.io/rhtap_qe/default-tenant/tsf-demo-comp@sha256:f13f36d0e40cb94b1bb365d8cbf52270144cddfbfc2d9a51f14424c46da6a0c5 + [[ quay.io/rhtap_qe/default-tenant/tsf-demo-comp@sha256:f13f36d0e40cb94b1bb365d8cbf52270144cddfbfc2d9a51f14424c46da6a0c5 =~ ^.+@sha256:[0-9a-f]+$ ]] ++ jq -r .source.git.revision + git_sha=8a419f9b1a920375f8112c9b7477d42bbd82b6c9 + build_sha=f13f36d0e40cb94b1bb365d8cbf52270144cddfbfc2d9a51f14424c46da6a0c5 ++ jq -r --arg default %s '.timestampFormat // $default' + passedTimestampFormat=%s ++ date -d '20260415 23:27:22' +%s + release_timestamp=1776295642 ++ get-image-architectures quay.io/rhtap_qe/default-tenant/tsf-demo-comp@sha256:f13f36d0e40cb94b1bb365d8cbf52270144cddfbfc2d9a51f14424c46da6a0c5 + arch_json='{"platform":{"architecture":"amd64","os":"linux"},"digest":"sha256:f13f36d0e40cb94b1bb365d8cbf52270144cddfbfc2d9a51f14424c46da6a0c5","multiarch":false}' ++ jq -rs 'map(.platform.architecture) | .[0]' + arch=amd64 ++ jq -rs 'map(.platform.os) | .[0]' + os=linux ++ jq -rs '.[0].digest' + first_digest=sha256:f13f36d0e40cb94b1bb365d8cbf52270144cddfbfc2d9a51f14424c46da6a0c5 + image_with_digest=quay.io/rhtap_qe/default-tenant/tsf-demo-comp@sha256:f13f36d0e40cb94b1bb365d8cbf52270144cddfbfc2d9a51f14424c46da6a0c5 ++ skopeo inspect --retry-times 3 --no-tags --raw docker://quay.io/rhtap_qe/default-tenant/tsf-demo-comp@sha256:f13f36d0e40cb94b1bb365d8cbf52270144cddfbfc2d9a51f14424c46da6a0c5 ++ jq -c + raw_manifest='{"schemaVersion":2,"mediaType":"application/vnd.docker.distribution.manifest.v2+json","config":{"mediaType":"application/vnd.docker.container.image.v1+json","size":7942,"digest":"sha256:4c66239682166d4dcbe3770e8197d3957dfcbf9f7f59ced947a124b0111d847f"},"layers":[{"mediaType":"application/vnd.docker.image.rootfs.diff.tar.gzip","size":77917986,"digest":"sha256:22dbd89a1c788679c290666730d812394b356b7a3e5d2832445686e403942f07"},{"mediaType":"application/vnd.docker.image.rootfs.diff.tar.gzip","size":1029,"digest":"sha256:fb8be238ee8e9ad58db3ce9ee051ecdebdb3ebf2e2e8b19f0cd54439fd963649"}]}' ++ jq -c '.annotations // {}' + annotations='{}' ++ jq -r '.config.mediaType // ""' + config_media_type=application/vnd.docker.container.image.v1+json + [[ application/vnd.docker.container.image.v1+json == \a\p\p\l\i\c\a\t\i\o\n\/\v\n\d\.\o\c\i\.\i\m\a\g\e\.\c\o\n\f\i\g\.\v\1\+\j\s\o\n ]] + [[ application/vnd.docker.container.image.v1+json == \a\p\p\l\i\c\a\t\i\o\n\/\v\n\d\.\d\o\c\k\e\r\.\c\o\n\t\a\i\n\e\r\.\i\m\a\g\e\.\v\1\+\j\s\o\n ]] ++ skopeo inspect --retry-times 3 --no-tags --override-os linux --override-arch amd64 docker://quay.io/rhtap_qe/default-tenant/tsf-demo-comp@sha256:f13f36d0e40cb94b1bb365d8cbf52270144cddfbfc2d9a51f14424c46da6a0c5 ++ jq -c + image_metadata='{"Name":"quay.io/rhtap_qe/default-tenant/tsf-demo-comp","Digest":"sha256:f13f36d0e40cb94b1bb365d8cbf52270144cddfbfc2d9a51f14424c46da6a0c5","RepoTags":[],"Created":"2026-04-15T23:18:54.684177096Z","DockerVersion":"","Labels":{"architecture":"x86_64","build-date":"2026-04-15T23:18:22Z","com.redhat.component":"ubi8-container","com.redhat.license_terms":"https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI","cpe":"cpe:/a:redhat:enterprise_linux:8::appstream","description":"The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.","distribution-scope":"public","io.buildah.version":"1.42.2","io.k8s.description":"The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.","io.k8s.display-name":"Red Hat Universal Base Image 8","io.openshift.expose-services":"","io.openshift.tags":"base rhel8","maintainer":"Red Hat, Inc.","name":"ubi8/ubi","org.opencontainers.image.created":"2026-04-15T23:18:22Z","org.opencontainers.image.revision":"8a419f9b1a920375f8112c9b7477d42bbd82b6c9","org.opencontainers.image.source":"https://github.com/rhads-tsf-qe/testrepo","release":"1776106637","summary":"Provides the latest release of Red Hat Universal Base Image 8.","url":"https://catalog.redhat.com/en/search?searchType=containers","vcs-ref":"8a419f9b1a920375f8112c9b7477d42bbd82b6c9","vcs-type":"git","vendor":"Red Hat, Inc.","version":"8.10"},"Architecture":"amd64","Os":"linux","Layers":["sha256:22dbd89a1c788679c290666730d812394b356b7a3e5d2832445686e403942f07","sha256:fb8be238ee8e9ad58db3ce9ee051ecdebdb3ebf2e2e8b19f0cd54439fd963649"],"LayersData":[{"MIMEType":"application/vnd.docker.image.rootfs.diff.tar.gzip","Digest":"sha256:22dbd89a1c788679c290666730d812394b356b7a3e5d2832445686e403942f07","Size":77917986,"Annotations":null},{"MIMEType":"application/vnd.docker.image.rootfs.diff.tar.gzip","Digest":"sha256:fb8be238ee8e9ad58db3ce9ee051ecdebdb3ebf2e2e8b19f0cd54439fd963649","Size":1029,"Annotations":null}],"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","container=oci"]}' ++ jq -r '.Labels."build-date" // .Created // ""' + build_date=2026-04-15T23:18:22Z ++ jq -c '.Env // []' + env_variables='["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","container=oci"]' ++ jq -c '.Labels // {}' + labels='{"architecture":"x86_64","build-date":"2026-04-15T23:18:22Z","com.redhat.component":"ubi8-container","com.redhat.license_terms":"https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI","cpe":"cpe:/a:redhat:enterprise_linux:8::appstream","description":"The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.","distribution-scope":"public","io.buildah.version":"1.42.2","io.k8s.description":"The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.","io.k8s.display-name":"Red Hat Universal Base Image 8","io.openshift.expose-services":"","io.openshift.tags":"base rhel8","maintainer":"Red Hat, Inc.","name":"ubi8/ubi","org.opencontainers.image.created":"2026-04-15T23:18:22Z","org.opencontainers.image.revision":"8a419f9b1a920375f8112c9b7477d42bbd82b6c9","org.opencontainers.image.source":"https://github.com/rhads-tsf-qe/testrepo","release":"1776106637","summary":"Provides the latest release of Red Hat Universal Base Image 8.","url":"https://catalog.redhat.com/en/search?searchType=containers","vcs-ref":"8a419f9b1a920375f8112c9b7477d42bbd82b6c9","vcs-type":"git","vendor":"Red Hat, Inc.","version":"8.10"}' ++ jq -r '.["org.opencontainers.image.version"] // ""' + oci_version_raw= + '[' -z '' ']' ++ jq -r '.["org.opencontainers.image.version"] // ""' + oci_version_raw= ++ jq length + '[' 2 -ne 0 ']' ++ mktemp + env_file=/tmp/tmp.V0f7xMVbXb + echo '["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","container=oci"]' + jq --argjson i 0 --slurpfile env /tmp/tmp.V0f7xMVbXb '.components[$i].metadata = (.components[$i].metadata // {}) * {env_variables: $env[0]}' /var/workdir/release/73a7398d-e21e-4159-adb1-64e80c630018/snapshot_spec.json + mv /tmp/temp /var/workdir/release/73a7398d-e21e-4159-adb1-64e80c630018/snapshot_spec.json ++ jq length + '[' 0 -ne 0 ']' ++ jq length + '[' 24 -ne 0 ']' ++ mktemp + labels_file=/tmp/tmp.riw4WyVIAR + jq -c 'if . then to_entries | map({name: .key, value: .value}) else [] end' + jq --argjson i 0 --slurpfile labels /tmp/tmp.riw4WyVIAR '.components[$i].metadata = (.components[$i].metadata // {}) * {labels: $labels[0]}' /var/workdir/release/73a7398d-e21e-4159-adb1-64e80c630018/snapshot_spec.json + mv /tmp/temp /var/workdir/release/73a7398d-e21e-4159-adb1-64e80c630018/snapshot_spec.json + '[' -n application/vnd.docker.container.image.v1+json ']' + jq --argjson i 0 --arg media_type application/vnd.docker.container.image.v1+json '.components[$i].metadata = (.components[$i].metadata // {}) * {media_type: $media_type}' /var/workdir/release/73a7398d-e21e-4159-adb1-64e80c630018/snapshot_spec.json + mv /tmp/temp /var/workdir/release/73a7398d-e21e-4159-adb1-64e80c630018/snapshot_spec.json + oci_version= + oci_version=unknown + '[' 2026-04-15T23:18:22Z = '' ']' ++ date -d 2026-04-15T23:18:22Z +%s + timestamp=1776295102 ++ jq -n -c --arg timestamp 1776295102 --arg release_timestamp 1776295642 --arg git_sha 8a419f9b1a920375f8112c9b7477d42bbd82b6c9 --arg git_short_sha 8a419f9 --arg digest_sha f13f36d0e40cb94b1bb365d8cbf52270144cddfbfc2d9a51f14424c46da6a0c5 --arg oci_version unknown '$ARGS.named' + substitute_map='{"timestamp":"1776295102","release_timestamp":"1776295642","git_sha":"8a419f9b1a920375f8112c9b7477d42bbd82b6c9","git_short_sha":"8a419f9","digest_sha":"f13f36d0e40cb94b1bb365d8cbf52270144cddfbfc2d9a51f14424c46da6a0c5","oci_version":"unknown"}' ++ jq '.staged.files | length' + STAGED_FILES=0 + (( j = 0 )) + (( j < STAGED_FILES )) ++ jq -c '.contentGateway // {}' + componentCGWSettings='{}' ++ merge-json '{}' '{}' + updatedComponentCGWSettings='{}' ++ jq '. | length' + componentCGWSettingsSize=0 + '[' 0 -gt 0 ']' ++ jq 'has("repository")' + [[ true == \t\r\u\e ]] ++ jq -r .repository + repository=quay.io/rhtap_qe/default-managed-tenant-syc5c/default-managed-tenant-syc5c-91415c/tsf-demo-comp + echo 'Processing component: tsf-demo-comp' Processing component: tsf-demo-comp Original repository: quay.io/rhtap_qe/default-managed-tenant-syc5c/default-managed-tenant-syc5c-91415c/tsf-demo-comp + echo 'Original repository: quay.io/rhtap_qe/default-managed-tenant-syc5c/default-managed-tenant-syc5c-91415c/tsf-demo-comp' ++ jq '.tags // []' + imageTags='[]' ++ jq -n --argjson defaults '[ "latest", "{{ git_sha }}" ]' --argjson imageTags '[]' '$defaults? + $imageTags? | unique' + oldAllTagsPreSubstitution='[ "latest", "{{ git_sha }}" ]' ++ translate_tags '[ "latest", "{{ git_sha }}" ]' '{"timestamp":"1776295102","release_timestamp":"1776295642","git_sha":"8a419f9b1a920375f8112c9b7477d42bbd82b6c9","git_short_sha":"8a419f9","digest_sha":"f13f36d0e40cb94b1bb365d8cbf52270144cddfbfc2d9a51f14424c46da6a0c5","oci_version":"unknown"}' '{"architecture":"x86_64","build-date":"2026-04-15T23:18:22Z","com.redhat.component":"ubi8-container","com.redhat.license_terms":"https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI","cpe":"cpe:/a:redhat:enterprise_linux:8::appstream","description":"The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.","distribution-scope":"public","io.buildah.version":"1.42.2","io.k8s.description":"The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.","io.k8s.display-name":"Red Hat Universal Base Image 8","io.openshift.expose-services":"","io.openshift.tags":"base rhel8","maintainer":"Red Hat, Inc.","name":"ubi8/ubi","org.opencontainers.image.created":"2026-04-15T23:18:22Z","org.opencontainers.image.revision":"8a419f9b1a920375f8112c9b7477d42bbd82b6c9","org.opencontainers.image.source":"https://github.com/rhads-tsf-qe/testrepo","release":"1776106637","summary":"Provides the latest release of Red Hat Universal Base Image 8.","url":"https://catalog.redhat.com/en/search?searchType=containers","vcs-ref":"8a419f9b1a920375f8112c9b7477d42bbd82b6c9","vcs-type":"git","vendor":"Red Hat, Inc.","version":"8.10"}' quay.io/rhtap_qe/default-managed-tenant-syc5c/default-managed-tenant-syc5c-91415c/tsf-demo-comp ++ tags='[ "latest", "{{ git_sha }}" ]' ++ substitute_map='{"timestamp":"1776295102","release_timestamp":"1776295642","git_sha":"8a419f9b1a920375f8112c9b7477d42bbd82b6c9","git_short_sha":"8a419f9","digest_sha":"f13f36d0e40cb94b1bb365d8cbf52270144cddfbfc2d9a51f14424c46da6a0c5","oci_version":"unknown"}' ++ labels_map='{"architecture":"x86_64","build-date":"2026-04-15T23:18:22Z","com.redhat.component":"ubi8-container","com.redhat.license_terms":"https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI","cpe":"cpe:/a:redhat:enterprise_linux:8::appstream","description":"The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.","distribution-scope":"public","io.buildah.version":"1.42.2","io.k8s.description":"The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.","io.k8s.display-name":"Red Hat Universal Base Image 8","io.openshift.expose-services":"","io.openshift.tags":"base rhel8","maintainer":"Red Hat, Inc.","name":"ubi8/ubi","org.opencontainers.image.created":"2026-04-15T23:18:22Z","org.opencontainers.image.revision":"8a419f9b1a920375f8112c9b7477d42bbd82b6c9","org.opencontainers.image.source":"https://github.com/rhads-tsf-qe/testrepo","release":"1776106637","summary":"Provides the latest release of Red Hat Universal Base Image 8.","url":"https://catalog.redhat.com/en/search?searchType=containers","vcs-ref":"8a419f9b1a920375f8112c9b7477d42bbd82b6c9","vcs-type":"git","vendor":"Red Hat, Inc.","version":"8.10"}' ++ repo=quay.io/rhtap_qe/default-managed-tenant-syc5c/default-managed-tenant-syc5c-91415c/tsf-demo-comp ++ '[' '[ "latest", "{{ git_sha }}" ]' = '' ']' ++ translated_tags='[]' +++ jq length ++ NUM_TAGS=2 ++ (( i = 0 )) ++ (( i < NUM_TAGS )) +++ jq -r --argjson i 0 '.[$i]' ++ tag=latest ++ [[ latest =~ \{\{ *([[:alnum:]_.-]+) *}} ]] ++ [[ ! latest =~ ^[a-zA-Z0-9._-]+$ ]] +++ jq -c --arg tag latest 'index($tag)' ++ '[' null = null ']' +++ jq -c --arg tag latest '. + [$tag]' ++ translated_tags='["latest"]' ++ (( i++ )) ++ (( i < NUM_TAGS )) +++ jq -r --argjson i 1 '.[$i]' ++ tag='{{ git_sha }}' ++ [[ {{ git_sha }} =~ \{\{ *([[:alnum:]_.-]+) *}} ]] ++ var_name=git_sha ++ [[ ! git_sha =~ ^[a-zA-Z0-9._-]+$ ]] ++ [[ git_sha == \i\n\c\r\e\m\e\n\t\e\r ]] +++ substitute git_sha '{"timestamp":"1776295102","release_timestamp":"1776295642","git_sha":"8a419f9b1a920375f8112c9b7477d42bbd82b6c9","git_short_sha":"8a419f9","digest_sha":"f13f36d0e40cb94b1bb365d8cbf52270144cddfbfc2d9a51f14424c46da6a0c5","oci_version":"unknown"}' '{"architecture":"x86_64","build-date":"2026-04-15T23:18:22Z","com.redhat.component":"ubi8-container","com.redhat.license_terms":"https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI","cpe":"cpe:/a:redhat:enterprise_linux:8::appstream","description":"The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.","distribution-scope":"public","io.buildah.version":"1.42.2","io.k8s.description":"The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.","io.k8s.display-name":"Red Hat Universal Base Image 8","io.openshift.expose-services":"","io.openshift.tags":"base rhel8","maintainer":"Red Hat, Inc.","name":"ubi8/ubi","org.opencontainers.image.created":"2026-04-15T23:18:22Z","org.opencontainers.image.revision":"8a419f9b1a920375f8112c9b7477d42bbd82b6c9","org.opencontainers.image.source":"https://github.com/rhads-tsf-qe/testrepo","release":"1776106637","summary":"Provides the latest release of Red Hat Universal Base Image 8.","url":"https://catalog.redhat.com/en/search?searchType=containers","vcs-ref":"8a419f9b1a920375f8112c9b7477d42bbd82b6c9","vcs-type":"git","vendor":"Red Hat, Inc.","version":"8.10"}' +++ variable=git_sha +++ substitute_map='{"timestamp":"1776295102","release_timestamp":"1776295642","git_sha":"8a419f9b1a920375f8112c9b7477d42bbd82b6c9","git_short_sha":"8a419f9","digest_sha":"f13f36d0e40cb94b1bb365d8cbf52270144cddfbfc2d9a51f14424c46da6a0c5","oci_version":"unknown"}' +++ labels_map='{"architecture":"x86_64","build-date":"2026-04-15T23:18:22Z","com.redhat.component":"ubi8-container","com.redhat.license_terms":"https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI","cpe":"cpe:/a:redhat:enterprise_linux:8::appstream","description":"The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.","distribution-scope":"public","io.buildah.version":"1.42.2","io.k8s.description":"The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.","io.k8s.display-name":"Red Hat Universal Base Image 8","io.openshift.expose-services":"","io.openshift.tags":"base rhel8","maintainer":"Red Hat, Inc.","name":"ubi8/ubi","org.opencontainers.image.created":"2026-04-15T23:18:22Z","org.opencontainers.image.revision":"8a419f9b1a920375f8112c9b7477d42bbd82b6c9","org.opencontainers.image.source":"https://github.com/rhads-tsf-qe/testrepo","release":"1776106637","summary":"Provides the latest release of Red Hat Universal Base Image 8.","url":"https://catalog.redhat.com/en/search?searchType=containers","vcs-ref":"8a419f9b1a920375f8112c9b7477d42bbd82b6c9","vcs-type":"git","vendor":"Red Hat, Inc.","version":"8.10"}' +++ result= +++ [[ git_sha == labels.* ]] ++++ jq -r --arg variable git_sha '.[$variable] // ""' +++ result=8a419f9b1a920375f8112c9b7477d42bbd82b6c9 +++ echo 8a419f9b1a920375f8112c9b7477d42bbd82b6c9 ++ replacement=8a419f9b1a920375f8112c9b7477d42bbd82b6c9 ++ '[' -z 8a419f9b1a920375f8112c9b7477d42bbd82b6c9 ']' +++ sed 's/{{ *git_sha *}}/8a419f9b1a920375f8112c9b7477d42bbd82b6c9/' ++ tag=8a419f9b1a920375f8112c9b7477d42bbd82b6c9 ++ [[ 8a419f9b1a920375f8112c9b7477d42bbd82b6c9 =~ \{\{ *([[:alnum:]_.-]+) *}} ]] ++ [[ ! 8a419f9b1a920375f8112c9b7477d42bbd82b6c9 =~ ^[a-zA-Z0-9._-]+$ ]] +++ jq -c --arg tag 8a419f9b1a920375f8112c9b7477d42bbd82b6c9 'index($tag)' ++ '[' null = null ']' +++ jq -c --arg tag 8a419f9b1a920375f8112c9b7477d42bbd82b6c9 '. + [$tag]' ++ translated_tags='["latest","8a419f9b1a920375f8112c9b7477d42bbd82b6c9"]' ++ (( i++ )) ++ (( i < NUM_TAGS )) ++ echo '["latest","8a419f9b1a920375f8112c9b7477d42bbd82b6c9"]' + oldTags='["latest","8a419f9b1a920375f8112c9b7477d42bbd82b6c9"]' ++ ensure_implicit_timestamp_value '["latest","8a419f9b1a920375f8112c9b7477d42bbd82b6c9"]' 1776295102 ++ local 'tags_json=["latest","8a419f9b1a920375f8112c9b7477d42bbd82b6c9"]' ++ local timestamp_val=1776295102 ++ '[' false '!=' true ']' ++ echo '["latest","8a419f9b1a920375f8112c9b7477d42bbd82b6c9"]' ++ return + oldTags='["latest","8a419f9b1a920375f8112c9b7477d42bbd82b6c9"]' ++ jq length + '[' 2 -gt 0 ']' + jq --argjson i 0 --argjson updatedTags '["latest","8a419f9b1a920375f8112c9b7477d42bbd82b6c9"]' '.components[$i].tags = $updatedTags' /var/workdir/release/73a7398d-e21e-4159-adb1-64e80c630018/snapshot_spec.json + mv /tmp/temp /var/workdir/release/73a7398d-e21e-4159-adb1-64e80c630018/snapshot_spec.json + [[ quay.io/rhtap_qe/default-managed-tenant-syc5c/default-managed-tenant-syc5c-91415c/tsf-demo-comp == quay.io/redhat-prod/* ]] + [[ quay.io/rhtap_qe/default-managed-tenant-syc5c/default-managed-tenant-syc5c-91415c/tsf-demo-comp == quay.io/redhat-pending/* ]] + [[ quay.io/rhtap_qe/default-managed-tenant-syc5c/default-managed-tenant-syc5c-91415c/tsf-demo-comp == registry.redhat.io/* ]] + [[ quay.io/rhtap_qe/default-managed-tenant-syc5c/default-managed-tenant-syc5c-91415c/tsf-demo-comp == registry.stage.redhat.io/* ]] ++ jq 'has("repositories")' + [[ false == \f\a\l\s\e ]] + jq --argjson i 0 --arg url quay.io/rhtap_qe/default-managed-tenant-syc5c/default-managed-tenant-syc5c-91415c/tsf-demo-comp --argjson tags '["latest","8a419f9b1a920375f8112c9b7477d42bbd82b6c9"]' '.components[$i].repositories[0].url = $url | .components[$i].repositories[0]["tags"] = $tags' /var/workdir/release/73a7398d-e21e-4159-adb1-64e80c630018/snapshot_spec.json + mv /tmp/temp /var/workdir/release/73a7398d-e21e-4159-adb1-64e80c630018/snapshot_spec.json ++ jq '.repositories | length' + NUM_REPOSITORIES=0 + (( j = 0 )) + (( j < NUM_REPOSITORIES )) + (( i++ )) + (( i < NUM_MAPPED_COMPONENTS ))