I'm new to stack overflow so I hope I'm not asking the same question as another user or structuring my question in a way which is difficult to read.
Background to my problem
I'm trying to build an automation framework for testing the functionality of a website, In order to be consider a success it will need to:
- Trigger the build of a single/ set of tests written in cucumber - these are supported by a feature context written in PHP (laravel dusk).
- Execute said single/ set of tests and produce a JSON file containing execution results i.e. Pass|Fail - completed
- Curl the JSON file, produced by the build, to JIRA - imported as test execution results - completed
So an overall description of how I want the process to unfold is as follows:
- User's will be able to either create or select a test and add that to a test execution in JIRA.
- Be able to easily meet a condition which will act as a trigger.
- Have an external program such as Gitlab or Jenkins build the project and generate a JSON file.
- Have the generated JSON file be imported to JIRA via a curl command.
- If successful in all steps, then the test results should be visible on JIRA.
Question
The trouble I'm having is that I can't find any examples of a system using JIRA to trigger an external build - I've seen people use JIRA to record changes/ commits/ merge request etc on Git, but never hosting tests on JIRA and triggering an external program to run said test.
If I have missed an example of people doing this via a native feature, a plugin or any other way then I would be grateful for a link on how they achieved this, if none are found then any advise on how to proceed would also be greatly appreciated as all other success requirements have a working proof of concept except this which is the most crucial part - if people can't initiate a build in a manner which is easy to do so, then people will be reluctant to use it or help another user when they are stuck.
I'm hoping it'll be as easy as clicking execute on a test execution but am open to all theories.