Hi,
Lets assume there are two job:
1. a job for a micro-service repository
2. a job for end-to-end tests
I'd like, in specific cases, to start the end-to-end tests job from the micro-service job.
For example, after introducing a change that even though passed unit testing and integration testing, it needs further testing, available in the end-to-end tests job.
I'd like for the developers to make a commit with a specific phrase, e.g. "[e2e]" and to use it as follows (just pseudo code for now).
pipeline {
...
...
stages {
...
}
post {
success {
if (BRANCH_NAME == "develop") {
result = sh (script: "git log -1 | grep '.*\\[e2e\\].*'", returnStatus: true)
if (result == 0) {
// start the d2d job
}
}
}
...
...
}
}