When we pass the CEPH_BRANCH from ceph-dev-build, it contains
origin/<branch>, we need to strip out the remote from the CEPH_BRANCH
before we can use it.
Also set BRANCH to SAMBA_BRANCH since we use BRANCH to post to chacra.
Signed-off-by: Boris Ranto <branto@redhat.com>
pkgs=( "chacractl>=0.0.4" )
install_python_packages "pkgs[@]"
+SAMBA_BRANCH=$(branch_slash_filter $SAMBA_BRANCH)
+CEPH_BRANCH=$(branch_slash_filter $CEPH_BRANCH)
+BRANCH=${SAMBA_BRANCH}
+
# ask shaman which chacra instance to use
chacra_url=`curl -f -u $SHAMAN_API_USER:$SHAMAN_API_KEY https://shaman.ceph.com/api/nodes/next/`
# create the .chacractl config file using global variables
# Use the SSH key attached to the ceph-jenkins GitHub account.
credentials-id: '39fa150b-b2a1-416e-b334-29a9a2c0b32d'
branches:
- - $BRANCH
+ - $SAMBA_BRANCH
skip-tag: true
wipe-workspace: true