• Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • email-ext-plugin
    • None

      I have email addresses described in the Exclude Recipients list in the global configuration for the plugin.
      However, Jenkins continues to send emails to the two addresses I have on the blacklist of people NOT to receive notifications from Jenkins.

      Current Behaviour: Emails are sent to users in the "Excluded Recipients" textbox.

      Expected Behaviour:

      • Emails described in "Excluded Recipients" should be excluded from receiving any notifications from Jenkins.
      • Indicate the appropriate delimiter in the textbox when specifying multiple addresses (e.g. uses spaces or spaces+commas).

          [JENKINS-29325] Excluded Recipients Receive Notifications

          Alex Earl added a comment -

          Can you please provide a build log and config.xml for the job? The email-ext xml file from JENKINS_HOME would also be useful.

          Alex Earl added a comment - Can you please provide a build log and config.xml for the job? The email-ext xml file from JENKINS_HOME would also be useful.

          hudson.plugins.ExtendedEmailPublisher.xml:

          <?xml version='1.0' encoding='UTF-8'?>
          <hudson.plugins.emailext.ExtendedEmailPublisherDescriptor plugin="email-ext@2.40.5">
            <useSsl>false</useSsl>
            <charset>UTF-8</charset>
            <defaultContentType>text/plain</defaultContentType>
            <defaultSubject>$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!</defaultSubject>
            <defaultBody>$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:&#xd;
          &#xd;
          Check console output at $BUILD_URL to view the results.</defaultBody>
            <defaultPresendScript></defaultPresendScript>
            <defaultClasspath/>
            <defaultTriggerIds>
              <string>hudson.plugins.emailext.plugins.trigger.FailureTrigger</string>
            </defaultTriggerIds>
            <maxAttachmentSize>-1</maxAttachmentSize>
            <recipientList></recipientList>
            <defaultReplyTo></defaultReplyTo>
            <excludedCommitters>me@mydomain.com another@example.com</excludedCommitters>
            <overrideGlobalSettings>true</overrideGlobalSettings>
            <precedenceBulk>false</precedenceBulk>
            <debugMode>false</debugMode>
            <enableSecurity>false</enableSecurity>
            <requireAdminForTemplateTesting>false</requireAdminForTemplateTesting>
            <enableWatching>false</enableWatching>
          </hudson.plugins.emailext.ExtendedEmailPublisherDescriptor>
          

          config.xml:

          <?xml version='1.0' encoding='UTF-8'?>
          <hudson>
            <disabledAdministrativeMonitors>
              <string>jenkins.security.s2m.MasterKillSwitchWarning</string>
              <string>hudson.diagnosis.ReverseProxySetupMonitor</string>
            </disabledAdministrativeMonitors>
            <version>1.619</version>
            <numExecutors>8</numExecutors>
            <mode>EXCLUSIVE</mode>
            <useSecurity>true</useSecurity>
            <authorizationStrategy class="hudson.security.ProjectMatrixAuthorizationStrategy">
              <!-- Ommitted for security. Available upon demand. -->
            </authorizationStrategy>
            <securityRealm class="hudson.security.PAMSecurityRealm" plugin="pam-auth@1.2">
              <serviceName>sshd</serviceName>
            </securityRealm>
            <disableRememberMe>false</disableRememberMe>
            <projectNamingStrategy class="jenkins.model.ProjectNamingStrategy$DefaultProjectNamingStrategy"/>
            <workspaceDir>${JENKINS_HOME}/workspace/${ITEM_FULLNAME}</workspaceDir>
            <buildsDir>${ITEM_ROOTDIR}/builds</buildsDir>
            <markupFormatter class="hudson.markup.EscapedMarkupFormatter"/>
            <jdks/>
            <viewsTabBar class="hudson.views.DefaultViewsTabBar"/>
            <myViewsTabBar class="hudson.views.DefaultMyViewsTabBar"/>
            <clouds/>
            <quietPeriod>5</quietPeriod>
            <scmCheckoutRetryCount>0</scmCheckoutRetryCount>
            <views>
              <hudson.model.AllView>
                <owner class="hudson" reference="../../.."/>
                <name>All</name>
                <filterExecutors>false</filterExecutors>
                <filterQueue>false</filterQueue>
                <properties class="hudson.model.View$PropertyList"/>
              </hudson.model.AllView>
              <listView>
                <owner class="hudson" reference="../../.."/>
                <name>Deployments</name>
                <filterExecutors>false</filterExecutors>
                <filterQueue>false</filterQueue>
                <properties class="hudson.model.View$PropertyList"/>
                <jobNames>
                  <comparator class="hudson.util.CaseInsensitiveComparator"/>
                </jobNames>
                <jobFilters/>
                <columns>
                  <hudson.views.StatusColumn/>
                  <hudson.views.WeatherColumn/>
                  <hudson.views.JobColumn/>
                  <hudson.views.LastSuccessColumn/>
                  <hudson.views.LastFailureColumn/>
                  <hudson.views.LastDurationColumn/>
                  <hudson.views.BuildButtonColumn/>
                </columns>
                <includeRegex>^deploy.*</includeRegex>
                <recurse>false</recurse>
              </listView>
              <listView>
                <owner class="hudson" reference="../../.."/>
                <name>Building</name>
                <filterExecutors>false</filterExecutors>
                <filterQueue>false</filterQueue>
                <properties class="hudson.model.View$PropertyList"/>
                <jobNames>
                  <comparator class="hudson.util.CaseInsensitiveComparator" reference="../../../listView/jobNames/comparator"/>
                  <string>build.projectX</string>
                  <string>build.base</string>
                  <string>build.projectY</string>
                  <string>build.projectZ</string>
                  <string>build.projectMain</string>
                  <string>build.projectMagento</string>
                  <string>build.projectA</string>
                </jobNames>
                <jobFilters/>
                <columns>
                  <hudson.views.StatusColumn/>
                  <hudson.views.WeatherColumn/>
                  <hudson.views.JobColumn/>
                  <hudson.views.LastSuccessColumn/>
                  <hudson.views.LastFailureColumn/>
                  <hudson.views.LastDurationColumn/>
                  <hudson.views.BuildButtonColumn/>
                </columns>
                <includeRegex>^build\..*</includeRegex>
                <recurse>false</recurse>
              </listView>
            </views>
            <primaryView>All</primaryView>
            <slaveAgentPort>0</slaveAgentPort>
            <label>master</label>
            <nodeProperties/>
            <globalNodeProperties>
              <hudson.slaves.EnvironmentVariablesNodeProperty>
                <envVars serialization="custom">
                  <unserializable-parents/>
                  <tree-map>
                    <default>
                      <comparator class="hudson.util.CaseInsensitiveComparator"/>
                    </default>
                    <int>1</int>
                    <string>DEPLOY_DIR</string>
                    <string>/srv/filesrv/ci/jenkins/artifacts</string>
                  </tree-map>
                </envVars>
              </hudson.slaves.EnvironmentVariablesNodeProperty>
            </globalNodeProperties>
          </hudson>
          

          Build log coming soon. Sorry these were not included in the original ticket.

          Markizano Draconus added a comment - hudson.plugins.ExtendedEmailPublisher.xml: <?xml version= '1.0' encoding= 'UTF-8' ?> <hudson.plugins.emailext.ExtendedEmailPublisherDescriptor plugin= "email-ext@2.40.5" > <useSsl> false </useSsl> <charset>UTF-8</charset> <defaultContentType>text/plain</defaultContentType> <defaultSubject>$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!</defaultSubject> <defaultBody>$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:&#xd; &#xd; Check console output at $BUILD_URL to view the results.</defaultBody> <defaultPresendScript></defaultPresendScript> <defaultClasspath/> <defaultTriggerIds> <string>hudson.plugins.emailext.plugins.trigger.FailureTrigger</string> </defaultTriggerIds> <maxAttachmentSize>-1</maxAttachmentSize> <recipientList></recipientList> <defaultReplyTo></defaultReplyTo> <excludedCommitters>me@mydomain.com another@example.com</excludedCommitters> <overrideGlobalSettings> true </overrideGlobalSettings> <precedenceBulk> false </precedenceBulk> <debugMode> false </debugMode> <enableSecurity> false </enableSecurity> <requireAdminForTemplateTesting> false </requireAdminForTemplateTesting> <enableWatching> false </enableWatching> </hudson.plugins.emailext.ExtendedEmailPublisherDescriptor> config.xml: <?xml version= '1.0' encoding= 'UTF-8' ?> <hudson> <disabledAdministrativeMonitors> <string>jenkins.security.s2m.MasterKillSwitchWarning</string> <string>hudson.diagnosis.ReverseProxySetupMonitor</string> </disabledAdministrativeMonitors> <version>1.619</version> <numExecutors>8</numExecutors> <mode>EXCLUSIVE</mode> <useSecurity> true </useSecurity> <authorizationStrategy class= "hudson.security.ProjectMatrixAuthorizationStrategy" > <!-- Ommitted for security. Available upon demand. --> </authorizationStrategy> <securityRealm class= "hudson.security.PAMSecurityRealm" plugin= "pam-auth@1.2" > <serviceName>sshd</serviceName> </securityRealm> <disableRememberMe> false </disableRememberMe> <projectNamingStrategy class= "jenkins.model.ProjectNamingStrategy$DefaultProjectNamingStrategy" /> <workspaceDir>${JENKINS_HOME}/workspace/${ITEM_FULLNAME}</workspaceDir> <buildsDir>${ITEM_ROOTDIR}/builds</buildsDir> <markupFormatter class= "hudson.markup.EscapedMarkupFormatter" /> <jdks/> <viewsTabBar class= "hudson.views.DefaultViewsTabBar" /> <myViewsTabBar class= "hudson.views.DefaultMyViewsTabBar" /> <clouds/> <quietPeriod>5</quietPeriod> <scmCheckoutRetryCount>0</scmCheckoutRetryCount> <views> <hudson.model.AllView> <owner class= "hudson" reference= "../../.." /> <name>All</name> <filterExecutors> false </filterExecutors> <filterQueue> false </filterQueue> <properties class= "hudson.model.View$PropertyList" /> </hudson.model.AllView> <listView> <owner class= "hudson" reference= "../../.." /> <name>Deployments</name> <filterExecutors> false </filterExecutors> <filterQueue> false </filterQueue> <properties class= "hudson.model.View$PropertyList" /> <jobNames> <comparator class= "hudson.util.CaseInsensitiveComparator" /> </jobNames> <jobFilters/> <columns> <hudson.views.StatusColumn/> <hudson.views.WeatherColumn/> <hudson.views.JobColumn/> <hudson.views.LastSuccessColumn/> <hudson.views.LastFailureColumn/> <hudson.views.LastDurationColumn/> <hudson.views.BuildButtonColumn/> </columns> <includeRegex>^deploy.*</includeRegex> <recurse> false </recurse> </listView> <listView> <owner class= "hudson" reference= "../../.." /> <name>Building</name> <filterExecutors> false </filterExecutors> <filterQueue> false </filterQueue> <properties class= "hudson.model.View$PropertyList" /> <jobNames> <comparator class= "hudson.util.CaseInsensitiveComparator" reference= "../../../listView/jobNames/comparator" /> <string>build.projectX</string> <string>build.base</string> <string>build.projectY</string> <string>build.projectZ</string> <string>build.projectMain</string> <string>build.projectMagento</string> <string>build.projectA</string> </jobNames> <jobFilters/> <columns> <hudson.views.StatusColumn/> <hudson.views.WeatherColumn/> <hudson.views.JobColumn/> <hudson.views.LastSuccessColumn/> <hudson.views.LastFailureColumn/> <hudson.views.LastDurationColumn/> <hudson.views.BuildButtonColumn/> </columns> <includeRegex>^build\..*</includeRegex> <recurse> false </recurse> </listView> </views> <primaryView>All</primaryView> <slaveAgentPort>0</slaveAgentPort> <label>master</label> <nodeProperties/> <globalNodeProperties> <hudson.slaves.EnvironmentVariablesNodeProperty> <envVars serialization= "custom" > <unserializable-parents/> <tree-map> < default > <comparator class= "hudson.util.CaseInsensitiveComparator" /> </ default > < int >1</ int > <string>DEPLOY_DIR</string> <string>/srv/filesrv/ci/jenkins/artifacts</string> </tree-map> </envVars> </hudson.slaves.EnvironmentVariablesNodeProperty> </globalNodeProperties> </hudson> Build log coming soon. Sorry these were not included in the original ticket.

          Alex Earl added a comment -

          Sorry if I wasn't clear, I would like to see the config.xml for the job that is running.

          Alex Earl added a comment - Sorry if I wasn't clear, I would like to see the config.xml for the job that is running.

          jobs/build.project/config.xml:

          <?xml version='1.0' encoding='UTF-8'?>
          <project>
            <actions/>
            <description>Builds the project and generates artifacts.</description>
            <logRotator class="hudson.tasks.LogRotator">
              <daysToKeep>10</daysToKeep>
              <numToKeep>100</numToKeep>
              <artifactDaysToKeep>-1</artifactDaysToKeep>
              <artifactNumToKeep>-1</artifactNumToKeep>
            </logRotator>
            <keepDependencies>false</keepDependencies>
            <properties>
              <com.nirima.jenkins.plugins.docker.DockerJobProperty plugin="docker-plugin@0.9.3">
                <tagOnCompletion>false</tagOnCompletion>
                <additionalTag></additionalTag>
                <pushOnSuccess>false</pushOnSuccess>
                <cleanImages>true</cleanImages>
              </com.nirima.jenkins.plugins.docker.DockerJobProperty>
              <com.coravy.hudson.plugins.github.GithubProjectProperty plugin="github@1.11.3">
                <projectUrl>https://github.com/mycompany/project/</projectUrl>
              </com.coravy.hudson.plugins.github.GithubProjectProperty>
              <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.24">
                <autoRebuild>false</autoRebuild>
              </com.sonyericsson.rebuild.RebuildSettings>
              <EnvInjectJobProperty plugin="envinject@1.91.3">
                <info>
                  <propertiesContent>APP=myapp</propertiesContent>
                  <scriptContent>PATH=/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:.:/var/lib/jenkins/bin</scriptContent>
                  <loadFilesFromMaster>false</loadFilesFromMaster>
                </info>
                <on>true</on>
                <keepJenkinsSystemVariables>true</keepJenkinsSystemVariables>
                <keepBuildVariables>true</keepBuildVariables>
                <overrideBuildParameters>false</overrideBuildParameters>
                <contributors/>
              </EnvInjectJobProperty>
            </properties>
            <scm class="hudson.plugins.git.GitSCM" plugin="git@2.3.5">
              <configVersion>2</configVersion>
              <userRemoteConfigs>
                <hudson.plugins.git.UserRemoteConfig>
                  <url>git@github.com:mycompany/project.git</url>
                  <credentialsId>a91c1900-af9f-48a6-8b11-0eb69aa12c7f</credentialsId>
                </hudson.plugins.git.UserRemoteConfig>
              </userRemoteConfigs>
              <branches>
                <hudson.plugins.git.BranchSpec>
                  <name>**</name>
                </hudson.plugins.git.BranchSpec>
              </branches>
              <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
              <browser class="hudson.plugins.git.browser.GithubWeb">
                <url>https://github.com/mycompany/project/</url>
              </browser>
              <submoduleCfg class="list"/>
              <extensions>
                <hudson.plugins.git.extensions.impl.RelativeTargetDirectory>
                  <relativeTargetDir>ta-shipping</relativeTargetDir>
                </hudson.plugins.git.extensions.impl.RelativeTargetDirectory>
              </extensions>
            </scm>
            <assignedNode>master</assignedNode>
            <canRoam>false</canRoam>
            <disabled>false</disabled>
            <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
            <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
            <authToken>a5a2d190259929f850bdc8af5cd526b0722bc1bf</authToken>
            <triggers>
              <com.cloudbees.jenkins.GitHubPushTrigger plugin="github@1.11.3">
                <spec></spec>
              </com.cloudbees.jenkins.GitHubPushTrigger>
              <hudson.triggers.SCMTrigger>
                <spec>H/5 * * * *</spec>
                <ignorePostCommitHooks>false</ignorePostCommitHooks>
              </hudson.triggers.SCMTrigger>
            </triggers>
            <concurrentBuild>true</concurrentBuild>
            <builders>
              <hudson.tasks.Shell>
                <command>#!/bin/bash -ex
          
          docker build -t myproject .
          docker run --name build-$BUILD_NUMBER myproject
          </command>
              </hudson.tasks.Shell>
            </builders>
            <publishers>
              <hudson.tasks.ArtifactArchiver>
                <artifacts>build/*</artifacts>
                <allowEmptyArchive>false</allowEmptyArchive>
                <onlyIfSuccessful>false</onlyIfSuccessful>
                <fingerprint>false</fingerprint>
                <defaultExcludes>true</defaultExcludes>
              </hudson.tasks.ArtifactArchiver>
              <hudson.plugins.emailext.ExtendedEmailPublisher plugin="email-ext@2.40.5">
                <recipientList>$DEFAULT_RECIPIENTS</recipientList>
                <configuredTriggers>
                  <hudson.plugins.emailext.plugins.trigger.FailureTrigger>
                    <email>
                      <recipientList></recipientList>
                      <subject>$PROJECT_DEFAULT_SUBJECT</subject>
                      <body>$PROJECT_DEFAULT_CONTENT</body>
                      <recipientProviders>
                        <hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider/>
                      </recipientProviders>
                      <attachmentsPattern></attachmentsPattern>
                      <attachBuildLog>false</attachBuildLog>
                      <compressBuildLog>false</compressBuildLog>
                      <replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
                      <contentType>project</contentType>
                    </email>
                  </hudson.plugins.emailext.plugins.trigger.FailureTrigger>
                  <hudson.plugins.emailext.plugins.trigger.FixedTrigger>
                    <email>
                      <recipientList></recipientList>
                      <subject>$PROJECT_DEFAULT_SUBJECT</subject>
                      <body>$PROJECT_DEFAULT_CONTENT</body>
                      <recipientProviders>
                        <hudson.plugins.emailext.plugins.recipients.DevelopersRecipientProvider/>
                        <hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider/>
                      </recipientProviders>
                      <attachmentsPattern></attachmentsPattern>
                      <attachBuildLog>false</attachBuildLog>
                      <compressBuildLog>false</compressBuildLog>
                      <replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
                      <contentType>project</contentType>
                    </email>
                  </hudson.plugins.emailext.plugins.trigger.FixedTrigger>
                </configuredTriggers>
                <contentType>default</contentType>
                <defaultSubject>$DEFAULT_SUBJECT</defaultSubject>
                <defaultContent>$DEFAULT_CONTENT</defaultContent>
                <attachmentsPattern></attachmentsPattern>
                <presendScript>$DEFAULT_PRESEND_SCRIPT</presendScript>
                <attachBuildLog>true</attachBuildLog>
                <compressBuildLog>false</compressBuildLog>
                <replyTo>$DEFAULT_REPLYTO</replyTo>
                <saveOutput>false</saveOutput>
                <disabled>false</disabled>
              </hudson.plugins.emailext.ExtendedEmailPublisher>
            </publishers>
            <buildWrappers>
              <hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.26">
                <deleteDirs>false</deleteDirs>
                <cleanupParameter></cleanupParameter>
                <externalDelete></externalDelete>
              </hudson.plugins.ws__cleanup.PreBuildCleanup>
              <hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor@0.4.1">
                <colorMapName>xterm</colorMapName>
              </hudson.plugins.ansicolor.AnsiColorBuildWrapper>
              <org.jenkinsci.plugins.buildnamesetter.BuildNameSetter plugin="build-name-setter@1.3">
                <template>#${GIT_BRANCH}-${BUILD_NUMBER}</template>
              </org.jenkinsci.plugins.buildnamesetter.BuildNameSetter>
            </buildWrappers>
          </project>
          

          Hope this helps.

          Markizano Draconus added a comment - jobs/build.project/config.xml: <?xml version= '1.0' encoding= 'UTF-8' ?> <project> <actions/> <description>Builds the project and generates artifacts.</description> <logRotator class= "hudson.tasks.LogRotator" > <daysToKeep>10</daysToKeep> <numToKeep>100</numToKeep> <artifactDaysToKeep>-1</artifactDaysToKeep> <artifactNumToKeep>-1</artifactNumToKeep> </logRotator> <keepDependencies> false </keepDependencies> <properties> <com.nirima.jenkins.plugins.docker.DockerJobProperty plugin= "docker-plugin@0.9.3" > <tagOnCompletion> false </tagOnCompletion> <additionalTag></additionalTag> <pushOnSuccess> false </pushOnSuccess> <cleanImages> true </cleanImages> </com.nirima.jenkins.plugins.docker.DockerJobProperty> <com.coravy.hudson.plugins.github.GithubProjectProperty plugin= "github@1.11.3" > <projectUrl>https: //github.com/mycompany/project/</projectUrl> </com.coravy.hudson.plugins.github.GithubProjectProperty> <com.sonyericsson.rebuild.RebuildSettings plugin= "rebuild@1.24" > <autoRebuild> false </autoRebuild> </com.sonyericsson.rebuild.RebuildSettings> <EnvInjectJobProperty plugin= "envinject@1.91.3" > <info> <propertiesContent>APP=myapp</propertiesContent> <scriptContent>PATH=/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:.:/ var /lib/jenkins/bin</scriptContent> <loadFilesFromMaster> false </loadFilesFromMaster> </info> <on> true </on> <keepJenkinsSystemVariables> true </keepJenkinsSystemVariables> <keepBuildVariables> true </keepBuildVariables> <overrideBuildParameters> false </overrideBuildParameters> <contributors/> </EnvInjectJobProperty> </properties> <scm class= "hudson.plugins.git.GitSCM" plugin= "git@2.3.5" > <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> <url>git@github.com:mycompany/project.git</url> <credentialsId>a91c1900-af9f-48a6-8b11-0eb69aa12c7f</credentialsId> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> <name>**</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations> false </doGenerateSubmoduleConfigurations> <browser class= "hudson.plugins.git.browser.GithubWeb" > <url>https: //github.com/mycompany/project/</url> </browser> <submoduleCfg class= "list" /> <extensions> <hudson.plugins.git.extensions.impl.RelativeTargetDirectory> <relativeTargetDir>ta-shipping</relativeTargetDir> </hudson.plugins.git.extensions.impl.RelativeTargetDirectory> </extensions> </scm> <assignedNode>master</assignedNode> <canRoam> false </canRoam> <disabled> false </disabled> <blockBuildWhenDownstreamBuilding> false </blockBuildWhenDownstreamBuilding> <blockBuildWhenUpstreamBuilding> false </blockBuildWhenUpstreamBuilding> <authToken>a5a2d190259929f850bdc8af5cd526b0722bc1bf</authToken> <triggers> <com.cloudbees.jenkins.GitHubPushTrigger plugin= "github@1.11.3" > <spec></spec> </com.cloudbees.jenkins.GitHubPushTrigger> <hudson.triggers.SCMTrigger> <spec>H/5 * * * *</spec> <ignorePostCommitHooks> false </ignorePostCommitHooks> </hudson.triggers.SCMTrigger> </triggers> <concurrentBuild> true </concurrentBuild> <builders> <hudson.tasks.Shell> <command>#!/bin/bash -ex docker build -t myproject . docker run --name build-$BUILD_NUMBER myproject </command> </hudson.tasks.Shell> </builders> <publishers> <hudson.tasks.ArtifactArchiver> <artifacts>build/*</artifacts> <allowEmptyArchive> false </allowEmptyArchive> <onlyIfSuccessful> false </onlyIfSuccessful> <fingerprint> false </fingerprint> <defaultExcludes> true </defaultExcludes> </hudson.tasks.ArtifactArchiver> <hudson.plugins.emailext.ExtendedEmailPublisher plugin= "email-ext@2.40.5" > <recipientList>$DEFAULT_RECIPIENTS</recipientList> <configuredTriggers> <hudson.plugins.emailext.plugins.trigger.FailureTrigger> <email> <recipientList></recipientList> <subject>$PROJECT_DEFAULT_SUBJECT</subject> <body>$PROJECT_DEFAULT_CONTENT</body> <recipientProviders> <hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider/> </recipientProviders> <attachmentsPattern></attachmentsPattern> <attachBuildLog> false </attachBuildLog> <compressBuildLog> false </compressBuildLog> <replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo> <contentType>project</contentType> </email> </hudson.plugins.emailext.plugins.trigger.FailureTrigger> <hudson.plugins.emailext.plugins.trigger.FixedTrigger> <email> <recipientList></recipientList> <subject>$PROJECT_DEFAULT_SUBJECT</subject> <body>$PROJECT_DEFAULT_CONTENT</body> <recipientProviders> <hudson.plugins.emailext.plugins.recipients.DevelopersRecipientProvider/> <hudson.plugins.emailext.plugins.recipients.CulpritsRecipientProvider/> </recipientProviders> <attachmentsPattern></attachmentsPattern> <attachBuildLog> false </attachBuildLog> <compressBuildLog> false </compressBuildLog> <replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo> <contentType>project</contentType> </email> </hudson.plugins.emailext.plugins.trigger.FixedTrigger> </configuredTriggers> <contentType> default </contentType> <defaultSubject>$DEFAULT_SUBJECT</defaultSubject> <defaultContent>$DEFAULT_CONTENT</defaultContent> <attachmentsPattern></attachmentsPattern> <presendScript>$DEFAULT_PRESEND_SCRIPT</presendScript> <attachBuildLog> true </attachBuildLog> <compressBuildLog> false </compressBuildLog> <replyTo>$DEFAULT_REPLYTO</replyTo> <saveOutput> false </saveOutput> <disabled> false </disabled> </hudson.plugins.emailext.ExtendedEmailPublisher> </publishers> <buildWrappers> <hudson.plugins.ws__cleanup.PreBuildCleanup plugin= "ws-cleanup@0.26" > <deleteDirs> false </deleteDirs> <cleanupParameter></cleanupParameter> <externalDelete></externalDelete> </hudson.plugins.ws__cleanup.PreBuildCleanup> <hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin= "ansicolor@0.4.1" > <colorMapName>xterm</colorMapName> </hudson.plugins.ansicolor.AnsiColorBuildWrapper> <org.jenkinsci.plugins.buildnamesetter.BuildNameSetter plugin= "build-name-setter@1.3" > <template>#${GIT_BRANCH}-${BUILD_NUMBER}</template> </org.jenkinsci.plugins.buildnamesetter.BuildNameSetter> </buildWrappers> </project> Hope this helps.

          Alex Earl added a comment -

          Ok, last thing I would like to see is the build log.

          Alex Earl added a comment - Ok, last thing I would like to see is the build log.

          Alex Earl added a comment -

          The excluded committers entry is for usernames from an SCM system, not specific email addresses. You could also use a pre-send script to filter out email addresses if need be.

          Alex Earl added a comment - The excluded committers entry is for usernames from an SCM system, not specific email addresses. You could also use a pre-send script to filter out email addresses if need be.

          slide_o_mix Help message for "excluded recipients" needs to be fixed:


          Allows filtering any email address from the list of recipients that is generated by the plugin. You can specify either the username only or the full email address.

          Roman Sinyakov added a comment - slide_o_mix Help message for "excluded recipients" needs to be fixed: Allows filtering any email address from the list of recipients that is generated by the plugin. You can specify either the username only or the full email address.

          Alex Earl added a comment -

          Feel free to submit a PR. I don't maintain this plugin anymore.

          Alex Earl added a comment - Feel free to submit a PR. I don't maintain this plugin anymore.

          scof - Can you please comment the syntax here how we need to enter in Excluded Recipients text box. I entered just email id of one recipient. However, it is not getting excluded.

          Karthikeya Raja added a comment - scof  - Can you please comment the syntax here how we need to enter in  Excluded Recipients text box. I entered just email id of one recipient. However, it is not getting excluded.

            Unassigned Unassigned
            markizano Markizano Draconus
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: