TOP-1348: Enable auto-publish to Xray
This updates the CI/CD configuration to automatically publish test results to Xray whenever the XRAY_PUBLISH
pipeline variable is set to true
. Note that by default it is set to false
everywhere, because we can control this variable from outside:
- When triggering pipelines from the
ska-low-csp
repository (CI_PIPELINE_SOURCE = 'pipeline'
) we can set the variable in the trigger - When triggering pipelines from the UI (
CI_PIPELINE_SOURCE = 'web'
) we can set the variable in the UI - When running nightly pipelines (
CI_PIPELINE_SOURCE = 'schedule'
) we can set the variable in the schedule settings.
In case XRAY_PUBLISH
is not set to true
, running the tests will output the JSON payload used for Xray in the build output instead, so that it can be debugged/previewed.
Also note that I renamed the CI job to tests:aa05
to match the JAMA/Xray test plan. The idea here is that once we start working with multiple test plans in parallel, we will create separate CI jobs for each test plan. This way we can customize their settings and schedules where needed.
Edited by Sander Ploegsma