Skip to content

Conversation

@lemeurherve
Copy link
Member

This PR adds a condition to check if all architectures are available before opening a pull request to avoid premature builds.

Note: cf jenkinsci/docker-ssh-agent#570 (comment) similar checks should be added to rhel9, but for that I need to introduce a UBI9_VERSION argument first so it can be catched more easily by updatecli:

FROM registry.access.redhat.com/ubi9/ubi:9.6-1760340943 AS jre-build

Refs:

Testing done

$ updatecli diff --config ./updatecli/updatecli.d/debian.yaml --values updatecli/values.github-action.yaml 
+++++++++++
+ PREPARE +
+++++++++++

Loading Pipeline "./updatecli/updatecli.d/debian.yaml"

SCM repository retrieved: 1


++++++++++++++++++
+ AUTO DISCOVERY +
++++++++++++++++++



++++++++++++
+ PIPELINE +
++++++++++++



##############################
# BUMP DEBIAN TRIXIE VERSION #
##############################

source: source#trixieLatestVersion
--------------------------

Searching for version matching pattern "trixie-\\d+$"
✔ Docker Image Tag "trixie-20251103" found matching pattern "trixie-\\d+$"
[transformers]
✔ Result correctly transformed from "trixie-20251103" to "20251103"

condition: condition#testDockerfileArg
---------------------------
✔ Line "ARG TRIXIE_TAG=20251020" found, matching the keyword "ARG" and the matcher "TRIXIE_TAG".
✔ Line "ARG TRIXIE_TAG=20251020" found, matching the keyword "ARG" and the matcher "TRIXIE_TAG".
✔ key map["keyword":"ARG" "matcher":"TRIXIE_TAG"] found in Dockerfile "debian/trixie/hotspot/Dockerfile", key map["keyword":"ARG" "matcher":"TRIXIE_TAG"] found in Dockerfile "debian/trixie-slim/hotspot/Dockerfile"

condition: condition#testVersionInBakeFile
-------------------------------
✔ Content of the file "docker-bake.hcl" matched the pattern "(.*TRIXIE_TAG.*)"
✔ condition on file ["docker-bake.hcl"] passed

target: target#updateDockerfile
-----------------------

**Dry Run enabled**

⚠ The line #1, matched by the keyword "ARG" and the matcher "TRIXIE_TAG", is changed from "ARG TRIXIE_TAG=20251020" to "ARG TRIXIE_TAG=20251103".
⚠ The line #1, matched by the keyword "ARG" and the matcher "TRIXIE_TAG", is changed from "ARG TRIXIE_TAG=20251020" to "ARG TRIXIE_TAG=20251103".
⚠ - changed lines [1] of file "/var/folders/tp/wg7m13056jjgb2z1_jv07j1r0000gn/T/updatecli/github/jenkinsci/docker/debian/trixie/hotspot/Dockerfile", changed lines [1] of file "/var/folders/tp/wg7m13056jjgb2z1_jv07j1r0000gn/T/updatecli/github/jenkinsci/docker/debian/trixie-slim/hotspot/Dockerfile"

target: target#updateDockerBake
-----------------------

**Dry Run enabled**

"docker-bake.hcl" updated with [dry run] content "variable${1}\"TRIXIE_TAG\"${2}{${3}${4}${5}default${6}= \"20251103\""

--- docker-bake.hcl
+++ docker-bake.hcl
@@ -95,7 +95,7 @@
}

variable "TRIXIE_TAG" {

  • default = "20251020"
  • default = "20251103"
    }

---- user-defined functions ----


⚠ - 1 file(s) updated with "variable${1}\"TRIXIE_TAG\"${2}{${3}${4}${5}default${6}= \"20251103\"":
        * docker-bake.hcl


ACTIONS
========


Bump Debian Trixie version
  => Bump Debian Trixie version to 20251103

[Dry Run] An action of kind "github/pullrequest" is expected.

=============================

SUMMARY:



⚠ Bump Debian Trixie version:
        Source:
                ✔ [trixieLatestVersion] Get the latest Debian Trixie Linux version
        Condition:
                ✔ [testDockerfileArg] Does the Dockerfile have an ARG instruction for the Debian Trixie & Trixie Slim Linux version?
                ✔ [testVersionInBakeFile] Does the bake file have variable TRIXIE_TAG
        Target:
                ⚠ [updateDockerBake] Update the value of the base image (ARG TRIXIE_TAG) in the docker-bake.hcl
                ⚠ [updateDockerfile] Update the value of the base image (ARG TRIXIE_TAG) in the Dockerfiles


Run Summary
===========
Pipeline(s) run:
  * Changed:    1
  * Failed:     0
  * Skipped:    0
  * Succeeded:  0
  * Total:      1

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

@lemeurherve lemeurherve force-pushed the sshagent570-check-platform-ability branch from 97a18b3 to f6a5b9f Compare November 4, 2025 18:54
@MarkEWaite MarkEWaite merged commit e76375d into jenkinsci:master Nov 5, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants