- conditional-step:
condition-kind: shell
condition-command: |
- echo "${{GIT_BRANCH}}" | grep -v '\(reef\|squid\|tentacle\|centos9-only\|crimson-only\|jaeger\)'
+ echo "${{GIT_BRANCH}}" | grep -v '\(reef\|squid\|tentacle\|centos9-only\|crimson-only\)'
on-evaluation-failure: dont-run
steps:
- shell:
DISTROS=centos9
FLAVOR=crimson-debug
ARCHS=x86_64
- # build only centos9, no crimson, no jaeger
+ # build only centos9, no crimson
- conditional-step:
condition-kind: regex-match
regex: .*centos9-only.*
DISTROS=centos9
FLAVOR=crimson-release
ARCHS=x86_64
- # Build jaegertracing branch on needed env, don't waste resources on the default one.
- # Useful for testing specific builds failure
- # default: focal, centos8
- - conditional-step:
- condition-kind: regex-match
- regex: .*jaeger.*
- label: '${{GIT_BRANCH}}'
- on-evaluation-failure: dont-run
- steps:
- - shell:
- !include-raw-verbatim:
- - ../../../scripts/build_utils.sh
- - ../../build/notify
- - trigger-builds:
- - project: 'ceph-dev-new'
- predefined-parameters: |
- BRANCH=${{GIT_BRANCH}}
- FORCE=True
- DISTROS=centos8 focal
- FLAVOR=jaeger
- ARCHS=x86_64
# sccache
- conditional-step:
condition-kind: regex-match
- default
- crimson-debug
- crimson-release
- - jaeger
default: "default"
- description: "Type of Ceph build, choices are: crimson-debug, crimson-release, jaeger, default. Defaults to: 'default'"
+ description: "Type of Ceph build, choices are: crimson-debug, crimson-release, default. Defaults to: 'default'"
- string:
name: CI_CONTAINER
- default
- crimson-debug
- crimson-release
- - jaeger
default: "default"
- description: "Type of Ceph build, choices are: crimson-debug, crimson-release, jaeger, default. Defaults to: 'default'"
+ description: "Type of Ceph build, choices are: crimson-debug, crimson-release, default. Defaults to: 'default'"
- bool:
name: CI_CONTAINER
env.CEPH_EXTRA_RPMBUILD_ARGS="--with crimson"
env.DEB_BUILD_PROFILES="pkg.ceph.crimson"
break
- case "jaeger":
- env.CEPH_EXTRA_RPMBUILD_ARGS="--with jaeger"
- env.DEB_BUILD_PROFILES="pkg.ceph.jaeger"
- break
default:
println "FLAVOR={env.FLAVOR} is invalid"
assert false
- default
- crimson-debug
- crimson-release
- - jaeger
- string:
name: CEPH_BUILD_BRANCH
CEPH_EXTRA_RPMBUILD_ARGS="--with crimson"
DEB_BUILD_PROFILES="pkg.ceph.crimson"
;;
- jaeger)
- CEPH_EXTRA_RPMBUILD_ARGS="--with jaeger"
- DEB_BUILD_PROFILES="pkg.ceph.jaeger"
- ;;
*)
echo "unknown FLAVOR: ${FLAVOR}" >&2
exit 1
sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec
- # enable more build depends required by build flavor(jaeger, crimson)
+ # enable more build depends required by build flavor(crimson)
case "${FLAVOR}" in
crimson-debug)
sed -i -e 's/%bcond_with crimson/%bcond_without crimson/g' $DIR/ceph.spec
crimson-release)
sed -i -e 's/%bcond_with crimson/%bcond_without crimson/g' $DIR/ceph.spec
;;
- jaeger)
- sed -i -e 's/%bcond_with jaeger/%bcond_without jaeger/g' $DIR/ceph.spec
- ;;
esac
# Make sure we have all the rpm macros installed and at the latest version