Context

Xray allows users to trigger pre-configured remote jobs directly from a Test Plan or Test Execution. This option enables user to trigger builds on your CI/CD tool without leaving Xray improving tester performance and streamlining the workflow.
Depending on the build configuration, it's possible to pass information to the build such as issue key of the Test Execution/Plan where it was called from, this enhances the control over the build the CI/CD will execute to have multiple builds options to adjust to your testing needs.
Triggering doesn't imply that that results are going to be reported back to the original issue where it was triggered from, that logic must be made on the target CI/CD build configuration, using for example the information the source issue where it was triggered from, passed as variable to the target build.


To have the build configurations available you need first to setup the configurations on project settings. For more information check here

Test Plan 

On a test plan you will be able to see the "Trigger Build" configuration dropdown, right after the "Create Test Execution" button. If option is disabled, no configuration has been created yet, please refer to documentation here


To trigger a build, just select any option from the dropdown, the trigger will be executed and a message indicating if the trigger has sent with success will be displayed:


Test Execution 

On a test execution you will be able to see the "Trigger Build" configuration dropdown, right after the "Add Tests" button. If option is disabled, no configuration has been created yet, please refer to documentation here


To trigger a build, just select any option from the dropdown, the trigger will be executed and a message indicating if the trigger was sent with success will be displayed:

Acknowledge that the trigger is posted to the CI/CD platform and the status only confirms that the CI/CD platform was received the request. To check the status of the build, it's required to access the build queue of the triggered job/project on the CI/CD platform.