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>
This commit is contained in:
parent
28e43831e9
commit
987dbc4d2b
@ -1175,6 +1175,8 @@ def github_pull_request(registry, xml_parent, data):
|
|||||||
in the pull request will trigger a build (default false)
|
in the pull request will trigger a build (default false)
|
||||||
:arg str skip-build-phrase: when filled, adding this phrase to
|
:arg str skip-build-phrase: when filled, adding this phrase to
|
||||||
the pull request title or body will not trigger a build (optional)
|
the pull request title or body will not trigger a build (optional)
|
||||||
|
:arg list black-list-commit-author: When filled, pull request commits from this user(s)
|
||||||
|
will not trigger a build (optional)
|
||||||
:arg str black-list-labels: list of GitHub labels for which the build
|
:arg str black-list-labels: list of GitHub labels for which the build
|
||||||
should not be triggered (optional)
|
should not be triggered (optional)
|
||||||
:arg str white-list-labels: list of GitHub labels for which the build
|
:arg str white-list-labels: list of GitHub labels for which the build
|
||||||
@ -1184,6 +1186,8 @@ def github_pull_request(registry, xml_parent, data):
|
|||||||
without asking (default false)
|
without asking (default false)
|
||||||
:arg bool auto-close-on-fail: close failed pull request automatically
|
:arg bool auto-close-on-fail: close failed pull request automatically
|
||||||
(default false)
|
(default false)
|
||||||
|
:arg bool display-build-errors-on-downstream-builds: Display build errors on downstream builds
|
||||||
|
(default false)
|
||||||
:arg list white-list-target-branches: Adding branches to this whitelist
|
:arg list white-list-target-branches: Adding branches to this whitelist
|
||||||
allows you to selectively test pull requests destined for these
|
allows you to selectively test pull requests destined for these
|
||||||
branches only. Supports regular expressions (e.g. 'master',
|
branches only. Supports regular expressions (e.g. 'master',
|
||||||
@ -1218,6 +1222,9 @@ def github_pull_request(registry, xml_parent, data):
|
|||||||
(optional)
|
(optional)
|
||||||
:arg bool cancel-builds-on-update: cancel existing builds when a PR is
|
:arg bool cancel-builds-on-update: cancel existing builds when a PR is
|
||||||
updated (optional)
|
updated (optional)
|
||||||
|
:arg str comment-file: Extends the standard build comment message on
|
||||||
|
github with a custom message file. (optional)
|
||||||
|
:arg bool no-commit-status: Enables "Do not update commit status"
|
||||||
:arg list included-regions: Each inclusion uses regular expression pattern
|
:arg list included-regions: Each inclusion uses regular expression pattern
|
||||||
matching, and must be separated by a new line. An empty list implies
|
matching, and must be separated by a new line. An empty list implies
|
||||||
that everything is included. (optional)
|
that everything is included. (optional)
|
||||||
@ -1240,26 +1247,37 @@ def github_pull_request(registry, xml_parent, data):
|
|||||||
"""
|
"""
|
||||||
ghprb = XML.SubElement(xml_parent, "org.jenkinsci.plugins.ghprb." "GhprbTrigger")
|
ghprb = XML.SubElement(xml_parent, "org.jenkinsci.plugins.ghprb." "GhprbTrigger")
|
||||||
mapping = [
|
mapping = [
|
||||||
("cron", "spec", ""),
|
|
||||||
(
|
(
|
||||||
"allow-whitelist-orgs-as-admins",
|
"allow-whitelist-orgs-as-admins",
|
||||||
"allowMembersOfWhitelistedOrgsAsAdmin",
|
"allowMembersOfWhitelistedOrgsAsAdmin",
|
||||||
False,
|
False,
|
||||||
),
|
),
|
||||||
("cron", "cron", ""),
|
|
||||||
("trigger-phrase", "triggerPhrase", ""),
|
("trigger-phrase", "triggerPhrase", ""),
|
||||||
("skip-build-phrase", "skipBuildPhrase", ""),
|
("skip-build-phrase", "skipBuildPhrase", ""),
|
||||||
("only-trigger-phrase", "onlyTriggerPhrase", False),
|
("only-trigger-phrase", "onlyTriggerPhrase", False),
|
||||||
("github-hooks", "useGitHubHooks", False),
|
("github-hooks", "useGitHubHooks", False),
|
||||||
("permit-all", "permitAll", False),
|
("permit-all", "permitAll", False),
|
||||||
("auto-close-on-fail", "autoCloseFailedPullRequests", False),
|
("auto-close-on-fail", "autoCloseFailedPullRequests", False),
|
||||||
|
(
|
||||||
|
"display-build-errors-on-downstream-builds",
|
||||||
|
"displayBuildErrorsOnDownstreamBuilds",
|
||||||
|
False,
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
XML.SubElement(ghprb, "configVersion").text = "3"
|
||||||
|
cron_string = data.get("cron", "") or ""
|
||||||
|
XML.SubElement(ghprb, "spec").text = cron_string
|
||||||
|
XML.SubElement(ghprb, "cron").text = cron_string
|
||||||
admin_string = "\n".join(data.get("admin-list", []))
|
admin_string = "\n".join(data.get("admin-list", []))
|
||||||
XML.SubElement(ghprb, "adminlist").text = admin_string
|
XML.SubElement(ghprb, "adminlist").text = admin_string
|
||||||
white_string = "\n".join(data.get("white-list", []))
|
white_string = "\n".join(data.get("white-list", []))
|
||||||
XML.SubElement(ghprb, "whitelist").text = white_string
|
XML.SubElement(ghprb, "whitelist").text = white_string
|
||||||
org_string = "\n".join(data.get("org-list", []))
|
org_string = "\n".join(data.get("org-list", []))
|
||||||
XML.SubElement(ghprb, "orgslist").text = org_string
|
XML.SubElement(ghprb, "orgslist").text = org_string
|
||||||
|
black_list_commit_author_string = " ".join(data.get("black-list-commit-author", ""))
|
||||||
|
XML.SubElement(
|
||||||
|
ghprb, "blackListCommitAuthor"
|
||||||
|
).text = black_list_commit_author_string
|
||||||
white_list_labels_string = "\n".join(data.get("white-list-labels", []))
|
white_list_labels_string = "\n".join(data.get("white-list-labels", []))
|
||||||
XML.SubElement(ghprb, "whiteListLabels").text = white_list_labels_string
|
XML.SubElement(ghprb, "whiteListLabels").text = white_list_labels_string
|
||||||
black_list_labels_string = "\n".join(data.get("black-list-labels", []))
|
black_list_labels_string = "\n".join(data.get("black-list-labels", []))
|
||||||
@ -1272,11 +1290,13 @@ def github_pull_request(registry, xml_parent, data):
|
|||||||
build_desc_template = data.get("build-desc-template", "")
|
build_desc_template = data.get("build-desc-template", "")
|
||||||
if build_desc_template:
|
if build_desc_template:
|
||||||
XML.SubElement(ghprb, "buildDescTemplate").text = str(build_desc_template)
|
XML.SubElement(ghprb, "buildDescTemplate").text = str(build_desc_template)
|
||||||
|
else:
|
||||||
|
XML.SubElement(ghprb, "buildDescTemplate")
|
||||||
|
|
||||||
helpers.convert_mapping_to_xml(ghprb, data, mapping, fail_required=False)
|
helpers.convert_mapping_to_xml(ghprb, data, mapping, fail_required=False)
|
||||||
white_list_target_branches = data.get("white-list-target-branches", [])
|
white_list_target_branches = data.get("white-list-target-branches", [])
|
||||||
|
ghprb_wltb = XML.SubElement(ghprb, "whiteListTargetBranches")
|
||||||
if white_list_target_branches:
|
if white_list_target_branches:
|
||||||
ghprb_wltb = XML.SubElement(ghprb, "whiteListTargetBranches")
|
|
||||||
for branch in white_list_target_branches:
|
for branch in white_list_target_branches:
|
||||||
be = XML.SubElement(
|
be = XML.SubElement(
|
||||||
ghprb_wltb, "org.jenkinsci.plugins." "ghprb.GhprbBranch"
|
ghprb_wltb, "org.jenkinsci.plugins." "ghprb.GhprbBranch"
|
||||||
@ -1284,8 +1304,8 @@ def github_pull_request(registry, xml_parent, data):
|
|||||||
XML.SubElement(be, "branch").text = str(branch)
|
XML.SubElement(be, "branch").text = str(branch)
|
||||||
|
|
||||||
black_list_target_branches = data.get("black-list-target-branches", [])
|
black_list_target_branches = data.get("black-list-target-branches", [])
|
||||||
|
ghprb_bltb = XML.SubElement(ghprb, "blackListTargetBranches")
|
||||||
if black_list_target_branches:
|
if black_list_target_branches:
|
||||||
ghprb_bltb = XML.SubElement(ghprb, "blackListTargetBranches")
|
|
||||||
for branch in black_list_target_branches:
|
for branch in black_list_target_branches:
|
||||||
be = XML.SubElement(
|
be = XML.SubElement(
|
||||||
ghprb_bltb, "org.jenkinsci.plugins." "ghprb.GhprbBranch"
|
ghprb_bltb, "org.jenkinsci.plugins." "ghprb.GhprbBranch"
|
||||||
@ -1301,7 +1321,7 @@ def github_pull_request(registry, xml_parent, data):
|
|||||||
triggered_status = data.get("triggered-status", "")
|
triggered_status = data.get("triggered-status", "")
|
||||||
started_status = data.get("started-status", "")
|
started_status = data.get("started-status", "")
|
||||||
status_url = data.get("status-url", "")
|
status_url = data.get("status-url", "")
|
||||||
status_add_test_results = data.get("status-add-test-results", "")
|
status_add_test_results = data.get("status-add-test-results", False)
|
||||||
success_status = data.get("success-status", "")
|
success_status = data.get("success-status", "")
|
||||||
failure_status = data.get("failure-status", "")
|
failure_status = data.get("failure-status", "")
|
||||||
error_status = data.get("error-status", "")
|
error_status = data.get("error-status", "")
|
||||||
@ -1333,9 +1353,18 @@ def github_pull_request(registry, xml_parent, data):
|
|||||||
str(data.get("cancel-builds-on-update", False)).lower() == "true"
|
str(data.get("cancel-builds-on-update", False)).lower() == "true"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
comment_file = data.get("comment-file", "")
|
||||||
|
no_commit_status = data.get("no-commit-status", False)
|
||||||
|
|
||||||
# We want to have only one 'extensions' subelement, even if status
|
# We want to have only one 'extensions' subelement, even if status
|
||||||
# handling, comment handling and other extensions are enabled.
|
# handling, comment handling and other extensions are enabled.
|
||||||
if requires_status or requires_job_comment or cancel_builds_on_update:
|
if (
|
||||||
|
requires_status
|
||||||
|
or requires_job_comment
|
||||||
|
or cancel_builds_on_update
|
||||||
|
or comment_file
|
||||||
|
or no_commit_status
|
||||||
|
):
|
||||||
extensions = XML.SubElement(ghprb, "extensions")
|
extensions = XML.SubElement(ghprb, "extensions")
|
||||||
|
|
||||||
# Both comment and status elements have this same type. Using a const is
|
# Both comment and status elements have this same type. Using a const is
|
||||||
@ -1349,22 +1378,24 @@ def github_pull_request(registry, xml_parent, data):
|
|||||||
extensions,
|
extensions,
|
||||||
"org.jenkinsci.plugins" ".ghprb.extensions.status." "GhprbSimpleStatus",
|
"org.jenkinsci.plugins" ".ghprb.extensions.status." "GhprbSimpleStatus",
|
||||||
)
|
)
|
||||||
|
commit_status_context_element = XML.SubElement(
|
||||||
|
simple_status, "commitStatusContext"
|
||||||
|
)
|
||||||
|
triggered_status_element = XML.SubElement(simple_status, "triggeredStatus")
|
||||||
|
started_status_element = XML.SubElement(simple_status, "startedStatus")
|
||||||
|
status_url_element = XML.SubElement(simple_status, "statusUrl")
|
||||||
if status_context:
|
if status_context:
|
||||||
XML.SubElement(simple_status, "commitStatusContext").text = str(
|
commit_status_context_element.text = str(status_context)
|
||||||
status_context
|
|
||||||
)
|
|
||||||
if triggered_status:
|
if triggered_status:
|
||||||
XML.SubElement(simple_status, "triggeredStatus").text = str(
|
triggered_status_element.text = str(triggered_status)
|
||||||
triggered_status
|
|
||||||
)
|
|
||||||
if started_status:
|
if started_status:
|
||||||
XML.SubElement(simple_status, "startedStatus").text = str(started_status)
|
started_status_element.text = str(started_status)
|
||||||
if status_url:
|
if status_url:
|
||||||
XML.SubElement(simple_status, "statusUrl").text = str(status_url)
|
status_url_element.text = str(status_url)
|
||||||
if status_add_test_results:
|
|
||||||
XML.SubElement(simple_status, "addTestResults").text = str(
|
XML.SubElement(simple_status, "addTestResults").text = str(
|
||||||
status_add_test_results
|
status_add_test_results
|
||||||
).lower()
|
).lower()
|
||||||
|
|
||||||
if requires_status_message:
|
if requires_status_message:
|
||||||
completed_elem = XML.SubElement(simple_status, "completedStatus")
|
completed_elem = XML.SubElement(simple_status, "completedStatus")
|
||||||
@ -1407,6 +1438,20 @@ def github_pull_request(registry, xml_parent, data):
|
|||||||
"org.jenkinsci.plugins.ghprb.extensions." "build.GhprbCancelBuildsOnUpdate",
|
"org.jenkinsci.plugins.ghprb.extensions." "build.GhprbCancelBuildsOnUpdate",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if comment_file:
|
||||||
|
comment_file_tag = XML.SubElement(
|
||||||
|
extensions,
|
||||||
|
"org.jenkinsci.plugins.ghprb.extensions." "comments.GhprbCommentFile",
|
||||||
|
)
|
||||||
|
comment_file_path_elem = XML.SubElement(comment_file_tag, "commentFilePath")
|
||||||
|
comment_file_path_elem.text = str(comment_file)
|
||||||
|
|
||||||
|
if no_commit_status:
|
||||||
|
XML.SubElement(
|
||||||
|
extensions,
|
||||||
|
"org.jenkinsci.plugins.ghprb.extensions." "status.GhprbNoCommitStatus",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def gitlab_merge_request(registry, xml_parent, data):
|
def gitlab_merge_request(registry, xml_parent, data):
|
||||||
"""yaml: gitlab-merge-request
|
"""yaml: gitlab-merge-request
|
||||||
|
@ -2,25 +2,31 @@
|
|||||||
<project>
|
<project>
|
||||||
<triggers class="vector">
|
<triggers class="vector">
|
||||||
<org.jenkinsci.plugins.ghprb.GhprbTrigger>
|
<org.jenkinsci.plugins.ghprb.GhprbTrigger>
|
||||||
|
<configVersion>3</configVersion>
|
||||||
|
<spec>* * * * *</spec>
|
||||||
|
<cron>* * * * *</cron>
|
||||||
<adminlist>user1
|
<adminlist>user1
|
||||||
user2</adminlist>
|
user2</adminlist>
|
||||||
<whitelist>user3
|
<whitelist>user3
|
||||||
user4</whitelist>
|
user4</whitelist>
|
||||||
<orgslist>org1
|
<orgslist>org1
|
||||||
org2</orgslist>
|
org2</orgslist>
|
||||||
|
<blackListCommitAuthor/>
|
||||||
<whiteListLabels/>
|
<whiteListLabels/>
|
||||||
<blackListLabels/>
|
<blackListLabels/>
|
||||||
<excludedRegions/>
|
<excludedRegions/>
|
||||||
<includedRegions/>
|
<includedRegions/>
|
||||||
<spec>* * * * *</spec>
|
<buildDescTemplate/>
|
||||||
<allowMembersOfWhitelistedOrgsAsAdmin>true</allowMembersOfWhitelistedOrgsAsAdmin>
|
<allowMembersOfWhitelistedOrgsAsAdmin>true</allowMembersOfWhitelistedOrgsAsAdmin>
|
||||||
<cron>* * * * *</cron>
|
|
||||||
<triggerPhrase>retest this please</triggerPhrase>
|
<triggerPhrase>retest this please</triggerPhrase>
|
||||||
<skipBuildPhrase/>
|
<skipBuildPhrase/>
|
||||||
<onlyTriggerPhrase>true</onlyTriggerPhrase>
|
<onlyTriggerPhrase>true</onlyTriggerPhrase>
|
||||||
<useGitHubHooks>true</useGitHubHooks>
|
<useGitHubHooks>true</useGitHubHooks>
|
||||||
<permitAll>false</permitAll>
|
<permitAll>false</permitAll>
|
||||||
<autoCloseFailedPullRequests>false</autoCloseFailedPullRequests>
|
<autoCloseFailedPullRequests>false</autoCloseFailedPullRequests>
|
||||||
|
<displayBuildErrorsOnDownstreamBuilds>false</displayBuildErrorsOnDownstreamBuilds>
|
||||||
|
<whiteListTargetBranches/>
|
||||||
|
<blackListTargetBranches/>
|
||||||
<extensions>
|
<extensions>
|
||||||
<org.jenkinsci.plugins.ghprb.extensions.comments.GhprbBuildStatus>
|
<org.jenkinsci.plugins.ghprb.extensions.comments.GhprbBuildStatus>
|
||||||
<messages>
|
<messages>
|
||||||
|
@ -2,12 +2,16 @@
|
|||||||
<project>
|
<project>
|
||||||
<triggers class="vector">
|
<triggers class="vector">
|
||||||
<org.jenkinsci.plugins.ghprb.GhprbTrigger>
|
<org.jenkinsci.plugins.ghprb.GhprbTrigger>
|
||||||
|
<configVersion>3</configVersion>
|
||||||
|
<spec>* * * * *</spec>
|
||||||
|
<cron>* * * * *</cron>
|
||||||
<adminlist>user1
|
<adminlist>user1
|
||||||
user2</adminlist>
|
user2</adminlist>
|
||||||
<whitelist>user3
|
<whitelist>user3
|
||||||
user4</whitelist>
|
user4</whitelist>
|
||||||
<orgslist>org1
|
<orgslist>org1
|
||||||
org2</orgslist>
|
org2</orgslist>
|
||||||
|
<blackListCommitAuthor>blacklist commit author</blackListCommitAuthor>
|
||||||
<whiteListLabels>label1
|
<whiteListLabels>label1
|
||||||
label2</whiteListLabels>
|
label2</whiteListLabels>
|
||||||
<blackListLabels>label3
|
<blackListLabels>label3
|
||||||
@ -17,15 +21,14 @@ region</excludedRegions>
|
|||||||
<includedRegions>include
|
<includedRegions>include
|
||||||
region</includedRegions>
|
region</includedRegions>
|
||||||
<buildDescTemplate>build description</buildDescTemplate>
|
<buildDescTemplate>build description</buildDescTemplate>
|
||||||
<spec>* * * * *</spec>
|
|
||||||
<allowMembersOfWhitelistedOrgsAsAdmin>true</allowMembersOfWhitelistedOrgsAsAdmin>
|
<allowMembersOfWhitelistedOrgsAsAdmin>true</allowMembersOfWhitelistedOrgsAsAdmin>
|
||||||
<cron>* * * * *</cron>
|
|
||||||
<triggerPhrase>retest this please</triggerPhrase>
|
<triggerPhrase>retest this please</triggerPhrase>
|
||||||
<skipBuildPhrase>no tests</skipBuildPhrase>
|
<skipBuildPhrase>no tests</skipBuildPhrase>
|
||||||
<onlyTriggerPhrase>true</onlyTriggerPhrase>
|
<onlyTriggerPhrase>true</onlyTriggerPhrase>
|
||||||
<useGitHubHooks>true</useGitHubHooks>
|
<useGitHubHooks>true</useGitHubHooks>
|
||||||
<permitAll>true</permitAll>
|
<permitAll>true</permitAll>
|
||||||
<autoCloseFailedPullRequests>false</autoCloseFailedPullRequests>
|
<autoCloseFailedPullRequests>false</autoCloseFailedPullRequests>
|
||||||
|
<displayBuildErrorsOnDownstreamBuilds>true</displayBuildErrorsOnDownstreamBuilds>
|
||||||
<whiteListTargetBranches>
|
<whiteListTargetBranches>
|
||||||
<org.jenkinsci.plugins.ghprb.GhprbBranch>
|
<org.jenkinsci.plugins.ghprb.GhprbBranch>
|
||||||
<branch>master</branch>
|
<branch>master</branch>
|
||||||
@ -49,7 +52,7 @@ region</includedRegions>
|
|||||||
<triggeredStatus>triggered status message</triggeredStatus>
|
<triggeredStatus>triggered status message</triggeredStatus>
|
||||||
<startedStatus>started</startedStatus>
|
<startedStatus>started</startedStatus>
|
||||||
<statusUrl>url/to/status</statusUrl>
|
<statusUrl>url/to/status</statusUrl>
|
||||||
<addTestResults>test result with status message</addTestResults>
|
<addTestResults>false</addTestResults>
|
||||||
<completedStatus>
|
<completedStatus>
|
||||||
<org.jenkinsci.plugins.ghprb.extensions.comments.GhprbBuildResultMessage>
|
<org.jenkinsci.plugins.ghprb.extensions.comments.GhprbBuildResultMessage>
|
||||||
<message>success message</message>
|
<message>success message</message>
|
||||||
@ -82,6 +85,10 @@ region</includedRegions>
|
|||||||
</messages>
|
</messages>
|
||||||
</org.jenkinsci.plugins.ghprb.extensions.comments.GhprbBuildStatus>
|
</org.jenkinsci.plugins.ghprb.extensions.comments.GhprbBuildStatus>
|
||||||
<org.jenkinsci.plugins.ghprb.extensions.build.GhprbCancelBuildsOnUpdate/>
|
<org.jenkinsci.plugins.ghprb.extensions.build.GhprbCancelBuildsOnUpdate/>
|
||||||
|
<org.jenkinsci.plugins.ghprb.extensions.comments.GhprbCommentFile>
|
||||||
|
<commentFilePath>/tmp/path</commentFilePath>
|
||||||
|
</org.jenkinsci.plugins.ghprb.extensions.comments.GhprbCommentFile>
|
||||||
|
<org.jenkinsci.plugins.ghprb.extensions.status.GhprbNoCommitStatus/>
|
||||||
</extensions>
|
</extensions>
|
||||||
</org.jenkinsci.plugins.ghprb.GhprbTrigger>
|
</org.jenkinsci.plugins.ghprb.GhprbTrigger>
|
||||||
</triggers>
|
</triggers>
|
||||||
|
@ -19,10 +19,15 @@ triggers:
|
|||||||
build-desc-template: "build description"
|
build-desc-template: "build description"
|
||||||
trigger-phrase: 'retest this please'
|
trigger-phrase: 'retest this please'
|
||||||
skip-build-phrase: 'no tests'
|
skip-build-phrase: 'no tests'
|
||||||
|
black-list-commit-author:
|
||||||
|
- blacklist
|
||||||
|
- commit
|
||||||
|
- author
|
||||||
only-trigger-phrase: true
|
only-trigger-phrase: true
|
||||||
github-hooks: true
|
github-hooks: true
|
||||||
permit-all: true
|
permit-all: true
|
||||||
auto-close-on-fail: false
|
auto-close-on-fail: false
|
||||||
|
display-build-errors-on-downstream-builds: true
|
||||||
allow-whitelist-orgs-as-admins: true
|
allow-whitelist-orgs-as-admins: true
|
||||||
white-list-target-branches:
|
white-list-target-branches:
|
||||||
- master
|
- master
|
||||||
@ -35,7 +40,7 @@ triggers:
|
|||||||
triggered-status: "triggered status message"
|
triggered-status: "triggered status message"
|
||||||
started-status: "started"
|
started-status: "started"
|
||||||
status-url: "url/to/status"
|
status-url: "url/to/status"
|
||||||
status-add-test-results: "test result with status message"
|
status-add-test-results: false
|
||||||
success-status: "success message"
|
success-status: "success message"
|
||||||
failure-status: "failure message"
|
failure-status: "failure message"
|
||||||
error-status: "error message"
|
error-status: "error message"
|
||||||
@ -43,6 +48,8 @@ triggers:
|
|||||||
failure-comment: "failure comment"
|
failure-comment: "failure comment"
|
||||||
error-comment: "error-comment"
|
error-comment: "error-comment"
|
||||||
cancel-builds-on-update: true
|
cancel-builds-on-update: true
|
||||||
|
comment-file: "/tmp/path"
|
||||||
|
no-commit-status: true
|
||||||
included-regions:
|
included-regions:
|
||||||
- include
|
- include
|
||||||
- region
|
- region
|
||||||
|
@ -2,22 +2,28 @@
|
|||||||
<project>
|
<project>
|
||||||
<triggers class="vector">
|
<triggers class="vector">
|
||||||
<org.jenkinsci.plugins.ghprb.GhprbTrigger>
|
<org.jenkinsci.plugins.ghprb.GhprbTrigger>
|
||||||
|
<configVersion>3</configVersion>
|
||||||
|
<spec/>
|
||||||
|
<cron/>
|
||||||
<adminlist/>
|
<adminlist/>
|
||||||
<whitelist/>
|
<whitelist/>
|
||||||
<orgslist/>
|
<orgslist/>
|
||||||
|
<blackListCommitAuthor/>
|
||||||
<whiteListLabels/>
|
<whiteListLabels/>
|
||||||
<blackListLabels/>
|
<blackListLabels/>
|
||||||
<excludedRegions/>
|
<excludedRegions/>
|
||||||
<includedRegions/>
|
<includedRegions/>
|
||||||
<spec/>
|
<buildDescTemplate/>
|
||||||
<allowMembersOfWhitelistedOrgsAsAdmin>false</allowMembersOfWhitelistedOrgsAsAdmin>
|
<allowMembersOfWhitelistedOrgsAsAdmin>false</allowMembersOfWhitelistedOrgsAsAdmin>
|
||||||
<cron/>
|
|
||||||
<triggerPhrase/>
|
<triggerPhrase/>
|
||||||
<skipBuildPhrase/>
|
<skipBuildPhrase/>
|
||||||
<onlyTriggerPhrase>false</onlyTriggerPhrase>
|
<onlyTriggerPhrase>false</onlyTriggerPhrase>
|
||||||
<useGitHubHooks>false</useGitHubHooks>
|
<useGitHubHooks>false</useGitHubHooks>
|
||||||
<permitAll>false</permitAll>
|
<permitAll>false</permitAll>
|
||||||
<autoCloseFailedPullRequests>false</autoCloseFailedPullRequests>
|
<autoCloseFailedPullRequests>false</autoCloseFailedPullRequests>
|
||||||
|
<displayBuildErrorsOnDownstreamBuilds>false</displayBuildErrorsOnDownstreamBuilds>
|
||||||
|
<whiteListTargetBranches/>
|
||||||
|
<blackListTargetBranches/>
|
||||||
</org.jenkinsci.plugins.ghprb.GhprbTrigger>
|
</org.jenkinsci.plugins.ghprb.GhprbTrigger>
|
||||||
</triggers>
|
</triggers>
|
||||||
</project>
|
</project>
|
||||||
|
@ -2,25 +2,31 @@
|
|||||||
<project>
|
<project>
|
||||||
<triggers class="vector">
|
<triggers class="vector">
|
||||||
<org.jenkinsci.plugins.ghprb.GhprbTrigger>
|
<org.jenkinsci.plugins.ghprb.GhprbTrigger>
|
||||||
|
<configVersion>3</configVersion>
|
||||||
|
<spec>* * * * *</spec>
|
||||||
|
<cron>* * * * *</cron>
|
||||||
<adminlist>user1
|
<adminlist>user1
|
||||||
user2</adminlist>
|
user2</adminlist>
|
||||||
<whitelist>user3
|
<whitelist>user3
|
||||||
user4</whitelist>
|
user4</whitelist>
|
||||||
<orgslist>org1
|
<orgslist>org1
|
||||||
org2</orgslist>
|
org2</orgslist>
|
||||||
|
<blackListCommitAuthor/>
|
||||||
<whiteListLabels/>
|
<whiteListLabels/>
|
||||||
<blackListLabels/>
|
<blackListLabels/>
|
||||||
<excludedRegions/>
|
<excludedRegions/>
|
||||||
<includedRegions/>
|
<includedRegions/>
|
||||||
<spec>* * * * *</spec>
|
<buildDescTemplate/>
|
||||||
<allowMembersOfWhitelistedOrgsAsAdmin>true</allowMembersOfWhitelistedOrgsAsAdmin>
|
<allowMembersOfWhitelistedOrgsAsAdmin>true</allowMembersOfWhitelistedOrgsAsAdmin>
|
||||||
<cron>* * * * *</cron>
|
|
||||||
<triggerPhrase>retest this please</triggerPhrase>
|
<triggerPhrase>retest this please</triggerPhrase>
|
||||||
<skipBuildPhrase/>
|
<skipBuildPhrase/>
|
||||||
<onlyTriggerPhrase>true</onlyTriggerPhrase>
|
<onlyTriggerPhrase>true</onlyTriggerPhrase>
|
||||||
<useGitHubHooks>true</useGitHubHooks>
|
<useGitHubHooks>true</useGitHubHooks>
|
||||||
<permitAll>false</permitAll>
|
<permitAll>false</permitAll>
|
||||||
<autoCloseFailedPullRequests>false</autoCloseFailedPullRequests>
|
<autoCloseFailedPullRequests>false</autoCloseFailedPullRequests>
|
||||||
|
<displayBuildErrorsOnDownstreamBuilds>false</displayBuildErrorsOnDownstreamBuilds>
|
||||||
|
<whiteListTargetBranches/>
|
||||||
|
<blackListTargetBranches/>
|
||||||
<extensions>
|
<extensions>
|
||||||
<org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus>
|
<org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus>
|
||||||
<commitStatusContext>test status context</commitStatusContext>
|
<commitStatusContext>test status context</commitStatusContext>
|
||||||
|
@ -2,25 +2,31 @@
|
|||||||
<project>
|
<project>
|
||||||
<triggers class="vector">
|
<triggers class="vector">
|
||||||
<org.jenkinsci.plugins.ghprb.GhprbTrigger>
|
<org.jenkinsci.plugins.ghprb.GhprbTrigger>
|
||||||
|
<configVersion>3</configVersion>
|
||||||
|
<spec>* * * * *</spec>
|
||||||
|
<cron>* * * * *</cron>
|
||||||
<adminlist>user1
|
<adminlist>user1
|
||||||
user2</adminlist>
|
user2</adminlist>
|
||||||
<whitelist>user3
|
<whitelist>user3
|
||||||
user4</whitelist>
|
user4</whitelist>
|
||||||
<orgslist>org1
|
<orgslist>org1
|
||||||
org2</orgslist>
|
org2</orgslist>
|
||||||
|
<blackListCommitAuthor/>
|
||||||
<whiteListLabels/>
|
<whiteListLabels/>
|
||||||
<blackListLabels/>
|
<blackListLabels/>
|
||||||
<excludedRegions/>
|
<excludedRegions/>
|
||||||
<includedRegions/>
|
<includedRegions/>
|
||||||
<spec>* * * * *</spec>
|
<buildDescTemplate/>
|
||||||
<allowMembersOfWhitelistedOrgsAsAdmin>true</allowMembersOfWhitelistedOrgsAsAdmin>
|
<allowMembersOfWhitelistedOrgsAsAdmin>true</allowMembersOfWhitelistedOrgsAsAdmin>
|
||||||
<cron>* * * * *</cron>
|
|
||||||
<triggerPhrase>retest this please</triggerPhrase>
|
<triggerPhrase>retest this please</triggerPhrase>
|
||||||
<skipBuildPhrase/>
|
<skipBuildPhrase/>
|
||||||
<onlyTriggerPhrase>true</onlyTriggerPhrase>
|
<onlyTriggerPhrase>true</onlyTriggerPhrase>
|
||||||
<useGitHubHooks>true</useGitHubHooks>
|
<useGitHubHooks>true</useGitHubHooks>
|
||||||
<permitAll>false</permitAll>
|
<permitAll>false</permitAll>
|
||||||
<autoCloseFailedPullRequests>false</autoCloseFailedPullRequests>
|
<autoCloseFailedPullRequests>false</autoCloseFailedPullRequests>
|
||||||
|
<displayBuildErrorsOnDownstreamBuilds>false</displayBuildErrorsOnDownstreamBuilds>
|
||||||
|
<whiteListTargetBranches/>
|
||||||
|
<blackListTargetBranches/>
|
||||||
<extensions>
|
<extensions>
|
||||||
<org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus>
|
<org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus>
|
||||||
<commitStatusContext>test status context</commitStatusContext>
|
<commitStatusContext>test status context</commitStatusContext>
|
||||||
|
@ -11,22 +11,28 @@
|
|||||||
<scm class="hudson.scm.NullSCM"/>
|
<scm class="hudson.scm.NullSCM"/>
|
||||||
<triggers class="vector">
|
<triggers class="vector">
|
||||||
<org.jenkinsci.plugins.ghprb.GhprbTrigger>
|
<org.jenkinsci.plugins.ghprb.GhprbTrigger>
|
||||||
|
<configVersion>3</configVersion>
|
||||||
|
<spec/>
|
||||||
|
<cron/>
|
||||||
<adminlist/>
|
<adminlist/>
|
||||||
<whitelist/>
|
<whitelist/>
|
||||||
<orgslist/>
|
<orgslist/>
|
||||||
|
<blackListCommitAuthor/>
|
||||||
<whiteListLabels/>
|
<whiteListLabels/>
|
||||||
<blackListLabels/>
|
<blackListLabels/>
|
||||||
<excludedRegions/>
|
<excludedRegions/>
|
||||||
<includedRegions/>
|
<includedRegions/>
|
||||||
<spec/>
|
<buildDescTemplate/>
|
||||||
<allowMembersOfWhitelistedOrgsAsAdmin>false</allowMembersOfWhitelistedOrgsAsAdmin>
|
<allowMembersOfWhitelistedOrgsAsAdmin>false</allowMembersOfWhitelistedOrgsAsAdmin>
|
||||||
<cron/>
|
|
||||||
<triggerPhrase/>
|
<triggerPhrase/>
|
||||||
<skipBuildPhrase/>
|
<skipBuildPhrase/>
|
||||||
<onlyTriggerPhrase>false</onlyTriggerPhrase>
|
<onlyTriggerPhrase>false</onlyTriggerPhrase>
|
||||||
<useGitHubHooks>false</useGitHubHooks>
|
<useGitHubHooks>false</useGitHubHooks>
|
||||||
<permitAll>false</permitAll>
|
<permitAll>false</permitAll>
|
||||||
<autoCloseFailedPullRequests>false</autoCloseFailedPullRequests>
|
<autoCloseFailedPullRequests>false</autoCloseFailedPullRequests>
|
||||||
|
<displayBuildErrorsOnDownstreamBuilds>false</displayBuildErrorsOnDownstreamBuilds>
|
||||||
|
<whiteListTargetBranches/>
|
||||||
|
<blackListTargetBranches/>
|
||||||
<extensions>
|
<extensions>
|
||||||
<org.jenkinsci.plugins.ghprb.extensions.build.GhprbCancelBuildsOnUpdate/>
|
<org.jenkinsci.plugins.ghprb.extensions.build.GhprbCancelBuildsOnUpdate/>
|
||||||
</extensions>
|
</extensions>
|
||||||
|
@ -11,22 +11,28 @@
|
|||||||
<scm class="hudson.scm.NullSCM"/>
|
<scm class="hudson.scm.NullSCM"/>
|
||||||
<triggers class="vector">
|
<triggers class="vector">
|
||||||
<org.jenkinsci.plugins.ghprb.GhprbTrigger>
|
<org.jenkinsci.plugins.ghprb.GhprbTrigger>
|
||||||
|
<configVersion>3</configVersion>
|
||||||
|
<spec/>
|
||||||
|
<cron/>
|
||||||
<adminlist/>
|
<adminlist/>
|
||||||
<whitelist/>
|
<whitelist/>
|
||||||
<orgslist/>
|
<orgslist/>
|
||||||
|
<blackListCommitAuthor/>
|
||||||
<whiteListLabels/>
|
<whiteListLabels/>
|
||||||
<blackListLabels/>
|
<blackListLabels/>
|
||||||
<excludedRegions/>
|
<excludedRegions/>
|
||||||
<includedRegions/>
|
<includedRegions/>
|
||||||
<spec/>
|
<buildDescTemplate/>
|
||||||
<allowMembersOfWhitelistedOrgsAsAdmin>false</allowMembersOfWhitelistedOrgsAsAdmin>
|
<allowMembersOfWhitelistedOrgsAsAdmin>false</allowMembersOfWhitelistedOrgsAsAdmin>
|
||||||
<cron/>
|
|
||||||
<triggerPhrase/>
|
<triggerPhrase/>
|
||||||
<skipBuildPhrase/>
|
<skipBuildPhrase/>
|
||||||
<onlyTriggerPhrase>false</onlyTriggerPhrase>
|
<onlyTriggerPhrase>false</onlyTriggerPhrase>
|
||||||
<useGitHubHooks>false</useGitHubHooks>
|
<useGitHubHooks>false</useGitHubHooks>
|
||||||
<permitAll>false</permitAll>
|
<permitAll>false</permitAll>
|
||||||
<autoCloseFailedPullRequests>false</autoCloseFailedPullRequests>
|
<autoCloseFailedPullRequests>false</autoCloseFailedPullRequests>
|
||||||
|
<displayBuildErrorsOnDownstreamBuilds>false</displayBuildErrorsOnDownstreamBuilds>
|
||||||
|
<whiteListTargetBranches/>
|
||||||
|
<blackListTargetBranches/>
|
||||||
</org.jenkinsci.plugins.ghprb.GhprbTrigger>
|
</org.jenkinsci.plugins.ghprb.GhprbTrigger>
|
||||||
</triggers>
|
</triggers>
|
||||||
<builders/>
|
<builders/>
|
||||||
|
Loading…
Reference in New Issue
Block a user