Commit Graph

115 Commits

Author SHA1 Message Date
Oleg Stiplin 6d71ade6bd Add tokenCredentialId parameter support to generic-webhook-trigger
Change-Id: Ied3cbe3758967659f83637ccea78d834079a1470

Add tokenCredentialId parameter support to generic-webhook-trigger

Change-Id: Ied3cbe3758967659f83637ccea78d834079a1470
2023-06-13 13:18:45 +03:00
Zuul d346943967 Merge "Tests: Add zuul trigger tests" 2023-02-05 10:52:20 +00:00
Zuul 23c34fa264 Merge "Tests: Add default results case for build-result trigger test" 2023-02-03 20:17:55 +00:00
Mateusz Rygiel 456e64513f Add properties for Gitlab trigger
Add source branch regex property for gitlab trigger
Add merge request label filtering options to gitlab trigger

Change-Id: Idbcec2952459b80b8b35133a1c4913ec195b5ff7
2023-01-27 16:26:38 +01:00
Vsevolod Fedorov f6d93251b9 Tests: Add zuul trigger tests
Change-Id: Iefbcedeadc2dbe314555182abf96c087e9d7cbe8
2023-01-26 11:11:13 +03:00
Vsevolod Fedorov 822397a57f Tests: Add default results case for build-result trigger test
Change-Id: Idcc82bcbb3910bb478f409881d79be5b9c22a180
2023-01-26 11:07:43 +03:00
Vsevolod Fedorov f4d64f9f66 Move tests to pytest
Pytest makes each scenario into individual selectable test.
To be able to run each scenario separately is very useful for development.

Change-Id: I4b1c990a1fd839ce327cd7faa27159a9b9632fed
2022-12-20 10:44:43 +03:00
Max Trunov 0fdb576ee5 STORY: 2009994
add support triggerOnlyIfNewCommitsPushed option

Change-Id: I1e777bdd47d7cd93839c6edde6f75737972c242a
2022-04-15 10:57:34 +05:00
Fatih Degirmenci 210a70fb4a Add support for Artifactory Trigger
This change adds support for Artifactory Trigger. [0]

In order to use this trigger in JJB Templates, Artifactory
Instances the jobs are polling the paths from must be configured
on Jenkins Global Configuration in advance.

[0] https://plugins.jenkins.io/artifactory/

Change-Id: I7b4651c54c5d4dc14916d58ab6c7d6c7e1e8d4c5
2021-10-15 16:15:24 +02:00
Eren Atas 08678825a9 Update Gerrit Trigger Plugin Implementation
The changes between plugin version 2.30.0-2.32.0 have been
implemented. Current test cases are updated, and also new
test cases are added in order to verify old version XML
output has not been altered.

Documentation uses gerrit004.yaml as an exampple, therefore,
`build-cancellation-policy` have also been implemented to
show as example.

Signed-off-by: Eren Atas <eatas.contractor@libertyglobal.com>
Change-Id: I55fb6f8dd722d50cff369a6fba0e11c96b0c08aa
2021-05-20 15:14:46 +02:00
David Aguilar 4393f8ba1a triggers/gitlab: allow setting the merge request pending build name
Add a "pending-build-name" parameter to control the pendingBuildName XML
attribute which controls the pending build name in the Gitlab merge request.

Change-Id: Iee229a047cbeef6fe842c010feb7963412667066
2021-02-19 22:46:48 -08:00
Unpublished fedd4b52ab Add Gogs Plugin
Change-Id: I0230a605fd2c3d0c8f7df2c497f3b837499f8758
2021-01-16 12:21:15 +01:00
Eren ATAS 987dbc4d2b Updated GHPRB plugin support
Implemented the following tags that have been missing:
- displayBuildErrorsOnDownstreamBuilds
- blackListCommitAuthor
- GhprbCommentFile
- GhprbNoCommitStatus

Following tags are printed when the value of the key is empty:
    - whiteListTargetBranches
    - blackListTargetBranches
    - buildDescTemplate
    - triggeredStatus
    - startedStatus
    - statusUrl
    - addTestResults

