summaryrefslogtreecommitdiffstats
path: root/build-gluster-org
diff options
context:
space:
mode:
authorNigel Babu <nigelb@redhat.com>2017-07-25 12:01:31 +0530
committerNigel Babu <nigelb@redhat.com>2017-11-21 09:48:02 +0000
commit2c1060fb232281d121ec40c63ba715aa0b48bdfe (patch)
tree486f3b2aff7932bbe59dfdd19542f180c3b30738 /build-gluster-org
parentadb2931b5396c165ddc0be510545b1932ecebf2b (diff)
Create a glusto job
Change-Id: I738b84625b88fd27750e3e45ea5606bceed38dfb
Diffstat (limited to 'build-gluster-org')
-rw-r--r--build-gluster-org/jobs/glusto.yml50
-rw-r--r--build-gluster-org/scripts/glusto.sh2
2 files changed, 52 insertions, 0 deletions
diff --git a/build-gluster-org/jobs/glusto.yml b/build-gluster-org/jobs/glusto.yml
new file mode 100644
index 0000000..2a6c3a7
--- /dev/null
+++ b/build-gluster-org/jobs/glusto.yml
@@ -0,0 +1,50 @@
+- project:
+ name: 'glusto'
+ glustoversion:
+ - stable:
+ gerrit_ref: stable
+ #- master:
+ #gerrit_ref: master
+ jobs:
+ - '{name}-{glustoversion}'
+
+- job-template:
+ name: '{name}-{glustoversion}'
+ node: glusto
+ description: Run the Glusto job on ci.centos.org
+ project-type: freestyle
+ concurrent: true
+
+ properties:
+ - discard-after-x:
+ x: 30
+ - one-build-per-node
+
+ parameters:
+ - string:
+ default: refs/heads/master
+ description: 'For review 12345 and patch set 6, this will be refs/changes/45/12345/6. Default: Tip of master'
+ name: GERRIT_REFSPEC
+ - string:
+ default: master
+ description: 'Name of the branch you want to build from. We usually build from master'
+ name: GERRIT_BRANCH
+ - string:
+ default: gluster_glusto
+ description: 'Name of the remote Jenkins Job'
+ name: REMOTE_JENKINS_JOB
+
+ builders:
+ - shell: !include-raw: ../scripts/glusto.sh
+
+ wrappers:
+ - timestamps
+ - timeout:
+ timeout: 300
+ abort: true
+ type: absolute
+ - credentials-binding:
+ - username-password-separated:
+ credential-id: centos-ci-creds
+ username: REMOTE_JENKINS_USER
+ password: REMOTE_JENKINS_PASS
diff --git a/build-gluster-org/scripts/glusto.sh b/build-gluster-org/scripts/glusto.sh
new file mode 100644
index 0000000..7e6d14d
--- /dev/null
+++ b/build-gluster-org/scripts/glusto.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+/opt/qa/centos-ci/scripts/jenkins-trigger-console.py -j $REMOTE_JENKINS_JOB -u https://ci.centos.org -p "NODE_COUNT=9,BRANCH=$GERRIT_REFSPEC,GERRIT_REF={glustoversion},BUILD_CAUSE=$JOB_NAME-$BUILD_DISPLAY_NAME" --encoding text