我有这样的管道:
stages{
stage ('1') {
steps{do something}
}
stage ('2') {
steps {do something}
}
我想做的是在环境变量中获取每个阶段的结果,例如在
中stage ('1')
COMPILE_STATUS= <some variable that contains the result of this stage>
stage ('2')
TEST_STATUS = <some variable that contains the result of this stage>
最后,我想自定义我的电子邮件以发送每个阶段的状态