Also updated tests

Change-Id: I1e19841d88728af9ac6aa9e1c78f89fe962a583f
Signed-off-by: Eren ATAS <eatas.contractor@libertyglobal.com>
2020-07-07 11:20:46 +02:00
Eren ATAS 28e43831e9 Added topic-changed-event on triggers.py
Depends on https://review.opendev.org/#/c/731169/

Change-Id: I8d1ed67b11e1ff1fcf13325108c007d6baff07c4
Signed-off-by: Eren ATAS <eatas.contractor@libertyglobal.com>
2020-06-19 08:55:54 +02:00
Adam Romanek b04ca3a82c Gerrit Trigger: update support to the latest plugin version
The changes include:

- deprecated the following options and made support for them dependent
  on the Gerrit Trigger plugin version:
  - 'no-name-and-email'
  - 'readable-message'
  - 'trigger-for-unreviewed-patches'

- added a set of new options:
  - 'name-and-email-parameter-mode' (replaced 'no-name-and-email')
  - 'commit-message-parameter-mode' (replaced 'readable-message')
  - 'change-subject-parameter-mode'
  - 'comment-text-parameter-mode'
  all these options can have one of the following values:
  - NONE
  - PLAIN
  - BASE64
  the default value for the first two options is taken from the
  respective options they replaced, if they exist in the input YAML
  file, so the overall change should be backward compatible

- fixed the value generated for <dynamicTriggerConfiguration> element
  it should be "true"/"false" instead of "True"/"False"

- added an empty <dynamicGerritProjects> element when dynamic trigger
  functionality is disabled to match what the plugin does

With the above changes the markup generated by JJB is fully aligned with
Gerrit Trigger plugin v2.30.x. Tested on Gerrit Trigger plugin v2.30.0.

Task: 39871
Story: 2007722
Change-Id: I25800874f51a93a351926a9a1be255cce80b88bd
2020-06-01 15:39:18 +02:00
Christoph Erhardt 03d99c56e8 Add parameter "cancel-pending-builds-on-update" for trigger "gitlab"
When this boolean parameter is set to true, updating a merge request
cancels any pending merge-request builds.

Change-Id: Ic5ef400cf4cd088680b92bd10b88b79520795729
2020-04-16 16:56:50 +02:00
Waldemar Znoinski 2ea9841a96
Add support for noSquash (no-squash) in jms-messaging trigger
It's sometimes required to trigger a job build on every CI message.
To achieve that the XML's noSquash (jjb: no-squash) has to be set to
True.

see triggers section at:
https://wiki.jenkins.io/display/JENKINS/JMS+Messaging+Plugin

Change-Id: I389e59cca4f649379614f7f6247bf76cf4a0ba95
2019-12-13 14:38:32 -05:00
Joseph Kostreva 8c29f8931c Add Private and WIP change support for gerrit
Updated gerrit trigger support to include the new exclude private and
exclude wip changes.

Change-Id: I75d8113941e4e455ec34fab23d347816c2ef699b
2019-11-06 10:03:30 -06:00
Thanh Ha 4d90c187a9 Auto-generated output from python-black
Please review the following patch containing the code changes in
the repo. This patch is a transition patch and is the auto-generated
output of the python-black tool.

Change-Id: I2d2de71da8a105fb62b561899ae78441ddab4032
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
2019-09-09 19:23:24 +01:00
Sergey Lebedev 314d896b83 Added missing 'filters' parameters for rabbitmq trigger plugin
Change-Id: Ide9e02c7b5a327a17521aac8d25ccff285bbd89a
2019-08-06 01:36:54 +03:00
Brian Kruger 8cb88e0304 [jenkins-job-builder] - Add support for Generic Webhook Trigger
Change-Id: Iced7c16938357a61ce566e3e0732ac2d43b0befa
2019-02-15 16:32:28 -08:00
Norbert Grünwald 1ee893d595 Add 'secret-token' parameter to gitlab trigger
This adds support for the job specific secret token in the
gitlab build trigger.

