diff options
Diffstat (limited to 'tests/triggers')
6 files changed, 50 insertions, 12 deletions
diff --git a/tests/triggers/fixtures/github-pull-request-comments.xml b/tests/triggers/fixtures/github-pull-request-comments.xml index 7b2c151e..ef6b231f 100644 --- a/tests/triggers/fixtures/github-pull-request-comments.xml +++ b/tests/triggers/fixtures/github-pull-request-comments.xml @@ -2,25 +2,31 @@ <project> <triggers class="vector"> <org.jenkinsci.plugins.ghprb.GhprbTrigger> + <configVersion>3</configVersion> + <spec>* * * * *</spec> + <cron>* * * * *</cron> <adminlist>user1 user2</adminlist> <whitelist>user3 user4</whitelist> <orgslist>org1 org2</orgslist> + <blackListCommitAuthor/> <whiteListLabels/> <blackListLabels/> <excludedRegions/> <includedRegions/> - <spec>* * * * *</spec> + <buildDescTemplate/> <allowMembersOfWhitelistedOrgsAsAdmin>true</allowMembersOfWhitelistedOrgsAsAdmin> - <cron>* * * * *</cron> <triggerPhrase>retest this please</triggerPhrase> <skipBuildPhrase/> <onlyTriggerPhrase>true</onlyTriggerPhrase> <useGitHubHooks>true</useGitHubHooks> <permitAll>false</permitAll> <autoCloseFailedPullRequests>false</autoCloseFailedPullRequests> + <displayBuildErrorsOnDownstreamBuilds>false</displayBuildErrorsOnDownstreamBuilds> + <whiteListTargetBranches/> + <blackListTargetBranches/> <extensions> <org.jenkinsci.plugins.ghprb.extensions.comments.GhprbBuildStatus> <messages> diff --git a/tests/triggers/fixtures/github-pull-request-full.xml b/tests/triggers/fixtures/github-pull-request-full.xml index 7bfe2e3c..05652ba7 100644 --- a/tests/triggers/fixtures/github-pull-request-full.xml +++ b/tests/triggers/fixtures/github-pull-request-full.xml @@ -2,12 +2,16 @@ <project> <triggers class="vector"> <org.jenkinsci.plugins.ghprb.GhprbTrigger> + <configVersion>3</configVersion> + <spec>* * * * *</spec> + <cron>* * * * *</cron> <adminlist>user1 user2</adminlist> <whitelist>user3 user4</whitelist> <orgslist>org1 org2</orgslist> + <blackListCommitAuthor>blacklist commit author</blackListCommitAuthor> <whiteListLabels>label1 label2</whiteListLabels> <blackListLabels>label3 @@ -17,15 +21,14 @@ region</excludedRegions> <includedRegions>include region</includedRegions> <buildDescTemplate>build description</buildDescTemplate> - <spec>* * * * *</spec> <allowMembersOfWhitelistedOrgsAsAdmin>true</allowMembersOfWhitelistedOrgsAsAdmin> - <cron>* * * * *</cron> <triggerPhrase>retest this please</triggerPhrase> <skipBuildPhrase>no tests</skipBuildPhrase> <onlyTriggerPhrase>true</onlyTriggerPhrase> <useGitHubHooks>true</useGitHubHooks> <permitAll>true</permitAll> <autoCloseFailedPullRequests>false</autoCloseFailedPullRequests> + <displayBuildErrorsOnDownstreamBuilds>true</displayBuildErrorsOnDownstreamBuilds> <whiteListTargetBranches> <org.jenkinsci.plugins.ghprb.GhprbBranch> <branch>master</branch> @@ -49,7 +52,7 @@ region</includedRegions> <triggeredStatus>triggered status message</triggeredStatus> <startedStatus>started</startedStatus> <statusUrl>url/to/status</statusUrl> - <addTestResults>test result with status message</addTestResults> + <addTestResults>false</addTestResults> <completedStatus> <org.jenkinsci.plugins.ghprb.extensions.comments.GhprbBuildResultMessage> <message>success message</message> @@ -82,6 +85,10 @@ region</includedRegions> </messages> </org.jenkinsci.plugins.ghprb.extensions.comments.GhprbBuildStatus> <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> </org.jenkinsci.plugins.ghprb.GhprbTrigger> </triggers> diff --git a/tests/triggers/fixtures/github-pull-request-full.yaml b/tests/triggers/fixtures/github-pull-request-full.yaml index 11a70a36..7fa8bfe9 100644 --- a/tests/triggers/fixtures/github-pull-request-full.yaml +++ b/tests/triggers/fixtures/github-pull-request-full.yaml @@ -19,10 +19,15 @@ triggers: build-desc-template: "build description" trigger-phrase: 'retest this please' skip-build-phrase: 'no tests' + black-list-commit-author: + - blacklist + - commit + - author only-trigger-phrase: true github-hooks: true permit-all: true auto-close-on-fail: false + display-build-errors-on-downstream-builds: true allow-whitelist-orgs-as-admins: true white-list-target-branches: - master @@ -35,7 +40,7 @@ triggers: triggered-status: "triggered status message" started-status: "started" status-url: "url/to/status" - status-add-test-results: "test result with status message" + status-add-test-results: false success-status: "success message" failure-status: "failure message" error-status: "error message" @@ -43,6 +48,8 @@ triggers: failure-comment: "failure comment" error-comment: "error-comment" cancel-builds-on-update: true + comment-file: "/tmp/path" + no-commit-status: true included-regions: - include - region diff --git a/tests/triggers/fixtures/github-pull-request-minimal.xml b/tests/triggers/fixtures/github-pull-request-minimal.xml index dbeac30a..9e72adca 100644 --- a/tests/triggers/fixtures/github-pull-request-minimal.xml +++ b/tests/triggers/fixtures/github-pull-request-minimal.xml @@ -2,22 +2,28 @@ <project> <triggers class="vector"> <org.jenkinsci.plugins.ghprb.GhprbTrigger> + <configVersion>3</configVersion> + <spec/> + <cron/> <adminlist/> <whitelist/> <orgslist/> + <blackListCommitAuthor/> <whiteListLabels/> <blackListLabels/> <excludedRegions/> <includedRegions/> - <spec/> + <buildDescTemplate/> <allowMembersOfWhitelistedOrgsAsAdmin>false</allowMembersOfWhitelistedOrgsAsAdmin> - <cron/> <triggerPhrase/> <skipBuildPhrase/> <onlyTriggerPhrase>false</onlyTriggerPhrase> <useGitHubHooks>false</useGitHubHooks> <permitAll>false</permitAll> <autoCloseFailedPullRequests>false</autoCloseFailedPullRequests> + <displayBuildErrorsOnDownstreamBuilds>false</displayBuildErrorsOnDownstreamBuilds> + <whiteListTargetBranches/> + <blackListTargetBranches/> </org.jenkinsci.plugins.ghprb.GhprbTrigger> </triggers> </project> diff --git a/tests/triggers/fixtures/github-pull-request-multiple-extensions.xml b/tests/triggers/fixtures/github-pull-request-multiple-extensions.xml index f2d8d14b..8d910f0e 100644 --- a/tests/triggers/fixtures/github-pull-request-multiple-extensions.xml +++ b/tests/triggers/fixtures/github-pull-request-multiple-extensions.xml @@ -2,25 +2,31 @@ <project> <triggers class="vector"> <org.jenkinsci.plugins.ghprb.GhprbTrigger> + <configVersion>3</configVersion> + <spec>* * * * *</spec> + <cron>* * * * *</cron> <adminlist>user1 user2</adminlist> <whitelist>user3 user4</whitelist> <orgslist>org1 org2</orgslist> + <blackListCommitAuthor/> <whiteListLabels/> <blackListLabels/> <excludedRegions/> <includedRegions/> - <spec>* * * * *</spec> + <buildDescTemplate/> <allowMembersOfWhitelistedOrgsAsAdmin>true</allowMembersOfWhitelistedOrgsAsAdmin> - <cron>* * * * *</cron> <triggerPhrase>retest this please</triggerPhrase> <skipBuildPhrase/> <onlyTriggerPhrase>true</onlyTriggerPhrase> <useGitHubHooks>true</useGitHubHooks> <permitAll>false</permitAll> <autoCloseFailedPullRequests>false</autoCloseFailedPullRequests> + <displayBuildErrorsOnDownstreamBuilds>false</displayBuildErrorsOnDownstreamBuilds> + <whiteListTargetBranches/> + <blackListTargetBranches/> <extensions> <org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus> <commitStatusContext>test status context</commitStatusContext> diff --git a/tests/triggers/fixtures/github-pull-request-status.xml b/tests/triggers/fixtures/github-pull-request-status.xml index c12373cf..758d98b9 100644 --- a/tests/triggers/fixtures/github-pull-request-status.xml +++ b/tests/triggers/fixtures/github-pull-request-status.xml @@ -2,25 +2,31 @@ <project> <triggers class="vector"> <org.jenkinsci.plugins.ghprb.GhprbTrigger> + <configVersion>3</configVersion> + <spec>* * * * *</spec> + <cron>* * * * *</cron> <adminlist>user1 user2</adminlist> <whitelist>user3 user4</whitelist> <orgslist>org1 org2</orgslist> + <blackListCommitAuthor/> <whiteListLabels/> <blackListLabels/> <excludedRegions/> <includedRegions/> - <spec>* * * * *</spec> + <buildDescTemplate/> <allowMembersOfWhitelistedOrgsAsAdmin>true</allowMembersOfWhitelistedOrgsAsAdmin> - <cron>* * * * *</cron> <triggerPhrase>retest this please</triggerPhrase> <skipBuildPhrase/> <onlyTriggerPhrase>true</onlyTriggerPhrase> <useGitHubHooks>true</useGitHubHooks> <permitAll>false</permitAll> <autoCloseFailedPullRequests>false</autoCloseFailedPullRequests> + <displayBuildErrorsOnDownstreamBuilds>false</displayBuildErrorsOnDownstreamBuilds> + <whiteListTargetBranches/> + <blackListTargetBranches/> <extensions> <org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus> <commitStatusContext>test status context</commitStatusContext> |