Signed-off-by: Gregory Meno <gmeno@redhat.com>
--- /dev/null
+#!/bin/bash
+
+set -e
+set -x
+
+function main() {
+ # install some of our dependencies
+ pushd "$WORKSPACE/teuthology"
+ git remote -v
+ ./bootstrap
+ curl -XGET -L paddles.front.sepia.ceph.com/nodes | jq '[.[] | select(.description == null or .description == "None") | select(.locked == true)] | group_by(.locked_by) | .[] | {locked_by: .[0].locked_by, name: [ .[].name | tostring] | join(" ")} | select(.locked_by | tostring| test("scheduled")|not)'
+ popd
+ exit $?
+}
+
+main "$@"
--- /dev/null
+- scm:
+ name: lab-cop
+ scm:
+ - git:
+ url: https://github.com/ceph/teuthology.git
+ branches:
+ - ${sha1}
+ refspec: +refs/pull/*:refs/remotes/origin/pr/*
+ browser: auto
+ timeout: 20
+ skip-tag: true
+ wipe-workspace: false
+ basedir: "lab-cop"
+
+- job:
+ name: lab-cop
+ node: small && xenial
+ defaults: global
+ display-name: 'lab-cop'
+ properties:
+ - github:
+ url: https://github.com/ceph/teuthology/
+ logrotate:
+ daysToKeep: 15
+ numToKeep: 30
+ artifactDaysToKeep: -1
+ artifactNumToKeep: -1
+
+ parameters:
+ - string:
+ name: sha1
+ description: "A pull request ID, like 'origin/pr/72/head'"
+
+ scm:
+ - lab-cop
+
+ builders:
+ - shell:
+ !include-raw:
+ - ../../build/build
+