Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
| 'use strict'; | |
| const nodemailer = require('nodemailer'); | |
| // Generate test SMTP service account from ethereal.email | |
| // Only needed if you don't have a real mail account for testing | |
| nodemailer.createTestAccount((err, account) => { | |
| // create reusable transporter object using the default SMTP transport | |
| let transporter = nodemailer.createTransport({ | |
| host: 'smtp.ethereal.email', |
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console