;;
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
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/**'
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
-- 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
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:
- centos7
builders:
- - shell: !include-raw ../../build/setup
+ - shell:
+ !include-raw:
+ - ../../../scripts/build_utils.sh
+ - ../../build/setup
- shell: !include-raw ../../build/build
wrappers:
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
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
builders:
- shell:
- !include-raw ../../build/build
+ !include-raw:
+ - ../../../scripts/build_utils.sh
+ - ../../build/build
wrappers:
- inject-passwords:
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
}
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
}