--- /dev/null
+#!/bin/bash
+
+set -e
+set -x
+
+function generate_filelist(){
+ if [[ "$pull_request_id" -eq "" || "${ghprbCommentBody:-}" = "jenkins flake8 all" ]]
+ then
+ find . -name '*.py'
+ else
+ curl -XGET "https://api.github.com/repos/ceph/ceph-container/pulls/$pull_request_id/files" |
+ jq '.[].filename' | # just the files please
+ tr -d '"' | # remove the quoting from JSON
+ grep ".py$" # just the python
+ fi
+
+}
+
+function check(){
+ local file
+ while read -r filename; do
+ pushd "$(dirname "$filename")"
+ file=$(basename "$filename")
+ sudo docker run --rm -v "$(pwd)"/"$file":/"$file" eeacms/flake8 /"$file"
+ popd
+ done
+ return $?
+}
+
+function main() {
+ # install some of our dependencies if running on a jenkins slave
+ if [[ -n "$HUDSON_URL" ]]
+ then
+ sudo yum -y install epel-release
+ sudo yum -y install docker jq
+ sudo systemctl start docker
+ pull_request_id=${ghprbPullId:-$2}
+ workspace=${WORKSPACE:-$1}
+ else
+ if ! command -v docker || ! command -v jq
+ then
+ echo "docker or jq is/are missing, install it/them"
+ exit 1
+ fi
+ pull_request_id=${ghprbPullId:-$2}
+ workspace=${WORKSPACE:-$1}
+ fi
+
+
+ pushd "$workspace/ceph-container"
+ generate_filelist | check
+ popd
+ exit $?
+}
+
+main "$@"
--- /dev/null
+2.jenkins.ceph.com
--- /dev/null
+- scm:
+ name: ceph-container
+ scm:
+ - git:
+ url: https://github.com/ceph/ceph-container.git
+ branches:
+ - ${sha1}
+ refspec: +refs/pull/*:refs/remotes/origin/pr/*
+ browser: auto
+ timeout: 20
+ skip-tag: true
+ wipe-workspace: false
+ basedir: "ceph-container"
+
+- job:
+ name: ceph-container-flake8
+ node: small && centos7
+ defaults: global
+ display-name: 'ceph-container-flake8'
+ properties:
+ - github:
+ url: https://github.com/ceph/ceph-container/
+ logrotate:
+ daysToKeep: 15
+ numToKeep: 30
+ artifactDaysToKeep: -1
+ artifactNumToKeep: -1
+
+ parameters:
+ - string:
+ name: sha1
+ description: "A pull request ID, like 'origin/pr/72/head'"
+
+ triggers:
+ - github-pull-request:
+ admin-list:
+ - alfredodeza
+ - ktdreyer
+ - gmeno
+ - zcerza
+ org-list:
+ - ceph
+ trigger-phrase: 'jenkins flake8'
+ only-trigger-phrase: false
+ github-hooks: true
+ permit-all: true
+ auto-close-on-fail: false
+ status-context: "Testing: for sloppy python"
+ started-status: "Running: flake8"
+ success-status: "OK - nice work"
+ failure-status: "FAIL - please clean up for merge"
+
+ scm:
+ - ceph-container
+
+ builders:
+ - shell:
+ !include-raw:
+ - ../../build/build
+
--- /dev/null
+#!/bin/bash
+
+set -e
+set -x
+
+IGNORE_THESE_CODES="SC1091,SC2009,SC2001"
+IGNORE_THESE_FILES="variables_entrypoint.sh" # pipe-separated file names, e.g: foo|bar|foobar, this avoids shellcheck complaining that vars are not used (see: SC2034)
+
+function generate_filelist(){
+ if [[ "$pull_request_id" -eq "" || "${ghprbCommentBody:-}" = "jenkins lint all" ]]
+ then
+ find . -name '*.sh' | grep -vE "$IGNORE_THESE_FILES"
+ else
+ curl -XGET "https://api.github.com/repos/ceph/ceph-container/pulls/$pull_request_id/files" |
+ jq '.[].filename' | # just the files please
+ tr -d '"' | # remove the quoting from JSON
+ grep ".sh$" | # just the bash
+ grep -vE "$IGNORE_THESE_FILES"
+ fi
+
+}
+
+function check(){
+ local file
+ while read -r filename; do
+ pushd "$(dirname "$filename")"
+ file=$(basename "$filename")
+ sudo docker run -v "$(pwd)"/"$file":/"$file" koalaman/shellcheck --external-sources --exclude "$IGNORE_THESE_CODES" /"$file"
+ popd
+ done
+ return $?
+}
+
+function main() {
+ # install some of our dependencies if running on a jenkins slave
+ if [[ -n "$HUDSON_URL" ]]
+ then
+ sudo yum -y install epel-release
+ sudo yum -y install docker jq
+ sudo systemctl start docker
+ pull_request_id=${ghprbPullId:-$2}
+ workspace=${WORKSPACE:-$1}
+ else
+ if ! command -v docker || ! command -v jq
+ then
+ echo "docker or jq is/are missing, install it/them"
+ exit 1
+ fi
+ pull_request_id=${ghprbPullId:-$2}
+ workspace=${WORKSPACE:-$1}
+ fi
+
+
+ pushd "$workspace/ceph-container"
+ generate_filelist | check
+ popd
+ exit $?
+}
+
+main "$@"
--- /dev/null
+2.jenkins.ceph.com
--- /dev/null
+- scm:
+ name: ceph-container
+ scm:
+ - git:
+ url: https://github.com/ceph/ceph-container.git
+ branches:
+ - ${sha1}
+ refspec: +refs/pull/*:refs/remotes/origin/pr/*
+ browser: auto
+ timeout: 20
+ skip-tag: true
+ wipe-workspace: false
+ basedir: "ceph-container"
+
+- job:
+ name: ceph-container-lint
+ node: small && centos7
+ defaults: global
+ display-name: 'ceph-container-lint'
+ properties:
+ - github:
+ url: https://github.com/ceph/ceph-container/
+ logrotate:
+ daysToKeep: 15
+ numToKeep: 30
+ artifactDaysToKeep: -1
+ artifactNumToKeep: -1
+
+ parameters:
+ - string:
+ name: sha1
+ description: "A pull request ID, like 'origin/pr/72/head'"
+
+ triggers:
+ - github-pull-request:
+ admin-list:
+ - alfredodeza
+ - ktdreyer
+ - gmeno
+ org-list:
+ - ceph
+ trigger-phrase: 'jenkins lint'
+ only-trigger-phrase: false
+ github-hooks: true
+ permit-all: true
+ auto-close-on-fail: false
+ status-context: "Testing: for sloppy bash"
+ started-status: "Running: shellchecker"
+ success-status: "OK - nice work"
+ failure-status: "FAIL - please clean up for merge"
+
+ scm:
+ - ceph-container
+
+ builders:
+ - shell:
+ !include-raw:
+ - ../../build/build
+
--- /dev/null
+#!/bin/bash
+
+# the following two methods exist in scripts/build_utils.sh
+pkgs=( "tox" )
+install_python_packages "pkgs[@]"
+
+# XXX this might not be needed
+source $VENV/activate
+
+WORKDIR=$(mktemp -td tox.XXXXXXXXXX)
+
+delete_libvirt_vms
+clear_libvirt_networks
+restart_libvirt_services
+update_vagrant_boxes
+
+if ! timeout 3h $VENV/tox -rv -e=$SCENARIO --workdir=$WORKDIR; then
+ echo "ERROR: Job didn't complete successfully or got stuck for more than 3h."
+ exit 1
+fi
--- /dev/null
+#!/bin/bash
+# There has to be a better way to do this than this script which just looks
+# for every Vagrantfile in scenarios and then just destroys whatever is left.
+
+cd $WORKSPACE/ceph-ansible/tests/functional
+
+scenarios=$(find . | grep Vagrantfile | xargs dirname)
+
+for scenario in $scenarios; do
+ cd $scenario
+ vagrant destroy -f
+ cd -
+done
--- /dev/null
+2.jenkins.ceph.com
--- /dev/null
+- project:
+ name: ceph-container-nightly
+ os:
+ - centos7
+ - xenial
+ ceph-version:
+ - jewel
+ - luminous
+ test:
+ - cluster
+ - bluestore_osds_container
+ - filestore_osds_container
+ jobs:
+ - 'ceph-container-nightly-ceph_ansible-{ceph-version}-{os}-{test}'
+
+- job-template:
+ name: 'ceph-container-nightly-ceph_ansible-{ceph-version}-{os}-{test}'
+ node: vagrant&&libvirt&¢os7
+ concurrent: true
+ defaults: global
+ display-name: 'ceph-container: Nightly tests [ceph_ansible-{ceph-version}-{os}-{test}]'
+ quiet-period: 5
+ block-downstream: false
+ block-upstream: false
+ retry-count: 3
+ properties:
+ - github:
+ url: https://github.com/ceph/ceph-container
+ logrotate:
+ daysToKeep: -1
+ numToKeep: -1
+ artifactDaysToKeep: -1
+ artifactNumToKeep: -1
+
+ parameters:
+ - string:
+ name: BRANCH
+ description: "A ceph-container branch to test"
+ default: master
+
+ triggers:
+ - timed: '@daily'
+
+ scm:
+ - git:
+ url: https://github.com/ceph/ceph-container.git
+ branches:
+ - ${{BRANCH}}
+ browser: auto
+ timeout: 20
+
+ builders:
+ - inject:
+ properties-content: |
+ SCENARIO=ceph_ansible-{ceph-version}-{os}-{test}
+ - shell:
+ !include-raw-escape:
+ - ../../../scripts/build_utils.sh
+ - ../../build/build
+
+ publishers:
+ - postbuildscript:
+ script-only-if-succeeded: False
+ script-only-if-failed: True
+ builders:
+ - shell: !include-raw ../../build/teardown
--- /dev/null
+#!/bin/bash
+
+# the following two methods exist in scripts/build_utils.sh
+pkgs=( "tox" )
+install_python_packages "pkgs[@]"
+
+# XXX this might not be needed
+source $VENV/activate
+
+WORKDIR=$(mktemp -td tox.XXXXXXXXXX)
+
+delete_libvirt_vms
+clear_libvirt_networks
+restart_libvirt_services
+update_vagrant_boxes
+
+if ! timeout 3h $VENV/tox -rv -e=$SCENARIO --workdir=$WORKDIR; then
+ echo "ERROR: Job didn't complete successfully or got stuck for more than 3h."
+ exit 1
+fi
--- /dev/null
+#!/bin/bash
+# There has to be a better way to do this than this script which just looks
+# for every Vagrantfile in scenarios and then just destroys whatever is left.
+
+cd $WORKSPACE/ceph-ansible/tests/functional
+
+scenarios=$(find . | grep Vagrantfile | xargs dirname)
+
+for scenario in $scenarios; do
+ cd $scenario
+ vagrant destroy -f
+ cd -
+done
--- /dev/null
+2.jenkins.ceph.com
--- /dev/null
+- project:
+ name: ceph-container-prs
+ os:
+ - centos7
+ - xenial
+ ceph-version:
+ - jewel
+ - luminous
+ test:
+ - cluster
+ - filestore_osds_container
+ - bluestore_osds_container
+ - docker_cluster_collocation
+ jobs:
+ - 'ceph-container-prs-ceph_ansible-{ceph-version}-{os}-{test}'
+
+
+- job-template:
+ name: 'ceph-container-prs-ceph_ansible-{ceph-version}-{os}-{test}'
+ node: vagrant&&libvirt&¢os7
+ concurrent: true
+ defaults: global
+ display-name: 'ceph-container: Pull Requests [ceph_ansible-{ceph-version}-{os}-{test}]'
+ quiet-period: 5
+ block-downstream: false
+ block-upstream: false
+ retry-count: 3
+ properties:
+ - github:
+ url: https://github.com/ceph/ceph-container
+ logrotate:
+ daysToKeep: 15
+ numToKeep: -1
+ artifactDaysToKeep: -1
+ artifactNumToKeep: -1
+
+ parameters:
+ - string:
+ name: sha1
+ description: "A pull request ID, like 'origin/pr/72/head'"
+
+ triggers:
+ - github-pull-request:
+ cancel-builds-on-update: true
+ allow-whitelist-orgs-as-admins: true
+ org-list:
+ - ceph
+ trigger-phrase: 'jenkins test ceph_ansible-{ceph-version}-{os}-{test}'
+ only-trigger-phrase: false
+ github-hooks: true
+ permit-all: true
+ auto-close-on-fail: false
+ status-context: "Testing: ceph_ansible-{ceph-version}-{os}-{test}"
+ started-status: "Running: ceph_ansible-{ceph-version}-{os}-{test}"
+ success-status: "OK - ceph_ansible-{ceph-version}-{os}-{test}"
+ failure-status: "FAIL - ceph_ansible-{ceph-version}-{os}-{test}"
+
+ scm:
+ - git:
+ url: https://github.com/ceph/ceph-container.git
+ branches:
+ - ${{sha1}}
+ refspec: +refs/pull/*:refs/remotes/origin/pr/*
+ browser: auto
+ timeout: 20
+ skip-tag: true
+ wipe-workspace: false
+
+ builders:
+ - inject:
+ properties-content: |
+ SCENARIO=ceph_ansible-{ceph-version}-{os}-{test}
+ - shell:
+ !include-raw-escape:
+ - ../../../scripts/build_utils.sh
+ - ../../build/build
+
+ publishers:
+ - postbuildscript:
+ script-only-if-succeeded: False
+ script-only-if-failed: True
+ builders:
+ - shell: !include-raw ../../build/teardown
+++ /dev/null
-#!/bin/bash
-
-set -e
-set -x
-
-function generate_filelist(){
- if [[ "$pull_request_id" -eq "" || "${ghprbCommentBody:-}" = "jenkins flake8 all" ]]
- then
- find . -name '*.py'
- else
- curl -XGET "https://api.github.com/repos/ceph/ceph-docker/pulls/$pull_request_id/files" |
- jq '.[].filename' | # just the files please
- tr -d '"' | # remove the quoting from JSON
- grep ".py$" # just the python
- fi
-
-}
-
-function check(){
- local file
- while read -r filename; do
- pushd "$(dirname "$filename")"
- file=$(basename "$filename")
- sudo docker run --rm -v "$(pwd)"/"$file":/"$file" eeacms/flake8 /"$file"
- popd
- done
- return $?
-}
-
-function main() {
- # install some of our dependencies if running on a jenkins slave
- if [[ -n "$HUDSON_URL" ]]
- then
- sudo yum -y install epel-release
- sudo yum -y install docker jq
- sudo systemctl start docker
- pull_request_id=${ghprbPullId:-$2}
- workspace=${WORKSPACE:-$1}
- else
- if ! command -v docker || ! command -v jq
- then
- echo "docker or jq is/are missing, install it/them"
- exit 1
- fi
- pull_request_id=${ghprbPullId:-$2}
- workspace=${WORKSPACE:-$1}
- fi
-
-
- pushd "$workspace/ceph-docker"
- generate_filelist | check
- popd
- exit $?
-}
-
-main "$@"
+++ /dev/null
-2.jenkins.ceph.com
+++ /dev/null
-- scm:
- name: ceph-docker
- scm:
- - git:
- url: https://github.com/ceph/ceph-docker.git
- branches:
- - ${sha1}
- refspec: +refs/pull/*:refs/remotes/origin/pr/*
- browser: auto
- timeout: 20
- skip-tag: true
- wipe-workspace: false
- basedir: "ceph-docker"
-
-- job:
- name: ceph-docker-flake8
- node: small && centos7
- defaults: global
- display-name: 'ceph-docker-flake8'
- properties:
- - github:
- url: https://github.com/ceph/ceph-docker/
- logrotate:
- daysToKeep: 15
- numToKeep: 30
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
- parameters:
- - string:
- name: sha1
- description: "A pull request ID, like 'origin/pr/72/head'"
-
- triggers:
- - github-pull-request:
- admin-list:
- - alfredodeza
- - ktdreyer
- - gmeno
- - zcerza
- org-list:
- - ceph
- trigger-phrase: 'jenkins flake8'
- only-trigger-phrase: false
- github-hooks: true
- permit-all: true
- auto-close-on-fail: false
- status-context: "Testing: for sloppy python"
- started-status: "Running: flake8"
- success-status: "OK - nice work"
- failure-status: "FAIL - please clean up for merge"
-
- scm:
- - ceph-docker
-
- builders:
- - shell:
- !include-raw:
- - ../../build/build
-
+++ /dev/null
-#!/bin/bash
-
-set -e
-set -x
-
-IGNORE_THESE_CODES="SC1091,SC2009,SC2001"
-IGNORE_THESE_FILES="variables_entrypoint.sh" # pipe-separated file names, e.g: foo|bar|foobar, this avoids shellcheck complaining that vars are not used (see: SC2034)
-
-function generate_filelist(){
- if [[ "$pull_request_id" -eq "" || "${ghprbCommentBody:-}" = "jenkins lint all" ]]
- then
- find . -name '*.sh' | grep -vE "$IGNORE_THESE_FILES"
- else
- curl -XGET "https://api.github.com/repos/ceph/ceph-docker/pulls/$pull_request_id/files" |
- jq '.[].filename' | # just the files please
- tr -d '"' | # remove the quoting from JSON
- grep ".sh$" | # just the bash
- grep -vE "$IGNORE_THESE_FILES"
- fi
-
-}
-
-function check(){
- local file
- while read -r filename; do
- pushd "$(dirname "$filename")"
- file=$(basename "$filename")
- sudo docker run -v "$(pwd)"/"$file":/"$file" koalaman/shellcheck --external-sources --exclude "$IGNORE_THESE_CODES" /"$file"
- popd
- done
- return $?
-}
-
-function main() {
- # install some of our dependencies if running on a jenkins slave
- if [[ -n "$HUDSON_URL" ]]
- then
- sudo yum -y install epel-release
- sudo yum -y install docker jq
- sudo systemctl start docker
- pull_request_id=${ghprbPullId:-$2}
- workspace=${WORKSPACE:-$1}
- else
- if ! command -v docker || ! command -v jq
- then
- echo "docker or jq is/are missing, install it/them"
- exit 1
- fi
- pull_request_id=${ghprbPullId:-$2}
- workspace=${WORKSPACE:-$1}
- fi
-
-
- pushd "$workspace/ceph-docker"
- generate_filelist | check
- popd
- exit $?
-}
-
-main "$@"
+++ /dev/null
-2.jenkins.ceph.com
+++ /dev/null
-- scm:
- name: ceph-docker
- scm:
- - git:
- url: https://github.com/ceph/ceph-docker.git
- branches:
- - ${sha1}
- refspec: +refs/pull/*:refs/remotes/origin/pr/*
- browser: auto
- timeout: 20
- skip-tag: true
- wipe-workspace: false
- basedir: "ceph-docker"
-
-- job:
- name: ceph-docker-lint
- node: small && centos7
- defaults: global
- display-name: 'ceph-docker-lint'
- properties:
- - github:
- url: https://github.com/ceph/ceph-docker/
- logrotate:
- daysToKeep: 15
- numToKeep: 30
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
- parameters:
- - string:
- name: sha1
- description: "A pull request ID, like 'origin/pr/72/head'"
-
- triggers:
- - github-pull-request:
- admin-list:
- - alfredodeza
- - ktdreyer
- - gmeno
- org-list:
- - ceph
- trigger-phrase: 'jenkins lint'
- only-trigger-phrase: false
- github-hooks: true
- permit-all: true
- auto-close-on-fail: false
- status-context: "Testing: for sloppy bash"
- started-status: "Running: shellchecker"
- success-status: "OK - nice work"
- failure-status: "FAIL - please clean up for merge"
-
- scm:
- - ceph-docker
-
- builders:
- - shell:
- !include-raw:
- - ../../build/build
-
+++ /dev/null
-#!/bin/bash
-
-# the following two methods exist in scripts/build_utils.sh
-pkgs=( "tox" )
-install_python_packages "pkgs[@]"
-
-# XXX this might not be needed
-source $VENV/activate
-
-WORKDIR=$(mktemp -td tox.XXXXXXXXXX)
-
-delete_libvirt_vms
-clear_libvirt_networks
-restart_libvirt_services
-update_vagrant_boxes
-
-if ! timeout 3h $VENV/tox -rv -e=$SCENARIO --workdir=$WORKDIR; then
- echo "ERROR: Job didn't complete successfully or got stuck for more than 3h."
- exit 1
-fi
+++ /dev/null
-#!/bin/bash
-# There has to be a better way to do this than this script which just looks
-# for every Vagrantfile in scenarios and then just destroys whatever is left.
-
-cd $WORKSPACE/ceph-ansible/tests/functional
-
-scenarios=$(find . | grep Vagrantfile | xargs dirname)
-
-for scenario in $scenarios; do
- cd $scenario
- vagrant destroy -f
- cd -
-done
+++ /dev/null
-2.jenkins.ceph.com
+++ /dev/null
-- project:
- name: ceph-docker-nightly
- os:
- - centos7
- - xenial
- ceph-version:
- - jewel
- - luminous
- test:
- - cluster
- - bluestore_osds_container
- - filestore_osds_container
- jobs:
- - 'ceph-docker-nightly-ceph_ansible-{ceph-version}-{os}-{test}'
-
-- job-template:
- name: 'ceph-docker-nightly-ceph_ansible-{ceph-version}-{os}-{test}'
- node: vagrant&&libvirt&¢os7
- concurrent: true
- defaults: global
- display-name: 'ceph-docker: Nightly tests [ceph_ansible-{ceph-version}-{os}-{test}]'
- quiet-period: 5
- block-downstream: false
- block-upstream: false
- retry-count: 3
- properties:
- - github:
- url: https://github.com/ceph/ceph-docker
- logrotate:
- daysToKeep: -1
- numToKeep: -1
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
- parameters:
- - string:
- name: BRANCH
- description: "A ceph-docker branch to test"
- default: master
-
- triggers:
- - timed: '@daily'
-
- scm:
- - git:
- url: https://github.com/ceph/ceph-docker.git
- branches:
- - ${{BRANCH}}
- browser: auto
- timeout: 20
-
- builders:
- - inject:
- properties-content: |
- SCENARIO=ceph_ansible-{ceph-version}-{os}-{test}
- - shell:
- !include-raw-escape:
- - ../../../scripts/build_utils.sh
- - ../../build/build
-
- publishers:
- - postbuildscript:
- script-only-if-succeeded: False
- script-only-if-failed: True
- builders:
- - shell: !include-raw ../../build/teardown
+++ /dev/null
-#!/bin/bash
-
-# the following two methods exist in scripts/build_utils.sh
-pkgs=( "tox" )
-install_python_packages "pkgs[@]"
-
-# XXX this might not be needed
-source $VENV/activate
-
-WORKDIR=$(mktemp -td tox.XXXXXXXXXX)
-
-delete_libvirt_vms
-clear_libvirt_networks
-restart_libvirt_services
-update_vagrant_boxes
-
-if ! timeout 3h $VENV/tox -rv -e=$SCENARIO --workdir=$WORKDIR; then
- echo "ERROR: Job didn't complete successfully or got stuck for more than 3h."
- exit 1
-fi
+++ /dev/null
-#!/bin/bash
-# There has to be a better way to do this than this script which just looks
-# for every Vagrantfile in scenarios and then just destroys whatever is left.
-
-cd $WORKSPACE/ceph-ansible/tests/functional
-
-scenarios=$(find . | grep Vagrantfile | xargs dirname)
-
-for scenario in $scenarios; do
- cd $scenario
- vagrant destroy -f
- cd -
-done
+++ /dev/null
-2.jenkins.ceph.com
+++ /dev/null
-- project:
- name: ceph-docker-prs
- os:
- - centos7
- - xenial
- ceph-version:
- - jewel
- - luminous
- test:
- - cluster
- - filestore_osds_container
- - bluestore_osds_container
- - docker_cluster_collocation
- jobs:
- - 'ceph-docker-prs-ceph_ansible-{ceph-version}-{os}-{test}'
-
-
-- job-template:
- name: 'ceph-docker-prs-ceph_ansible-{ceph-version}-{os}-{test}'
- node: vagrant&&libvirt&¢os7
- concurrent: true
- defaults: global
- display-name: 'ceph-docker: Pull Requests [ceph_ansible-{ceph-version}-{os}-{test}]'
- quiet-period: 5
- block-downstream: false
- block-upstream: false
- retry-count: 3
- properties:
- - github:
- url: https://github.com/ceph/ceph-docker
- logrotate:
- daysToKeep: 15
- numToKeep: -1
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
- parameters:
- - string:
- name: sha1
- description: "A pull request ID, like 'origin/pr/72/head'"
-
- triggers:
- - github-pull-request:
- cancel-builds-on-update: true
- allow-whitelist-orgs-as-admins: true
- org-list:
- - ceph
- trigger-phrase: 'jenkins test ceph_ansible-{ceph-version}-{os}-{test}'
- only-trigger-phrase: false
- github-hooks: true
- permit-all: true
- auto-close-on-fail: false
- status-context: "Testing: ceph_ansible-{ceph-version}-{os}-{test}"
- started-status: "Running: ceph_ansible-{ceph-version}-{os}-{test}"
- success-status: "OK - ceph_ansible-{ceph-version}-{os}-{test}"
- failure-status: "FAIL - ceph_ansible-{ceph-version}-{os}-{test}"
-
- scm:
- - git:
- url: https://github.com/ceph/ceph-docker.git
- branches:
- - ${{sha1}}
- refspec: +refs/pull/*:refs/remotes/origin/pr/*
- browser: auto
- timeout: 20
- skip-tag: true
- wipe-workspace: false
-
- builders:
- - inject:
- properties-content: |
- SCENARIO=ceph_ansible-{ceph-version}-{os}-{test}
- - shell:
- !include-raw-escape:
- - ../../../scripts/build_utils.sh
- - ../../build/build
-
- publishers:
- - postbuildscript:
- script-only-if-succeeded: False
- script-only-if-failed: True
- builders:
- - shell: !include-raw ../../build/teardown