Skip to content

Commit

Permalink
update documentation for addExtandedEmail
Browse files Browse the repository at this point in the history
  • Loading branch information
S Gorobet authored and S Gorobet committed Oct 27, 2016
1 parent 33f3355 commit c7d396b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/examples.md
Expand Up @@ -265,6 +265,16 @@ job('example'){
job('example'){
CommonUtils.addExtendedEmail(delegate, emails, triggers=['statusChanged'])
}
// Override default email pre-send script, by providing a groovy code
job('example'){
CommonUtils.addExtendedEmail(delegate, emails, triggers, sendToDevs, senToReq, includeCulprits, sendToRecipient, "cancel = true")
}
// Override default email pre-send script by providing path to the script file
job('example'){
CommonUtils.addExtendedEmail(delegate, emails, triggers, sendToDevs, sendToReq, includeCulprits, sendToRecipient, "\${SCRIPT, template='path/to/script.groovy'}"
}
```

### Inject global passwords
Expand Down

0 comments on commit c7d396b

Please sign in to comment.