This feature was added to the "Gitlab Plugin" with version 1.4.1
(released Sep 24, 2016).
Excerpt from the changelog:
 "Add possiblity to configure secret tokens per job to allow
  only web hooks with the correct token to trigger builds."

Change-Id: Id1ede4a6a51a231f60a39bfaefbadd8f849076e4
2018-10-29 15:06:41 +00:00
David Schneider 6a447539a3 Fix build-result trigger jobs list in examples
Change-Id: I4fc954560953b64dca6720dff427855be7ccb132
2018-10-15 21:36:05 +02:00
Jaime Melis 56c8d33b14 gitlab-merge-request: Add support for 2.x
This patch adds support for gitlab-merge-request 2.x.

As indicated by the plugin homepage [1]:

* GitLab version < 8.1: use v1.2.4 of this plugin
* GitLab version >= 8.1 < 11: use v2.0.1 of this plugin
* GitLab version >= 11: use the latest version of this plugin

GitLab 8.1 was released on Oct 22, 2015.

[1]: https://github.com/timols/jenkins-gitlab-merge-request-builder-plugin#supported-gitlab-versions

Change-Id: I0c7618715ba3fad162bfe20819a7721e1c83ad13
2018-09-21 10:50:08 +02:00
Zuul fe6612ea7d Merge "pollurl: Utilize convert_mapping_to_xml" 2018-09-06 17:39:08 +00:00
tanhengyeow 2fba7e6058 github-pull-request: Utilize convert_mapping_to_xml
Change-Id: I8a5f3ade27d7aeba8054c814ad0dc2bf7993dd42
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
2018-08-31 22:56:55 +08:00
tanhengyeow 0586d9b3d3 pollurl: Utilize convert_mapping_to_xml
Change-Id: I2d14f0c714e42c268d6fc411355a61347f89934f
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
2018-08-31 22:12:45 +08:00
Zuul 2801467eb9 Merge "ghprb: blacklist-target-branches support" 2018-07-17 17:03:46 +00:00
tanhengyeow f7d5ef5617 Refactor ivy function in triggers.py to utilize convert_mapping_to_xml
Refactor the code in the function to utilize convert_mapping_to_xml.

Change-Id: Ic62b5cc60d260f9f4820c4260f69771e1f8589ba
2018-07-08 22:47:35 +08:00
Gerard Ryan 70f7ef2291 ghprb: blacklist-target-branches support
Change-Id: I27f49f25d97c810904cb107042380b9e7bb7fd42
Co-Authored-By: Kien Ha <kienha9922@gmail.com>
Signed-off-by: Kien Ha <kienha9922@gmail.com>
2018-07-03 18:26:27 -04:00
Sorin Sbarnea c2781e670f
Normalize newlines at end of file
Preparatory move for adopting pre-commit hooks.
Shoudl only remove newlines and spaces at end of files.

Change-Id: Ia33679467c533722b9308f7e7b74be395c926428
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2018-06-29 16:07:06 -04:00
Kien Ha c2db4e9204 Update BuildResultTrigger plugin
- Add full and minimal tests
- Set plugin tag

Change-Id: Ibac51be8cd298bca0c6e8005182b59806d266e51
Signed-off-by: Kien Ha <kienha9922@gmail.com>
2018-05-31 18:00:12 -04:00
Daniel Watkins 1d90d0d5ba Handle string skip-vote parameters in gerrit trigger
Prior to this commit, the code assumes that the parameters given in the
YAML will parse as Python bools.  This fails when, for example, the
string "false" is given.

Change-Id: Ia7d0f5954929d13acc268f878ce992808b258a12
Story: 2001466
Task: 6183
2018-05-30 17:00:54 -04:00
Jeremy Phelps 6244fd032a Add support for setting file paths to trigger on
- include minimal and full tests

