From d3d102eca9b4191b7647f772aec1b7b1f6aae61b Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Sat, 11 Jul 2015 09:05:23 -0400 Subject: [PATCH] try to get multiple repos for ceph-deploy-pull-requests Signed-off-by: Alfredo Deza --- .../definitions/ceph-deploy-pull-requests.yml | 39 ++++++++++++++----- 1 file changed, 29 insertions(+), 10 deletions(-) diff --git a/ceph-deploy-pull-requests/config/definitions/ceph-deploy-pull-requests.yml b/ceph-deploy-pull-requests/config/definitions/ceph-deploy-pull-requests.yml index ce42827d..002033d5 100644 --- a/ceph-deploy-pull-requests/config/definitions/ceph-deploy-pull-requests.yml +++ b/ceph-deploy-pull-requests/config/definitions/ceph-deploy-pull-requests.yml @@ -1,3 +1,30 @@ +# multiple scm requires definition of each scm with `name` so that they can be +# referenced later in `job` +# reference: http://docs.openstack.org/infra/jenkins-job-builder/scm.html +- scm: + name: ceph-deploy + scm: + - git: + url: https://github.com/ceph/ceph-deploy.git + branches: + - ${sha1} + refspec: +refs/pull/*:refs/remotes/origin/pr/* + browser: githubweb + browser-url: https://github.com/ceph/ceph-deploy + timeout: 20 + skip-tag: true + wipe-workspace: false + +- 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 + - job: name: ceph-deploy-pull-requests node: trusty @@ -42,16 +69,8 @@ auto-close-on-fail: false scm: - - git: - url: https://github.com/ceph/ceph-deploy.git - branches: - - ${sha1} - refspec: +refs/pull/*:refs/remotes/origin/pr/* - browser: githubweb - browser-url: https://github.com/ceph/ceph-deploy - timeout: 20 - skip-tag: true - wipe-workspace: false + - ceph-deploy + - ceph-build builders: - shell: !include-raw ../../build/setup -- 2.39.5