From: David Galloway Date: Thu, 2 Jul 2026 13:54:24 +0000 (-0400) Subject: ceph-dev-pipeline: Add CHACRA_UPLOAD parameter X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9a8cd6b1863788dd62b3a9b4993765e2c8d9da76;p=ceph-build.git ceph-dev-pipeline: Add CHACRA_UPLOAD parameter This logic was chosen to preserve the logic the THROWAWAY parameter provides regardless of package repository choice. Signed-off-by: David Galloway --- diff --git a/ceph-dev-pipeline/build/Jenkinsfile b/ceph-dev-pipeline/build/Jenkinsfile index 4ee709091..005652af6 100644 --- a/ceph-dev-pipeline/build/Jenkinsfile +++ b/ceph-dev-pipeline/build/Jenkinsfile @@ -460,7 +460,7 @@ def doUploadPackagesStage() { export OS_VERSION="${os.version}" export OS_VERSION_NAME="${os.version_name}" export OS_PKG_TYPE="${os.pkg_type}" - if [ "${env.THROWAWAY}" != "true" ]; then ./scripts/chacra_upload.sh; fi + if [ "${env.THROWAWAY}" != "true" ] && [ "${env.CHACRA_UPLOAD}" == "true" ]; then ./scripts/chacra_upload.sh; fi """ sh """#!/bin/bash diff --git a/ceph-dev-pipeline/config/definitions/ceph-dev-pipeline.yml b/ceph-dev-pipeline/config/definitions/ceph-dev-pipeline.yml index c5a4d76fa..2d8ac62a7 100644 --- a/ceph-dev-pipeline/config/definitions/ceph-dev-pipeline.yml +++ b/ceph-dev-pipeline/config/definitions/ceph-dev-pipeline.yml @@ -56,7 +56,7 @@ - bool: name: THROWAWAY - description: "Whether to push any binaries to Chacra" + description: "Whether to push any binaries to Chacra or Pulp. Overrides CHACRA_UPLOAD and PULP_UPLOAD if either are true." default: false - bool: @@ -64,6 +64,11 @@ description: "Whether to push new binaries to Chacra if some are already present" default: false + - bool: + name: CHACRA_UPLOAD + description: "Whether to upload packages to Chacra" + default: true + - bool: name: PULP_UPLOAD description: "Whether to upload packages to Pulp" diff --git a/cve-pipeline/config/definitions/cve-pipeline.yml b/cve-pipeline/config/definitions/cve-pipeline.yml index 6f0491523..2ad5cd029 100644 --- a/cve-pipeline/config/definitions/cve-pipeline.yml +++ b/cve-pipeline/config/definitions/cve-pipeline.yml @@ -69,8 +69,13 @@ - bool: name: THROWAWAY - description: "DO NOT UNCHECK. This will push to a chacra node publicly!" - default: true + description: "Whether to push any binaries to Chacra or Pulp. Overrides CHACRA_UPLOAD and PULP_UPLOAD if either are true." + default: false + + - bool: + name: CHACRA_UPLOAD + description: "DO NOT CHECK" + default: false - bool: name: PULP_UPLOAD