allOf {
expression { env.DISTROS.contains(env.DIST) }
expression { env.ARCHS.contains(env.ARCH) }
+ anyOf {
+ environment name: "CI_COMPILE", value: "true"
+ allOf {
+ environment name: "CI_CONTAINER", value: "true"
+ environment name: "DIST", value: "centos9"
+ }
+ }
}
}
axes {
}
stage("copy artifacts") {
steps {
+ script {
+ if ( env.CI_COMPILE == "true" ) {
+ env.ARTIFACT_FILTER = "dist/**"
+ } else {
+ env.ARTIFACT_FILTER = "dist/sha1,dist/version,dist/other_envvars,dist/ceph_*.orig.tar.gz"
+ }
+ }
copyArtifacts(
projectName: "ceph-dev-new-setup",
selector: specific(buildNumber: env.SETUP_BUILD_ID),
- filter: "dist/sha1,dist/version,dist/other_envvars,dist/ceph_*.orig.tar.gz",
+ filter: env.ARTIFACT_FILTER,
)
script {
def sha1_props = readProperties file: "${WORKSPACE}/dist/sha1"
. ./scripts/build_utils.sh
. ./scripts/setup_sccache.sh
. ./ceph-dev-new-build/build/setup_rpm
- [ "$CI_BUILD" = "true" ] || exit 0
+ [ "$CI_COMPILE" = "true" ] || exit 0
reset_sccache
. ./ceph-dev-new-build/build/build_rpm
"""
ready=false
while ((loop < 15)); do
curl -s "https://shaman.ceph.com/api/search/?project=ceph&distros=centos/${RELEASE}/${ARCH}&sha1=${SHA1}&ref=${BRANCH}&flavor=${FLAVOR}" > shaman.status
- if [[ ($(jq -r '.[0].extra.build_url' < shaman.status) == ${BUILD_URL}) && ($(jq -r '.[0].status' < shaman.status) == 'ready') ]] ; then ready=true; break; fi
+ if [[ ($(jq -r '.[0].status' < shaman.status) == 'ready') ]]; then
+ # If we skipped compilation, we will not have generated a shaman build,
+ # so skip validating against extra.build_url
+ if [[ ${CI_COMPILE:-true} == "false" ]]; then
+ ready=true
+ break
+ elif [[ ($(jq -r '.[0].extra.build_url' < shaman.status) == ${BUILD_URL}) ]]; then
+ ready=true
+ break
+ fi
+ fi
((loop = loop + 1))
sleep 60
done