summaryrefslogtreecommitdiffstats
path: root/build-gluster-org
diff options
context:
space:
mode:
authorDeepshikha khandelwal <dkhandel@redhat.com>2019-04-17 17:10:13 +0530
committerAmar Tumballi <amarts@redhat.com>2019-05-03 10:27:03 +0000
commit66884fd6c315aba120712456a98ee235aa686c7a (patch)
tree760df422530d42b03e98a97d65356fff53db4f28 /build-gluster-org
parentc3c38c9fe1d7cda2e58128f0cf4121621e09b7df (diff)
Add the job for backporting patch to a specific version on comment
Change-Id: Ifea29e09d3782163082018d66380c2912535c220 Signed-off-by: Deepshikha khandelwal <dkhandel@redhat.com>
Diffstat (limited to 'build-gluster-org')
-rw-r--r--build-gluster-org/jobs/backport.yml62
1 files changed, 62 insertions, 0 deletions
diff --git a/build-gluster-org/jobs/backport.yml b/build-gluster-org/jobs/backport.yml
new file mode 100644
index 0000000..117333c
--- /dev/null
+++ b/build-gluster-org/jobs/backport.yml
@@ -0,0 +1,62 @@
+- job:
+ name: backport-to-a-branch
+ node: bugzilla
+ description: Backport command to a specific version
+ project-type: freestyle
+ concurrent: true
+
+ scm:
+ - git:
+ branches:
+ - $GERRIT_BRANCH
+ refspec: $GERRIT_REFSPEC
+ choosing-strategy: gerrit
+ url: git://review.gluster.org/glusterfs.git
+ wipe-workspace: true
+
+ properties:
+ - discard-after-x:
+ x: 90
+ - one-build-per-node
+
+# triggers on adding a comment like: backport version component-name
+#eg '/backport release-6 project-infrastructure'
+ triggers:
+ - gerrit:
+ server-name: review.gluster.org
+ trigger-on:
+ - comment-added-contains-event:
+ comment-contains-value: "^/backport *"
+
+ projects:
+ - project-compare-type: 'PLAIN'
+ project-pattern: 'glusterfs'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**'
+
+
+ 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
+
+ builders:
+ - shell: /opt/qa/github/backport.py
+
+ wrappers:
+ - timestamps
+ - timeout:
+ timeout: 450
+ abort: true
+ type: absolute
+ - credentials-binding:
+ - username-password-separated:
+ credential-id: 7e0c919e-4568-42ac-b28a-660a148609fe
+ username: HTTP_USERNAME
+ password: HTTP_PASSWORD