]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-pipeline: Do not require SHA1 property 2431/head
authorZack Cerza <zack@cerza.org>
Thu, 21 Aug 2025 22:48:42 +0000 (16:48 -0600)
committerZack Cerza <zack@cerza.org>
Tue, 26 Aug 2025 00:07:48 +0000 (18:07 -0600)
dd70a303 inadvertently made the SHA1 property mandatory; correct that.

Fixes: https://tracker.ceph.com/issues/72693
Signed-off-by: Zack Cerza <zack@cerza.org>
ceph-dev-pipeline/build/Jenkinsfile

index 196be2c181b5979d33f9ec15c038db3ebb4d37fd..6406da6f54b8ffe3f8cb9f7e3737851630d2e747 100644 (file)
@@ -269,6 +269,8 @@ pipeline {
                 sha1_from_artifact = sha1_props.SHA1.trim().toLowerCase()
                 if ( env.SHA1 && sha1_from_artifact != sha1_trimmed ) {
                   error message: "SHA1 from artifact (${sha1_from_artifact}) does not match parameter value (${sha1_trimmed})"
+                } else if ( ! env.SHA1 ) {
+                  env.SHA1 = sha1_from_artifact
                 }
                 println "SHA1=${sha1_trimmed}"
                 env.VERSION = readFile(file: "${WORKSPACE}/dist/version").trim()