]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
calamari-server-trusty: Upload the packages to chacra 436/head
authorBoris Ranto <branto@redhat.com>
Tue, 23 Aug 2016 12:46:48 +0000 (14:46 +0200)
committerBoris Ranto <branto@redhat.com>
Tue, 23 Aug 2016 14:01:57 +0000 (16:01 +0200)
Signed-off-by: Boris Ranto <branto@redhat.com>
calamari-server-trusty/build/build
calamari-server-trusty/config/definitions/calamari-server-trusty.yml

index d1ca2ef5764898f600457b1bd166206bf02f9630..7e384e2d66cf3771551bcc41cc30e0e647abe2ec 100644 (file)
@@ -1,4 +1,11 @@
 set -e
+
+pkgs=( "chacractl>=0.0.4" )
+install_python_packages "pkgs[@]"
+
+# create the .chacractl config file using global variables
+make_chacractl_config
+
 echo "Building ${BRANCH}"
 rm -f ${WORKSPACE}/*.deb ${WORKSPACE}/calamari-repo-trusty.tar.gz
 cd ${WORKSPACE}/
@@ -19,3 +26,12 @@ cd $WORKSPACE
 rm -rf $BRANCH
 mkdir $BRANCH
 mv pkgs/*deb $BRANCH
+
+[ "$TEST" = true ] && chacra_ref="test" || chacra_ref="$BRANCH"
+DISTRO=`python -c "exec 'import platform; print platform.linux_distribution()[0].lower()'"`
+chacra_endpoint="calamari-server/${chacra_ref}/${GIT_COMMIT}/${DISTRO}/universal/all"
+
+[ "$FORCE" = true ] && chacra_flags="--force" || chacra_flags=""
+
+# push binaries to chacra
+find "$BRANCH" | grep 'deb$' | $VENV/chacractl binary ${chacra_flags} create ${chacra_endpoint}
index 5a23213256f0bd0f233f386c970e65d877fa298d..b782627fce129395659ed506ac4f5e337f8e1b8f 100644 (file)
@@ -2,7 +2,10 @@
     block-downstream: false
     block-upstream: false
     builders:
-    - shell: !include-raw ../../build/build
+    - shell:
+          !include-raw:
+            - ../../../scripts/build_utils.sh
+            - ../../build/build
     description: ''
     logrotate:
       artifactDaysToKeep: '-1'