Change-Id: Ic78c87c3e4388bb124414725bb2da2b406fb5269
Co-Authored-By: Kien Ha <kienha9922@gmail.com>
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
Signed-off-by: Kien Ha <kienha9922@gmail.com>
2018-05-21 16:51:43 -04:00
Zuul c1a73eb7cc Merge "gitlab trigger: add support for different MR events" 2018-04-13 10:54:09 +00:00
Yolande Amate e55b3d408c
Add support for jira-changelog trigger
Change-Id: Ib66ed6ed2cc0ae909baf8657e122c8c4d3e42331
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2018-04-12 18:42:20 -04:00
Evgeni Golov 2fca24be21 gitlab trigger: add support for different MR events
also add tests for branch-filter-type on < 1.2.0 to make Zuul happy :(

Change-Id: Ia0aa807e1139bacc3e808b6bdc9680648b596275
Signed-off-by: Evgeni Golov <evgeni@golov.de>
2018-04-12 19:42:21 +00:00
Yolande Amate e70f327a9e Update monitor_files to use convert_xml()
Also update tests to have a minimal & full tests.

Change-Id: Id2b57492c5cc43634df48deefb9eca00a3713b99
Co-Authored-By: Thanh Ha <thanh.ha@linuxfoundation.org>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2018-02-27 16:52:28 +00:00
Sorin Sbarnea ea324d31d2 gerrit-trigger: avoid exception spamming logs
Adds empty triggerInformationAction section which when
missing was generating recurring spam on Jenkins logs.

included null not assignable to interface hudson.model.Action

See https://issues.jenkins-ci.org/browse/JENKINS-45788

Change-Id: I97efbfcb17388b5ca99901aa35f4311c8db77710
2018-02-06 12:16:35 +00:00
Zuul 685aba502a Merge "Add support for stash-pullrequest-builder plugin" 2017-12-27 16:22:53 +00:00
Jonathan Stockton 95667c5925 Add support for stash-pullrequest-builder plugin
Stash Pull Request Builder Plugin:
https://wiki.jenkins-ci.org/display/JENKINS/Stash+pullrequest+builder+plugin

Change-Id: Id6e4cd8bb7c72402e21b8afa6fd10120447b5596
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2017-12-18 15:42:22 +00:00
Lukas Lowinger ed1c647aaf
Support all parameters in gitlab-merge-request
Change-Id: I21c667515b7073a19696a8d8f27d9cf2b4278504
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2017-10-25 22:50:06 -04:00
Yolande Amate c067b01583
Add support for CloudBees Docker Hub Notification Plugin
Change-Id: I1653c79c3abef9afa8157f3af04ee39a3e7a804e
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2017-10-23 13:13:00 -04:00
Zuul 09f979a97f Merge "Add support for jira_comment_trigger" 2017-10-23 17:11:45 +00:00
Yolande Amate c8f6f97d88 Add support for jira_comment_trigger
Change-Id: I7df9e26527e2fdbeb134cdcb4c288c3ef36e341b
2017-08-21 16:34:40 +01:00
Thanh Ha 70e6adb4eb
Default gitlab to newest plugin config format
Change-Id: I51ca15b9bfef42b79e03c4a2ba0bb9f23d880188
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2017-07-26 13:07:32 -04:00
Russell Sim 5c7a4e4d5c Add new fields to Github pull request builder plugin
- Adds black/white label lists
- Adds skip build phrase

Change-Id: I962ec17a32317cb6757ef3b208bd68dc24a0afb7
2017-05-20 23:13:47 +02:00
Jenkins 7e1e54633f Merge "Add support for jms_messaging plugin as a trigger" 2017-04-04 15:22:17 +00:00
Ari LiVigni 16c41b6a82 Add support for jms_messaging plugin as a trigger
- Added all the fields for JMS Messaging plugins
- Added a minimal example
- Added a full example

Change-Id: I62906133019253a0cf391eda76b3515ecf328b9f
2017-03-31 11:55:06 -04:00
Bulat Gaifullin 38fc311dcd Fixed serialization for 'branch-filter-type' of gitlab
tag 'branchFilterType' was introduced only in GitLab+Plugin ver. 1.2.0

Change-Id: I8cee5b4b77431fa78d28fe359a4fafc5609bde3e
Story: 2000875
2017-02-21 20:45:43 +03:00