]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
use build_utils in the ceph-deploy job to install / configure chacractl
authorAndrew Schoen <aschoen@redhat.com>
Thu, 12 Nov 2015 17:57:08 +0000 (11:57 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 12 Nov 2015 17:57:08 +0000 (11:57 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-deploy/build/setup
ceph-deploy/config/definitions/ceph-deploy.yml

index 59a5c9481e1d7c2a92b0c65cfc4b7b4fcf9817a3..e5e789dca6befb155643ab8a92216a65fedd01b9 100644 (file)
@@ -17,24 +17,9 @@ if test -f /etc/redhat-release ; then
     sudo yum install -y $rpm_deps
 fi
 
-# Create the virtualenv
-virtualenv $WORKSPACE/venv
-VENV="$WORKSPACE/venv/bin"
-
-# Define and ensure the PIP cache
-PIP_SDIST_INDEX="$HOME/.cache/pip"
-mkdir -p $PIP_SDIST_INDEX
-
-CHACRACTL_VERSION="chacractl>=0.0.4"
-
-# download packages to the local pip cache
-$VENV/pip install --upgrade --exists-action=i --download="$PIP_SDIST_INDEX" $CHACRACTL_VERSION
-# install packages from the local pip cache, ignoring pypi
-$VENV/pip install --upgrade --exists-action=i --find-links="file://$PIP_SDIST_INDEX" --no-index $CHACRACTL_VERSION
-
-# create the .chacractl config file
-cat > $HOME/.chacractl << EOF
-url = "$CHACRACTL_URL"
-user = "$CHACRACTL_USER"
-key = "$CHACRACTL_KEY"
-EOF
+source $WORKSPACE/ceph-build/scripts/build_utils.sh
+
+install_python_packages "chacractl>=0.0.4"
+
+# create the .chacractl config file using global variables
+make_chacractl_config
index f664ad49c6ac1876e0e82133a1c0167f71764c36..02651149b5de7f5ddc982ea4e7dceeb2f7bd2473 100644 (file)
@@ -1,3 +1,26 @@
+- scm:
+    name: ceph-deploy
+    scm:
+      - git:
+          url: https://github.com/ceph/ceph-deploy.git
+          branches:
+            - $BRANCH
+          browser: auto
+          skip-tag: true
+          timeout: 20
+          wipe-workspace: true
+
+- scm:
+    name: ceph-build
+    scm:
+      - git:
+          url: https://github.com/ceph/ceph-build.git
+          browser-url: https://github.com/ceph/ceph-build
+          timeout: 20
+          skip-tag: true
+          wipe-workspace: true
+          basedir: "ceph-build"
+
 - job:
     name: ceph-deploy
     node: small && trusty
@@ -34,14 +57,8 @@ If this is unchecked, then then nothing is built or pushed if they already exist
 If this is checked, then the binaries will be built and pushed to chacra even if they already exist in chacra."
 
     scm:
-      - git:
-          url: https://github.com/ceph/ceph-deploy.git
-          branches:
-            - $BRANCH
-          browser: auto
-          skip-tag: true
-          timeout: 20
-          wipe-workspace: true
+      - ceph-deploy
+      - ceph-build
 
     axes:
       - axis: