对于变量env.NEW_JIRA_LABEL,如何将环境变量/普通变量值传递给以下模块?建议会有所帮助。
junit (
testResults:'testng-automation/xxx/target/surefire-reports/*.xml',
testDataPublishers: [
jiraTestResultReporter(
configs: [
jiraStringField(fieldKey: 'summary', value: '${DEFAULT_SUMMARY}'),
jiraStringField(fieldKey: 'description', value: '${DEFAULT_DESCRIPTION}'),
jiraStringArrayField(fieldKey: 'labels', values: [jiraArrayEntry(value: 'Jenkins'), jiraArrayEntry(value:**'${env.NEW_JIRA_LABEL}**')])
//jiraStringArrayField(fieldKey: 'labels', values: [jiraArrayEntry(value: 'Jenkins'), jiraArrayEntry(value:'Integration')])
],
projectKey: 'TEST',
issueType: '10004',
autoRaiseIssue: true,
autoResolveIssue: true,
autoUnlinkIssue: true,
)
]
)