jenkins-job-builder/tests/triggers/fixtures/gitlab-merge-request002.xml
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

17 lines
617 B
XML

<?xml version="1.0" encoding="utf-8"?>
<project>
<triggers class="vector">
<org.jenkinsci.plugins.gitlab.GitlabBuildTrigger>
<spec>* * * * *</spec>
<projectPath>test/project</projectPath>
<targetBranchRegex>(.*release.*|.*hotfix.*)</targetBranchRegex>
<useHttpUrl>false</useHttpUrl>
<assigneeFilter>jenkinsbot</assigneeFilter>
<tagFilter>fix</tagFilter>
<triggerComment>rebuild</triggerComment>
<autoCloseFailed>false</autoCloseFailed>
<autoMergePassed>false</autoMergePassed>
</org.jenkinsci.plugins.gitlab.GitlabBuildTrigger>
</triggers>
</project>