下面是我发送电子邮件的jenkins管道问题是我的身体中有一些params.variables,我需要使用它们才能替换它们我需要使用“””我还有一个HTML文件,我附在里面身体,我需要使用''
有什么办法可以将两者结合在体内?下面的代码给出了 UNEXPECTED TOKEN FILE,如果我用 ' 替换 " ,那么 params 变量不会被替换
emailext (
mimeType: "text/html",
to: 'srav',
subject: "Job '${env.JOB_BASE_NAME}' (${env.BUILD_NUMBER}) is waiting for approval",
body: """<p>Hi</p><p>Defect ${params.DE_NUMBER} is waiting for approval</p><p>${FILE,path="/atm/com/def/de_1886.html"}</p><p>Please go to console output of "<a href="${env.BUILD_URL}/input">${env.BUILD_URL}input</a>" to <font color="green"> Approve</font> or <font color="red">Reject</font> </p><p>Thank You</p><p>DEVOPS TEAM</p>""",
recipientProviders: [[$class: 'DevelopersRecipientProvider'],[$class: 'RequesterRecipientProvider']]
)