我如何在不使用Maven的情况下触发诱惑2 jira插件?
我试图使用诱惑2.13.8在Jira中看到我的测试结果。测试结果可见,但不会显示为返回报告的链接,即所谓的反向链接 这是我的情况 当我使用Allure maven与maven生成Allure报告时:我如何在不使用Maven的情况下触发诱惑2 jira插件?,maven,jenkins,pipeline,allure,jira-plugin,Maven,Jenkins,Pipeline,Allure,Jira Plugin,我试图使用诱惑2.13.8在Jira中看到我的测试结果。测试结果可见,但不会显示为返回报告的链接,即所谓的反向链接 这是我的情况 当我使用Allure maven与maven生成Allure报告时: mvn clean test allure:report executor.json是在allure results dir中使用maven build info创建的 environment { ALLURE_JIRA_LAUNCH_ISSUES = 'xxx-9' ALLURE
mvn clean test allure:report
executor.json是在allure results dir中使用maven build info创建的
environment {
ALLURE_JIRA_LAUNCH_ISSUES = 'xxx-9'
ALLURE_JIRA_ENABLED = 'true'
ALLURE_JIRA_ENDPOINT = 'http://localhost:8080/rest/'
ALLURE_JIRA_USERNAME = 'xxx'
ALLURE_JIRA_PASSWORD = 'xxxx'
}
stage('Test Execution') {
steps {
withMaven(options: [artifactsPublisher(disabled: true)],
maven: 'MAVEN_HOME') {
sh "mvn clean test -Dtest=ApplyForCreditCardTestsDE,_FailedTests* -Denv=qa-de"
}
}
}
{"buildName":"test #35","buildOrder":"35","reportName":"AllureReport","name":"Jenkins","buildUrl":"http://localhost:8085/job/test/35/","reportUrl":"http://localhost:8085/job/test/35/allure","type":"jenkins","url":"http://localhost:8085/"}
上述环境变量触发诱惑中的jira插件,以导出测试结果并启动到jira。这是可行的,但executor.json不包含创建这些反向链接所需的链接。只是一些有限的信息,如项目名称,仅此而已
当我使用Jenkins Allure插件生成诱惑报告时:
stage('Generate Test Report') {
steps {
script {
allure([
includeProperties: true,
jdk: '',
properties: [
[key: 'ALLURE_JIRA_LAUNCH_ISSUES',value: 'xxx-9'],
[key: 'ALLURE_JIRA_ENABLED',value: 'true'],
[key: 'ALLURE_JIRA_ENDPOINT',value: 'http://localhost:8080/rest/'],
[key: 'ALLURE_JIRA_USERNAME',value: 'xxx'],
[key: 'ALLURE_JIRA_PASSWORD',value: 'xxxx']
],
reportBuildPolicy: 'ALWAYS',
results: [[path: 'target/allure-results']]
])
}
}
}
executor.json是在allure results dir中使用jenkins build info创建的
environment {
ALLURE_JIRA_LAUNCH_ISSUES = 'xxx-9'
ALLURE_JIRA_ENABLED = 'true'
ALLURE_JIRA_ENDPOINT = 'http://localhost:8080/rest/'
ALLURE_JIRA_USERNAME = 'xxx'
ALLURE_JIRA_PASSWORD = 'xxxx'
}
stage('Test Execution') {
steps {
withMaven(options: [artifactsPublisher(disabled: true)],
maven: 'MAVEN_HOME') {
sh "mvn clean test -Dtest=ApplyForCreditCardTestsDE,_FailedTests* -Denv=qa-de"
}
}
}
{"buildName":"test #35","buildOrder":"35","reportName":"AllureReport","name":"Jenkins","buildUrl":"http://localhost:8085/job/test/35/","reportUrl":"http://localhost:8085/job/test/35/allure","type":"jenkins","url":"http://localhost:8085/"}
这就是我需要被推给吉拉的东西
出于某种原因,我无法理解如何从这个插件触发jira插件?或者我需要使用Allure命令行界面来实现这一点?我迷路了
如果你能帮助我,我将不胜感激