Commit Graph

29 Commits

Author SHA1 Message Date
Piotr Falkowski cd8c8bfbb7 Added configuration for Suppress SCM Triggering
In version 2.1045.v4ec3ed07b_e4f Branch API Plugin added options to
configure suppressing SCM trigger. Previously this feature could
be only turned on or off, now it's possible to select what to suppress
and on which branches.
(see https://github.com/jenkinsci/branch-api-plugin/pull/244)

This commit adds support for this option by allowing dictionary syntax
for `suppress-scm-triggering` element:
  ```
  - suppress-scm-triggering:
      suppression-strategy: suppress-branch-indexing
      branch-regex: ^.*test.*$
  ```
while preserving support for currently existing syntax:
  ```
  - suppress-scm-triggering: true
  ```

Change-Id: I5d0b32042fc07d674bf2f26e5b468f051077fb02
2023-03-30 13:17:39 +02:00
Piotr Falkowski 5cea04aa2a New permissions option for GitHub PR Comment Build plugin
In version 78.v2dcf62ba199b GitHub Pull Request Comment Build Plugin
introduced permissions check for users triggering jobs with comments.
This added a new checkbox/XML element that allows untrusted users to
trigger builds.
(see https://github.com/jenkinsci/github-pr-comment-build-plugin/pull/46)

This commit adds support for this option by allowing dictionary syntax for GH PR Comment Build plugin:
 ```
 - trigger-build-on-pr-review:
    allow-untrusted-users: true
 ```
 while preserving support for currently existing syntax:
 ```
 - trigger-build-on-pr-review: true
 ```

Change-Id: I554129c779161b47cba4566f7821ef7590a242e0
2023-02-27 09:07:52 +01:00
Piotr Falkowski 695872835f Support for GitHub Checks plugin
Change-Id: I0dcf84a56a26f8cccbfdcc6fe60567a4120e78f9
2023-02-09 11:32:55 +00:00
Kristian Kraljic bf38568363 add: type-suffix for GitHub notification-context trait
Change-Id: Ibadc0de88d87df95d0319da8872c881247cd1ba6
Story: 2009995
2022-04-29 22:52:13 +02:00
Zuul 760d255a54 Merge "Add git submodule threads" 2021-04-10 13:47:25 +00:00
Pawel Piatek b8f0e75d34 Add git submodule threads
Signed-off-by: Pawel Piatek <xj@wp.pl>
Change-Id: I3dbc0e710460a5f55d4146cb1dd70e1ac3560e68
2021-03-18 12:39:34 +01:00
sp-ricard-valverde c1d8a41666 feat(scm): add git extension for lfs-pull
Add a missing extension to git scm which enables the option to do
"Git LFS pull after checkout"

Add lfs-pull fixtures

Change-Id: Ie8b98877f3f282ac0b32dbeb089e6d0d9ccc25c8
2021-03-16 18:29:56 +01:00
Igor Lakhtenkov 05149cf329 Added SparseCheckout trait to the git extentions
Change-Id: I01e01cf1f6c07220de7f05ae67ffee6a924f5d08
Task: #41625
2021-01-20 20:42:22 +03:00
Zuul f80afac754 Merge "Added support of SCM Filter branch PR behavior filters for multibranch projects" 2021-01-12 14:47:09 +00:00
Igor Lakhtenkov bdedf1460c Added support of SCM Filter branch PR behavior filters for multibranch projects
Change-Id: I29d1050f021d509ca021136cc90a113756cd11cf
Task: #41308
2021-01-04 12:50:11 +03:00
Anna Tikhonova c12e41844c Add refspecs trait for github SCM
Change-Id: Ibdcd5621fa1d030cda26f29cadb3ae4c3c3f3704
Signed-off-by: Anna Tikhonova <anna.m.tikhonova@gmail.com>
2021-01-02 15:25:30 +00:00
AnnA Tikhonova 6ddb8f7d35 Support "All Strategies Match" and "Any Strategies Match"
Support recursive build strategies from Basic Branch Build
Strategies Plugin

Change-Id: Idc1d2bc679ba489f5ef487648cca1e9044084990
Signed-off-by: Anna Tikhonova <anna.m.tikhonova@gmail.com>
2020-11-02 23:30:49 +03:00
Zuul 35457bfd1c Merge "feat: support the skip-notifications-trait plugin for git repos" 2020-09-25 07:45:27 +00:00
Giel van Schijndel c1e3807ac7 feat: support the skip-notifications-trait plugin for git repos
Change-Id: If466d36671a8d87e0543d625f5b4e5302111874d
2020-09-16 18:53:18 +02:00
Giel van Schijndel eec4770574 feat: add support for specifying the git user's identity
This gives control over who's identity gets used for newly created
commits.

Change-Id: I8ceaabdaafa2be9c4abcfea8a2afb847d01ed0e6
2020-09-16 18:48:22 +02:00
Sergey Rotaru 67c2decc3a Implement GitHub PR Comment Build Plugin
Added support of trigger-build-on-pr-comment, trigger-build-on-pr-rewiev,
trigger-build-on-pr-update options for multibranch project. Modified
multibranch test case to cover new options.

Change-Id: Ia8658b49e7f7806ef1a8f34de10eaee5b3b7b488
Signed-off-by: Rotaru Sergey <badwings@yandex.ru>
2020-06-14 17:19:05 +03:00
Ivan Fernandez Calvo 073e7bb5e5
Add support for GH Custom Notification Context
Task: #35637
Story: #2006141
Change-Id: Id4bbc73a709a7cd292072ab66666bd647f0514a6
2019-07-02 12:25:34 -04:00
Chris Koehnke a90f084f93 Add 'skip-initial-build' to project multibranch
Adds support for the skip initial build option added by
https://github.com/jenkinsci/basic-branch-build-strategies-plugin/pull/4.

Change-Id: I903de7605fa1f0e3ada027ada07a7972d2ca9603
2019-04-26 13:14:09 -04:00
amit lin ff338dc948 Adds github scm multibranch regex branch filter
This commit adds the ability to filter discovered branches in a multibranch project using a regex filter.
This is done by adding a 'head-filter-regex' key in the github scm configuration inside the multibranch job yaml - it maps to a <jenkins.scm.impl.trait.RegexSCMHeadFilterTrait>
element containing a <regex> element in the resulting job.

Change-Id: I8c88a8b131cdc51d2c8abb13397637ebbf6d1373
Signed-off-by: amit lin <amitl@totango.com>
2019-01-07 18:12:29 +02:00
sbussetti dbbca01833 Adds support for Property Strategies
Multibranch pipeline jobs also support "Property Strategy" elements.
These are fairly limited, but do contain the very useful "Suppress
automatic SCM triggering" trait.  This commit adds support for
defining these for the "All branches get the same properties"
strategy, and could be easily amended to also support the "Named
branches get different properties" strategy in a future update.

Change-Id: I3d9281657e341260a23f357f6e247793379b0eed
Signed-off-by: sbussetti <steve.bussetti@gmail.com>
2018-11-27 09:01:20 -05:00
sbussetti 7d065af894 Adds support for Disable GitHub Multibranch Status
Jenkins2 GitHub scms default to automatically sending updates on build
status to github for pull requests.  The plugin this enables allows
control of this by enabling or disabling the feature via an SCM trait,
allowing you to either no notify at all or manually notify via other
means.

Change-Id: I4f5629c3ee8031d41054e3be5e853201d8f0fed6
Signed-off-by: sbussetti <steve.bussetti@gmail.com>
2018-11-01 09:51:37 -04:00
sbussetti dab3156465 Adds option to specify secret id for github
Same as existing bitbucket checkout-over-ssh
ssh-checkout for github must needs the option
for a user to specify the id of the secret
containing the ssh credentials to be used
for checkout.

Change-Id: I675c94c971e78d6ecd71d6f1446e0388430dab80
Signed-off-by: sbussetti <steve.bussetti@gmail.com>
2018-10-16 20:02:55 +00:00
Zuul 494f5d3cc2 Merge "Extend multibranch pipeline project scm" 2018-09-20 14:47:59 +00:00
Duncan Hutty d076675ca1 Support SSHCheckout trait
Change-Id: Ie00ad2e68a8c9100d055df220ac68bfb8f0ba184
Closes-bug: 2003749
2018-09-12 23:03:21 -04:00
trane9991 92f18515b4 Extend multibranch pipeline project scm
Add suport of available extensions from default git scm
Story #2003620
Task #25743
Change-Id: I62f8018fb49d239ab634b502e51005a1465a81d9
2018-09-12 19:37:25 +03:00
Olivier Bierlaire 2a654987eb Add support for Basic Branch Build Strategies Plugin
Add optional parameter build-strategies to multibranch scm sections
(github, bitbucket, gerrit, git) in order to configure Basic Branch
Build Strategies Plugin
(https://github.com/jenkinsci/basic-branch-build-strategies-plugin).
This plugin allows control over whether to build a branch (or change
requests and tags). This also enables triggering builds on new tags
(normally the Multibranch Pipeline does not poll tags).

Change-Id: I908fe7c0ec81eb8503669177c337135fc4081a62
Task: 22732
Story: 2002816
2018-07-16 12:51:56 +02:00
Kevin de Berk 177d51b881 multibranch: Configurable script-path
By default the script-path is set to 'Jenkinsfile', but it can now be
configured.

Change-Id: If02468b292b6b771b3794ea0606acd233c2e9e4b
2018-06-20 10:09:38 +02:00
Konrad Beiske af6b031d09 Add discover-tags to multibranch pipeline project
Add the option to specify discover-tags on bitbucket, git and
github SCMs in multibranch pipeline.

Change-Id: I28a4bc3a4bb5d50b8d7717b19ef063a23a68ed8c
Task: 20061
Story: 2002187
2018-06-08 21:15:12 +02:00
Joost van der Griendt efc5fbe0fd Add multibranch project-type
This work was based on original work done by
Joshua Harlow on top of older code from:
https://github.com/abnamrocoesd/jenkins-job-builder/

Credit is due to `Joost van der Griendt` for doing this
work. This builds on his work in that repo, and adjusts it
so that it can get merged into upstream and released
as a fully supported job type.

SCM implementation is different than than normal SCM module,
supporting: BitBucket, git, and GitHub in this initial
patch.

Change-Id: If50a54d282dd7d901c16edb9fe04874bdd83c9ef
Co-Authored-By: Joshua Harlow <jxharlow@godaddy.com>
Co-Authored-By: Sorin Sbarnea <ssbarnea@redhat.com>
Co-Authored-By: Thanh Ha <zxiiro@linux.com>
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
Signed-off-by: Thanh Ha <zxiiro@linux.com>
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2018-03-15 16:51:32 +00:00