有没有任何方法可以在上次作业中获取构建管道的所有上游作业的构建编号,构建状态和构建url信息。 我有很多作业相互连接。触发器B,B触发C.我不想为每个项目发送成功电子邮件,但想要在最后的下游构建中发送电子邮件。但电子邮件应包含所有上游版本的日志链接。 The Mail content would like to be as below:
Job A: Build number #1 SUCCE
我有一些代码在一个pom.xml文件中读取然后尝试重新序列,并将其写回: // Get the file raw text
def pomXMLText = readFile(pomFile)
// Parse the pom.xml file
def project = new XmlSlurper(false, false).parseText(pomXMLText)
...