-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: promoted-builds-plugin
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.
![]()