pipeline {
stages { ... }
post {
// only triggered when blue or green sign
success {
slackSend(channel: 'alerts-testing', color: 'good', message: ":party_parrot: NOTIFICATION: NEW RELEASE ${newRelease} WILL BE CREATED AUTOMATICALLY :party_parrot:")
}
// triggered when red sign
failure {
slackSend(channel: 'alerts-testing', color: 'RED', message: ":alarm_clock: NOTIFICATION: NEW RELEASE ${newRelease} WITH SOME FAILURE :alarm_clock:")
}
// trigger every-works
always {
slackSend ...
}
}
}
//decalring multiple variables at once
let a, b, c;
a = "days of summer";
const d = 10,
e = 20,
f = 30; // cannot be reassigned but used as an initial value for something
const baseNumber = d;
function getNumber(baseNumber, str) {
return `${baseNumber} ${str}`;
}
console.log("get Number => ", getNumber(d, a));
Comments