Page History
...
- you just want to trigger a CI job, period; this job may be totally unrelated to the issue from where you triggered it
- what the CI job will do, including if it will report the results back to Xray or not, is not relevant
For most CI tools, this only requires that you perform some HTTP request passing the CI job as an argument, somehow.
...
- Automation for Jira
- Jenkins Integration for Jira
- configure your Jenkins "site" (server) in the app setting
- trigger the Jenkins "build"
- ScriptRunner (these examples also report the results back to the current issue)
...
- you want to trigger a CI job and report back the results to the current issue (e.g. Test Plan)
- the tests that will run are unrelated with the caller issue; it's up to the logic built into the CI job to decide which tests to run
"Jenkins Integration for Jira", "Automation for Jira", "ScriptRunner" apps can be used to implement this scenario.
...
- Jenkins Integration for Jira
- in this case, you would need to use pipeline-based Jenkins projects where you would use a snippet of code to obtain the calling Jira issue which could be used later on in the step for uploading the results to Xray; you may need to enable the usage of these classes in Jenkins settings
- def sourceIssueKey = currentBuild.getRawBuild().getCause(org.marvelution.jji.trigger.JiraCause).getIssueKey()
- configure your Jenkins "site" (server) in the app setting
- trigger the Jenkins "build"
- configure your Jenkins "site" (server) in the app setting
- def sourceIssueKey = currentBuild.getRawBuild().getCause(org.marvelution.jji.trigger.JiraCause).getIssueKey()
- in this case, you would need to use pipeline-based Jenkins projects where you would use a snippet of code to obtain the calling Jira issue which could be used later on in the step for uploading the results to Xray; you may need to enable the usage of these classes in Jenkins settings
- Automation for Jira
- ScriptRunner
...
- you want to trigger a CI job and report back the results to the current, caller issue (e.g. Test Plan, Test Execution)
- the tests that you want to run are the automated ones present in the caller issue (e.g. Test Plan, Test Execution)
This scenario, though feasible, is a bit more complex for two reasons:
...