I have a single repo which contains multiple projects, and that too APIs in different frameworks/technologies.
I have multiple jenkins pipelines setup to cater all these jobs, and handling the conditions on stage level to skip them using For e.g.
when {
changeset "**servicelayer/*"
}
Above is a scenario where I do not want to execute the full pipeline if someone checks in files to a specific folder. But this only allows to skip a particular stage. Is there a way that I can validate that at the Pipeline level to see if the condition is not met then skip the whole job?
NOTE: I have already tried configuring the included/excluded region at the Jenkins pipeline level. It doesn't work for me at all.