summaryrefslogtreecommitdiffstats
path: root/build-gluster-org
diff options
context:
space:
mode:
authorNigel Babu <nigelb@redhat.com>2018-11-12 14:59:59 +0530
committerAmar Tumballi <amarts@redhat.com>2019-04-11 04:01:00 +0000
commit50a78802c62a3716ce9cde23bbd6e5116f4dbe6c (patch)
treefc65eda73dc88c9a5a3e0d6a828cd8d3d2aaba19 /build-gluster-org
parent48a0f81c0b750d56a4c3b67671c4afc11aea4d78 (diff)
Add a job to comment on github for spec repo
Change-Id: Ib349996f24ea56eb4fa55eff1cba6a9ead5319a8
Diffstat (limited to 'build-gluster-org')
-rw-r--r--build-gluster-org/jobs/comment-on-issue-spec.yml54
1 files changed, 54 insertions, 0 deletions
diff --git a/build-gluster-org/jobs/comment-on-issue-spec.yml b/build-gluster-org/jobs/comment-on-issue-spec.yml
new file mode 100644
index 0000000..7aea866
--- /dev/null
+++ b/build-gluster-org/jobs/comment-on-issue-spec.yml
@@ -0,0 +1,54 @@
+- job:
+ name: comment-on-issue-spec
+ node: bugzilla
+ description: If a Github issue number is mentioned in a commit, comment on
+ the issue
+ project-type: freestyle
+
+ scm:
+ - git:
+ branches:
+ - $GERRIT_BRANCH
+ refspec: $GERRIT_REFSPEC
+ choosing-strategy: gerrit
+ url: git://review.gluster.org/glusterfs-specs.git
+
+ properties:
+ - discard-after-x:
+ x: 30
+ - one-build-per-node
+
+ triggers:
+ - gerrit:
+ trigger-on:
+ - patchset-created-event:
+ exclude-drafts: false
+ exclude-trivial-rebase: false
+ exclude-no-code-change: false
+ - draft-published-event
+ - comment-added-contains-event:
+ comment-contains-value: "recheck smoke"
+ server-name: review.gluster.org_for-smoke-jobs
+ failure-message-file: gerrit_comment
+ 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/handle_github.py --repo glusterfs-specs -c
+
+ wrappers:
+ - timestamps