Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-27063

ExtendedEmail Configure Block Behavior

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • job-dsl-plugin
    • None
    • Job DSL 1.29

      The configure block of the extendedEmail publisher behaves different than other configure blocks.

      In the following example DSL script, the top-level configure block produces different XML than the extendedEmail configure block.

      test = 123
      
      job {
        name('foo')
        publishers {
          extendedEmail('foo', 'bar') {
            configure {
              it / foo(test)
            }
          }
        }
        configure {
          it / foo(test)
        }
      }
      

      The top-level configure block produces <foo>123</foo> whereas the extendedEmail configure block produces <foo>test</foo>.

      <project>
          ...
          <publishers>
              <hudson.plugins.emailext.ExtendedEmailPublisher>
                  ...
                  <foo>test</foo>
              </hudson.plugins.emailext.ExtendedEmailPublisher>
          </publishers>
          ...
          <foo>123</foo>
      </project>
      
      

            daspilker Daniel Spilker
            daspilker Daniel Spilker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: