]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
kernel: upload binaries to a dev chacra instance 553/head
authorAndrew Schoen <aschoen@redhat.com>
Fri, 18 Nov 2016 17:22:56 +0000 (11:22 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Fri, 18 Nov 2016 17:22:56 +0000 (11:22 -0600)
The chacra instances are now configured to always keep
a build for the 'testing' ref, so it should be safe
to store these in the dev chacra instances now.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
kernel/build/build_deb
kernel/build/build_rpm
kernel/build/setup

index 8bb1cce222364bd196641a06c736389332c05688..c9a0641a22ea0c526282b69afd6a04b95b43b65c 100644 (file)
@@ -112,7 +112,7 @@ if [ "$THROWAWAY" = false ] ; then
 }
 EOF
     # post the json to repo-extra json to chacra
-    curl -X POST -H "Content-Type:application/json" --data "@$WORKSPACE/repo-extra.json" -u $CHACRACTL_USER:$CHACRACTL_KEY https://chacra.ceph.com/repos/${chacra_endpoint}/extra/
+    curl -X POST -H "Content-Type:application/json" --data "@$WORKSPACE/repo-extra.json" -u $CHACRACTL_USER:$CHACRACTL_KEY ${chacra_url}repos/${chacra_endpoint}/extra/
 
     # start repo creation
     $VENV/chacractl repo update ${chacra_endpoint}
index 4eee5052adad2ba353a48607a2e5bf77add976ab..2f8df569801969872594a07c50da2d4529807b70 100644 (file)
@@ -97,7 +97,7 @@ if [ "$THROWAWAY" = false ] ; then
 }
 EOF
     # post the json to repo-extra json to chacra
-    curl -X POST -H "Content-Type:application/json" --data "@$WORKSPACE/repo-extra.json" -u $CHACRACTL_USER:$CHACRACTL_KEY https://chacra.ceph.com/repos/${chacra_endpoint}/extra/
+    curl -X POST -H "Content-Type:application/json" --data "@$WORKSPACE/repo-extra.json" -u $CHACRACTL_USER:$CHACRACTL_KEY ${chacra_url}repos/${chacra_endpoint}/extra/
 
     # start repo creation
     $VENV/chacractl repo update ${chacra_endpoint}
index cb14cd2c2cc19741421609b92fe0fd520db618e5..f668910ab200160db2182829847de60f7a14bc0f 100644 (file)
@@ -56,7 +56,9 @@ esac
 pkgs=( "chacractl>=0.0.4" )
 install_python_packages "pkgs[@]"
 
-make_chacractl_config
+# ask shaman which chacra instance to use
+chacra_url=`curl -u $SHAMAN_API_USER:$SHAMAN_API_KEY https://shaman.ceph.com/api/nodes/next/`
+make_chacractl_config $chacra_url
 
 # Make sure we execute at the top level directory
 cd "$WORKSPACE"