+++ /dev/null
-#!/bin/bash
-
-# the following two methods exist in scripts/build_utils.sh
-pkgs=( "pytest" "pytest-coverage" )
-install_python_packages "pkgs[@]"
-
-
-# run py.test, output both junit from unit tests and coverage report (should
-# spit out a coverage.xml file)
-cd $WORKSPACE
-$VENV/python setup.py develop
-$VENV/py.test -v --junitxml junit.xml --cov-report xml --cov ceph_installer ceph_installer/tests
+++ /dev/null
-- job:
- name: ceph-installer-coverage
- node: small && (trusty || centos)
- project-type: freestyle
- defaults: global
- display-name: 'ceph-installer: coverage'
- quiet-period: 5
- block-downstream: false
- block-upstream: false
- retry-count: 3
- properties:
- - github:
- url: https://github.com/ceph/ceph-installer
- logrotate:
- daysToKeep: -1
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
- triggers:
- - github
-
- scm:
- - git:
- url: https://github.com/ceph/ceph-installer
- branches:
- - master
- browser: auto
- skip-tag: true
- timeout: 20
-
- builders:
- - shell:
- !include-raw:
- - ../../../scripts/build_utils.sh
- - ../../build/build
-
- publishers:
- - cobertura:
- results: coverage.xml
- only-stable: "true"
- fail-no-reports: "true"
- targets:
- - method:
- healthy: 50
- - junit:
- results: junit.xml
+++ /dev/null
-#!/bin/bash
-
-# the following two methods exist in scripts/build_utils.sh
-pkgs=( "tox" )
-install_python_packages "pkgs[@]"
-
-# create the docs build with tox
-$VENV/tox -rv -e docs
+++ /dev/null
-- job:
- name: ceph-installer-docs-pull-requests
- node: small && (centos7 || trusty)
- project-type: freestyle
- defaults: global
- display-name: 'ceph-installer: docs pull requests'
- quiet-period: 5
- block-downstream: false
- block-upstream: false
- retry-count: 3
- properties:
- - github:
- url: https://github.com/ceph/ceph-installer
- logrotate:
- daysToKeep: -1
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
- parameters:
- - string:
- name: sha1
- description: "A pull request ID, like 'origin/pr/72/head'"
-
- triggers:
- - github-pull-request:
- allow-whitelist-orgs-as-admins: true
- org-list:
- - ceph
- trigger-phrase: ''
- only-trigger-phrase: false
- github-hooks: true
- permit-all: true
- auto-close-on-fail: false
- status-context: "Docs"
- started-status: "checking if docs build"
- success-status: "docs built successfully "
- failure-status: "docs could not build correctly"
-
- scm:
- - git:
- url: https://github.com/ceph/ceph-installer
- branches:
- - master
- browser: auto
- skip-tag: true
- timeout: 20
-
- builders:
- - shell:
- !include-raw:
- - ../../../scripts/build_utils.sh
- - ../../build/build
+++ /dev/null
-#!/bin/bash
-
-# the following two methods exist in scripts/build_utils.sh
-pkgs=( "tox" )
-install_python_packages "pkgs[@]"
-
-
-# create the docs build with tox
-$VENV/tox -rv -e docs
-
-# publish docs to http://docs.ceph.com/docs/ceph-installer
-rsync -auv --delete .tox/docs/tmp/html/* /var/ceph-installer/docs/
+++ /dev/null
-- job:
- name: ceph-installer-docs
- node: docs
- project-type: freestyle
- defaults: global
- display-name: 'ceph-installer: docs build'
- quiet-period: 5
- block-downstream: false
- block-upstream: false
- retry-count: 3
- properties:
- - github:
- url: https://github.com/ceph/ceph-installer
- logrotate:
- daysToKeep: -1
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
- triggers:
- - github
-
- scm:
- - git:
- url: https://github.com/ceph/ceph-installer
- branches:
- - master
- browser: auto
- skip-tag: true
- timeout: 20
-
- builders:
- - shell:
- !include-raw:
- - ../../../scripts/build_utils.sh
- - ../../build/build
+++ /dev/null
-#!/bin/bash
-
-# the following two methods exist in scripts/build_utils.sh
-pkgs=( "tox" )
-install_python_packages "pkgs[@]"
-
-$VENV/tox -rv
+++ /dev/null
-- job:
- name: ceph-installer-pull-requests
- description: Unit-test the ceph-installer for each GitHub PR
- project-type: freestyle
- node: trusty && small
- block-downstream: false
- block-upstream: false
- defaults: global
- display-name: 'ceph-installer: Pull Requests'
- quiet-period: 5
- retry-count: 3
-
- logrotate:
- daysToKeep: 15
- numToKeep: 30
- artifactDaysToKeep: 15
- artifactNumToKeep: 15
-
- properties:
- - github:
- url: https://github.com/ceph/ceph-installer/
-
- parameters:
- - string:
- name: sha1
- description: "A pull request ID, like 'origin/pr/72/head'"
-
- triggers:
- - github-pull-request:
- admin-list:
- - alfredodeza
- - dmick
- - ktdreyer
- - andrewschoen
- org-list:
- - ceph
- only-trigger-phrase: false
- github-hooks: true
- permit-all: false
- auto-close-on-fail: false
-
- scm:
- - git:
- url: https://github.com/ceph/ceph-installer
- branches:
- - ${sha1}
- refspec: +refs/pull/*:refs/remotes/origin/pr/*
- browser: auto
- timeout: 20
- skip-tag: true
- wipe-workspace: true
-
- builders:
- - shell:
- !include-raw:
- - ../../../scripts/build_utils.sh
- - ../../build/build
+++ /dev/null
-#!/bin/bash
-
-set -ex
-
-# Sanity-check:
-[ -z "$GIT_BRANCH" ] && echo Missing GIT_BRANCH variable && exit 1
-[ -z "$JOB_NAME" ] && echo Missing JOB_NAME variable && exit 1
-
-# Strip "-rpm" off the job name to get our package's name
-PACKAGE=${JOB_NAME%-rpm}
-
-sudo yum -y install epel-release
-sudo yum -y install fedpkg mock
-
-# Add the Jenkins slave UID to the mock group.
-sudo usermod -a -G mock $(whoami)
-newgrp mock
-
-# Attempt the build. If it fails, print the mock logs to STDOUT.
-make rpm || ( tail -n +1 {root,build}.log && exit 1 )
-
-# Chacra time
-
-pkgs=( "chacractl>=0.0.4" )
-install_python_packages "pkgs[@]"
-
-# ask shaman which chacra instance to use
-chacra_url=`curl -u $SHAMAN_API_USER:$SHAMAN_API_KEY https://shaman.ceph.com/api/nodes/next/`
-# create the .chacractl config file using global variables
-make_chacractl_config $chacra_url
-
-BRANCH=`branch_slash_filter $GIT_BRANCH`
-
-## Upload the created RPMs to chacra
-chacra_endpoint="${PACKAGE}/${BRANCH}/${GIT_COMMIT}/centos/7"
-
-[ "$FORCE" = true ] && chacra_flags="--force" || chacra_flags=""
-
-# push binaries to chacra
-ls *.rpm | $VENV/chacractl binary ${chacra_flags} create ${chacra_endpoint}/noarch/
-
-# start repo creation
-$VENV/chacractl repo update ${chacra_endpoint}
-
-echo Check the status of the repo at: https://shaman.ceph.com/api/repos/${chacra_endpoint}
+++ /dev/null
-- job:
- name: ceph-installer-rpm
- node: 'centos7 && x86_64 && small && !sepia'
- project-type: freestyle
- defaults: global
- disabled: false
- display-name: 'ceph-installer: RPMs'
- description: 'Build RPMs for every ceph-installer Git branch'
- concurrent: true
- quiet-period: 5
- block-downstream: false
- block-upstream: false
- retry-count: 3
- properties:
- - github:
- url: https://github.com/ceph/ceph-installer
- discard-old-builds: true
- logrotate:
- daysToKeep: 1
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
- triggers:
- - github
-
- scm:
- - git:
- url: https://github.com/ceph/ceph-installer
- browser: auto
- skip-tag: true
- timeout: 20
- wipe-workspace: true
-
- builders:
- - shell:
- !include-raw:
- - ../../../scripts/build_utils.sh
- - ../../build/build
-
- wrappers:
- - inject-passwords:
- global: true
- mask-password-params: true
+++ /dev/null
-# the following two methods exist in scripts/build_utils.sh
-pkgs=( "tox" )
-install_python_packages "pkgs[@]"
-
-WORKDIR=$(mktemp -td tox.XXXXXXXXXX)
-
-cd $WORKSPACE/tests/functional
-
-delete_libvirt_vms
-clear_libvirt_networks
-restart_libvirt_services
-
-INSTALLER_DEV_BRANCH=$INSTALLER_BRANCH CEPH_ANSIBLE_DEV_BRANCH=$CEPH_ANSIBLE_BRANCH $VENV/tox -rv -e=$SCENARIO --workdir=$WORKDIR -- --provider=libvirt
+++ /dev/null
-- project:
- name: ceph-installer-tests
- scenario:
- - ansible2.2-nightly_centos7
- - ansible2.2-nightly_xenial
- jobs:
- - 'ceph-installer-tests-{scenario}'
-
-- job-template:
- name: 'ceph-installer-tests-{scenario}'
- node: vagrant && libvirt
- project-type: freestyle
- defaults: global
- display-name: 'ceph-installer: Tests [{scenario}]'
- quiet-period: 5
- block-downstream: false
- block-upstream: false
- retry-count: 3
- properties:
- - github:
- url: https://github.com/ceph/ceph-installer
- logrotate:
- daysToKeep: -1
- numToKeep: -1
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
- parameters:
- - string:
- name: INSTALLER_BRANCH
- description: "The ceph-installer branch (or tag) to test"
- default: master
-
- - string:
- name: CEPH_ANSIBLE_BRANCH
- description: "The ceph-ansible branch (or tag) to test"
- default: master
-
- triggers:
- - timed: '@daily'
-
- scm:
- - git:
- url: https://github.com/ceph/ceph-installer.git
- branches:
- - $INSTALLER_BRANCH
- browser: auto
- timeout: 20
-
- builders:
- - inject:
- properties-content: |
- SCENARIO={scenario}
- - shell:
- !include-raw-escape:
- - ../../../scripts/build_utils.sh
- - ../../build/build
-
- publishers:
- - email:
- recipients: aschoen@redhat.com adeza@redhat.com