jenkins-job-builder/tests/publishers/fixtures/email-ext004.xml
Eren ATAS 2a5acc24d6 Updated Email Extended Publisher Plugin
Parameters inside triggers were not updated while the upper
parameters were changed, were staying as default. Updated
the implementation to make it take from the upper level.

Change-Id: I16fc3525fcdf0a8bf3aea3b8422f0f2ad26f9e24
Signed-off-by: Eren ATAS <eatas.contractor@libertyglobal.com>
2020-09-18 11:59:43 +02:00

346 lines
21 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<project>
<publishers>
<hudson.plugins.emailext.ExtendedEmailPublisher>
<recipientList>foo@example.com, bar@example.com</recipientList>
<configuredTriggers>
<hudson.plugins.emailext.plugins.trigger.AlwaysTrigger>
<email>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
<contentType>project</contentType>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.DevelopersRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.RequesterRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FailingTestSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FirstFailingBuildSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.UpstreamComitterRecipientProvider/>
</recipientProviders>
<attachmentsPattern>*/foo*.log</attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>true</compressBuildLog>
</email>
</hudson.plugins.emailext.plugins.trigger.AlwaysTrigger>
<hudson.plugins.emailext.plugins.trigger.UnstableTrigger>
<email>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
<contentType>project</contentType>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.DevelopersRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.RequesterRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FailingTestSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FirstFailingBuildSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.UpstreamComitterRecipientProvider/>
</recipientProviders>
<attachmentsPattern>*/foo*.log</attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>true</compressBuildLog>
</email>
</hudson.plugins.emailext.plugins.trigger.UnstableTrigger>
<hudson.plugins.emailext.plugins.trigger.FirstFailureTrigger>
<email>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
<contentType>project</contentType>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.DevelopersRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.RequesterRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FailingTestSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FirstFailingBuildSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.UpstreamComitterRecipientProvider/>
</recipientProviders>
<attachmentsPattern>*/foo*.log</attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>true</compressBuildLog>
</email>
<failureCount>0</failureCount>
</hudson.plugins.emailext.plugins.trigger.FirstFailureTrigger>
<hudson.plugins.emailext.plugins.trigger.FirstUnstableTrigger>
<email>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
<contentType>project</contentType>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.DevelopersRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.RequesterRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FailingTestSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FirstFailingBuildSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.UpstreamComitterRecipientProvider/>
</recipientProviders>
<attachmentsPattern>*/foo*.log</attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>true</compressBuildLog>
</email>
</hudson.plugins.emailext.plugins.trigger.FirstUnstableTrigger>
<hudson.plugins.emailext.plugins.trigger.NotBuiltTrigger>
<email>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
<contentType>project</contentType>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.DevelopersRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.RequesterRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FailingTestSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FirstFailingBuildSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.UpstreamComitterRecipientProvider/>
</recipientProviders>
<attachmentsPattern>*/foo*.log</attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>true</compressBuildLog>
</email>
</hudson.plugins.emailext.plugins.trigger.NotBuiltTrigger>
<hudson.plugins.emailext.plugins.trigger.AbortedTrigger>
<email>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
<contentType>project</contentType>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.DevelopersRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.RequesterRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FailingTestSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FirstFailingBuildSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.UpstreamComitterRecipientProvider/>
</recipientProviders>
<attachmentsPattern>*/foo*.log</attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>true</compressBuildLog>
</email>
</hudson.plugins.emailext.plugins.trigger.AbortedTrigger>
<hudson.plugins.emailext.plugins.trigger.RegressionTrigger>
<email>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
<contentType>project</contentType>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.DevelopersRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.RequesterRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FailingTestSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FirstFailingBuildSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.UpstreamComitterRecipientProvider/>
</recipientProviders>
<attachmentsPattern>*/foo*.log</attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>true</compressBuildLog>
</email>
</hudson.plugins.emailext.plugins.trigger.RegressionTrigger>
<hudson.plugins.emailext.plugins.trigger.FailureTrigger>
<email>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
<contentType>project</contentType>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.DevelopersRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.RequesterRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FailingTestSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FirstFailingBuildSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.UpstreamComitterRecipientProvider/>
</recipientProviders>
<attachmentsPattern>*/foo*.log</attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>true</compressBuildLog>
</email>
</hudson.plugins.emailext.plugins.trigger.FailureTrigger>
<hudson.plugins.emailext.plugins.trigger.SecondFailureTrigger>
<email>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
<contentType>project</contentType>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.DevelopersRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.RequesterRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FailingTestSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FirstFailingBuildSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.UpstreamComitterRecipientProvider/>
</recipientProviders>
<attachmentsPattern>*/foo*.log</attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>true</compressBuildLog>
</email>
<failureCount>0</failureCount>
</hudson.plugins.emailext.plugins.trigger.SecondFailureTrigger>
<hudson.plugins.emailext.plugins.trigger.ImprovementTrigger>
<email>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
<contentType>project</contentType>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.DevelopersRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.RequesterRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FailingTestSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FirstFailingBuildSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.UpstreamComitterRecipientProvider/>
</recipientProviders>
<attachmentsPattern>*/foo*.log</attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>true</compressBuildLog>
</email>
</hudson.plugins.emailext.plugins.trigger.ImprovementTrigger>
<hudson.plugins.emailext.plugins.trigger.StillFailingTrigger>
<email>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
<contentType>project</contentType>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.DevelopersRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.RequesterRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FailingTestSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FirstFailingBuildSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.UpstreamComitterRecipientProvider/>
</recipientProviders>
<attachmentsPattern>*/foo*.log</attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>true</compressBuildLog>
</email>
</hudson.plugins.emailext.plugins.trigger.StillFailingTrigger>
<hudson.plugins.emailext.plugins.trigger.SuccessTrigger>
<email>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
<contentType>project</contentType>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.DevelopersRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.RequesterRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FailingTestSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FirstFailingBuildSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.UpstreamComitterRecipientProvider/>
</recipientProviders>
<attachmentsPattern>*/foo*.log</attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>true</compressBuildLog>
</email>
</hudson.plugins.emailext.plugins.trigger.SuccessTrigger>
<hudson.plugins.emailext.plugins.trigger.FixedTrigger>
<email>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
<contentType>project</contentType>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.DevelopersRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.RequesterRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FailingTestSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FirstFailingBuildSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.UpstreamComitterRecipientProvider/>
</recipientProviders>
<attachmentsPattern>*/foo*.log</attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>true</compressBuildLog>
</email>
</hudson.plugins.emailext.plugins.trigger.FixedTrigger>
<hudson.plugins.emailext.plugins.trigger.FixedUnhealthyTrigger>
<email>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
<contentType>project</contentType>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.DevelopersRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.RequesterRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FailingTestSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FirstFailingBuildSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.UpstreamComitterRecipientProvider/>
</recipientProviders>
<attachmentsPattern>*/foo*.log</attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>true</compressBuildLog>
</email>
</hudson.plugins.emailext.plugins.trigger.FixedUnhealthyTrigger>
<hudson.plugins.emailext.plugins.trigger.StillUnstableTrigger>
<email>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
<contentType>project</contentType>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.DevelopersRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.RequesterRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FailingTestSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FirstFailingBuildSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.UpstreamComitterRecipientProvider/>
</recipientProviders>
<attachmentsPattern>*/foo*.log</attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>true</compressBuildLog>
</email>
</hudson.plugins.emailext.plugins.trigger.StillUnstableTrigger>
<hudson.plugins.emailext.plugins.trigger.PreBuildTrigger>
<email>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
<contentType>project</contentType>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.DevelopersRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.RequesterRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FailingTestSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.FirstFailingBuildSuspectsRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.UpstreamComitterRecipientProvider/>
</recipientProviders>
<attachmentsPattern>*/foo*.log</attachmentsPattern>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>true</compressBuildLog>
</email>
</hudson.plugins.emailext.plugins.trigger.PreBuildTrigger>
</configuredTriggers>
<contentType>text/html</contentType>
<defaultSubject>Subject for Build ${BUILD_NUMBER}</defaultSubject>
<defaultContent>The build has finished</defaultContent>
<attachmentsPattern>*/foo*.log</attachmentsPattern>
<presendScript>cancel=true</presendScript>
<postsendScript>cancel=true</postsendScript>
<attachBuildLog>true</attachBuildLog>
<compressBuildLog>true</compressBuildLog>
<saveOutput>true</saveOutput>
<disabled>false</disabled>
<replyTo>foo@example.com</replyTo>
<from>lorem@ipsum.dolor</from>
<matrixTriggerMode>ONLY_CONFIGURATIONS</matrixTriggerMode>
</hudson.plugins.emailext.ExtendedEmailPublisher>
</publishers>
</project>