]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
do not clone ceph-build to use build_utils.sh; use !include-raw
authorAndrew Schoen <aschoen@redhat.com>
Thu, 12 Nov 2015 20:54:19 +0000 (14:54 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 12 Nov 2015 20:54:19 +0000 (14:54 -0600)
This also includes a few small fixes related to using build_utils

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-build/build/setup
ceph-build/config/definitions/ceph-build.yml
ceph-deploy/build/setup
ceph-deploy/config/definitions/ceph-deploy.yml
ceph-release-rpm/build/build
ceph-release-rpm/config/definitions/ceph-release-rpm.yml
scripts/build_utils.sh

index 4f0fb54894846e2603434950cf0bb6be1a3acde9..6d7f646b3e31015e2d9a8b589302717a56d95e51 100644 (file)
@@ -66,9 +66,8 @@ CentOS|Fedora|SUSE*|RedHatEnterpriseServer)
         ;;
 esac
 
-source $WORKSPACE/ceph-build/scripts/build_utils.sh
-
-install_python_packages "chacractl>=0.0.4"
+pkgs=( "chacractl>=0.0.4" )
+install_python_packages "pkgs[@]"
 
 # create the .chacractl config file using global variables
 make_chacractl_config
index 74385dc3f8dde00b0f01ac749e14580d801a8a8b..b23ffd6df241aa1f652158d69ed621a0580e569e 100644 (file)
@@ -36,7 +36,9 @@
           filter: 'dist/**'
           which-build: last-successful
       - shell:
-          !include-raw ../../build/setup
+          !include-raw:
+            - ../../../scripts/build_utils.sh
+            - ../../build/setup
       - shell:
           !include-raw ../../build/setup_pbuilder
       - shell:
       - shell:
           !include-raw ../../build/build_rpm
 
-    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"
-
     publishers:
       - archive:
           artifacts: 'dist/**'
index e5e789dca6befb155643ab8a92216a65fedd01b9..87e1aa004a02c677f51ff66458b9684cd0923f05 100644 (file)
@@ -17,9 +17,8 @@ if test -f /etc/redhat-release ; then
     sudo yum install -y $rpm_deps
 fi
 
-source $WORKSPACE/ceph-build/scripts/build_utils.sh
-
-install_python_packages "chacractl>=0.0.4"
+pkgs=( "chacractl>=0.0.4" )
+install_python_packages "pkgs[@]"
 
 # create the .chacractl config file using global variables
 make_chacractl_config
index 02651149b5de7f5ddc982ea4e7dceeb2f7bd2473..7d9e4a568f3f2675f60b435116a4a70d4262a3b4 100644 (file)
@@ -1,26 +1,3 @@
-- 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
@@ -57,8 +34,14 @@ 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:
-      - ceph-deploy
-      - ceph-build
+      - git:
+          url: https://github.com/ceph/ceph-deploy.git
+          branches:
+            - $BRANCH
+          browser: auto
+          skip-tag: true
+          timeout: 20
+          wipe-workspace: true
 
     axes:
       - axis:
@@ -78,7 +61,10 @@ If this is checked, then the binaries will be built and pushed to chacra even if
             - centos7
 
     builders:
-      - shell: !include-raw ../../build/setup
+      - shell:
+            !include-raw:
+              - ../../../scripts/build_utils.sh
+              - ../../build/setup
       - shell: !include-raw ../../build/build
 
     wrappers:
index 881e0e383cffdd9dd8757c79441cf417ad815b54..0479a5384a1904ce84b87666c66c8c4271e7103e 100644 (file)
@@ -12,9 +12,8 @@ echo "Building on Host: $(hostname) Date: $(date)"
 rm -rf dist
 rm -rf RPMBUILD
 
-source $WORKSPACE/ceph-build/scripts/build_utils.sh
-
-install_python_packages "chacractl>=0.0.4"
+pkgs=( "chacractl>=0.0.4" )
+install_python_packages "pkgs[@]"
 
 # create the .chacractl config file using global variables
 make_chacractl_config
index 1042ab5e0bd1c92d0bce3f3a48a12911dda1311e..da17823a7f97788a08edcffbca3ac02670334a8a 100644 (file)
@@ -25,15 +25,6 @@ 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-build.git
-          browser-url: https://github.com/ceph/ceph-build
-          timeout: 20
-          skip-tag: true
-          wipe-workspace: true
-          basedir: "ceph-build"
-
     axes:
       - axis:
           type: label-expression
@@ -50,7 +41,9 @@ If this is checked, then the binaries will be built and pushed to chacra even if
 
     builders:
       - shell:
-          !include-raw ../../build/build
+          !include-raw:
+            - ../../../scripts/build_utils.sh
+            - ../../build/build
 
     wrappers:
       - inject-passwords:
index 142b9ab68cbc9b51ded12746bcb2b1bd811b39a9..17a9aae4da1e1a65dbed6ec76af26aca158383df 100644 (file)
@@ -6,14 +6,13 @@ VENV="$WORKSPACE/venv/bin"
 
 install_python_packages () {
     # Use this function to create a virtualenv and install
-    # python packages. Pass either a single package name or a list
-    # of package names. Usage:
+    # python packages. Pass a list of package names.
     #
-    #   install_python_packages "ansible"
+    # Usage:
     #
     #   to_install=( "ansible" "chacractl>=0.0.4" )
     #   install_python_packages "to_install[@]" 
-    #
+
     # Create the virtualenv
     virtualenv $WORKSPACE/venv
 
@@ -32,10 +31,10 @@ install_python_packages () {
 }
 
 make_chacractl_config () {
-    # create the .chacractl config file
-    cat > $HOME/.chacractl << EOF
-    url = "$CHACRACTL_URL"
-    user = "$CHACRACTL_USER"
-    key = "$CHACRACTL_KEY"
-    EOF
+# create the .chacractl config file
+cat > $HOME/.chacractl << EOF
+url = "$CHACRACTL_URL"
+user = "$CHACRACTL_USER"
+key = "$CHACRACTL_KEY"
+EOF
 }