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

Email-Notification doesn't appear correctly under Actions

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              denschu Dennis Schulte
              Reporter:
              davidschou David Chou
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: