My solution is similar to updating Sam , but I would use a โpreambleโ configuration, which is triggered by commits to the original control. This work is solely responsible for verifying that any of your integration test tasks have already been completed and stopping them by calling the REST API , if necessary.
Basic integration tests are performed from a special job configuration that uses a build completion trigger associated with the preamble configuration.
In this setting, itโs quite simple to ask which tasks are being performed, and you may need to cancel them if a new job is done. So the steps are:
- Preamble - Cancel any running integration test run initiated by VCS
- Integration Test - Initiated by the completion of the Preamble assembly
source share