Concourse is a CI/CD tool available on-premises, highly focused on pipelines.
For this, you may simply take advantage of Xray's REST API for submitting results for example.
In this scenario, we want to get visibility of the automated test results from some tests implemented in Java, using the JUnit framework.
This recipe could also be applied for other frameworks such as NUnit, TestNG or Robot.
The tests are implemented in a JUnit class (stored in a git repository) as follows.
What concerns Concourse itself, we start by setting up a pipeline based on a YAML configuration file.
Note that this file is just an example; you should avoid hardcoded usernames, passwords in the .yml file.
In order to submit test results, we'll just need to invoke the REST API (as detailed in Import Execution Results - REST).
We're using "curl" utility that comes in Unix based OS'es but you can easily use another tool to make the HTTP request; however, "curl" is provided in most Docker images.
The Jira user (i.e. username and password) mentioned in the configuration below must exist in the Jira instance and have permission to Create Test and Test Execution Issues.
After preparing the pipeline configuration file, it needs to be submitted to Concourse.
You can open your browser (e.g.and execute/check the execution progress there.
And in Xray, in this case, we'll have a new Test Execution containing the results of the automated tests.