Email-Notification doesn't appear correctly under Actions

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Using this Groovy snippet below, I was expecting that there would be an "Email-Notification" that is added as part of the build promotion under Actions like this:

      properties {
        promotions {
          promotion {
            name("Approved by Release Manager")
            icon("Gold Star")
            restrict('linuxSlave')
            conditions {
              manual("Dev Leads") {
                parameters{
                  textParam("Reason","","${PROJECT_NAME} Build Details")
                }
              }
            }
            actions {
              downstreamParameterized {
                trigger("${PROJECT_NAME}-prod-deploy") {
                  parameters {
                    currentBuild()
                    predefinedProp("APPROVED_BY_USER","\${PROMOTED_USER_NAME}")
                    predefinedProp("APPROVED_STATUS","true")
                  }
                }
              }
              publishers {
                mailer("\${EMAIL_FAILURE_NOTIFICATION}", true, false)
              }
            }
          }
        }
      }
      

      However, it actually adds it under Post-Build Actions and doesn't respect the boolean variables.

            Assignee:
            Dennis Schulte
            Reporter:
            David Chou
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: