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
                }
            }
        }
    ...
    ...
    }
}



-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/db4e7ca4-4a8b-4a70-ae49-6595eda541b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to