This logic was chosen to preserve the logic the THROWAWAY parameter
provides regardless of package repository choice.
Signed-off-by: David Galloway <david.galloway@ibm.com>
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
- 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:
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"
- 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