Probably a better approach would be to have the first step of the Jenkinsfile check the commit log vs the last build commit and if the all commits since the last build match a regex, then record the build as whatever the last build status was / user configurable.
If the branch source hid branches where the last commit matched a regex, then you would end up deleting the branch job - which is not what you want.
We don't know the changelog until the build is started and it would be costly to constantly check the changelog (requiring a full git clone for some repository hosting providers)
It would be - to my mind - relatively simple to have a pipeline step that checks the changelog against a regex and stops the build early if all commits since last build match the supplied regex.
Would that be an acceptable solution?
Probably a better approach would be to have the first step of the Jenkinsfile check the commit log vs the last build commit and if the all commits since the last build match a regex, then record the build as whatever the last build status was / user configurable.
If the branch source hid branches where the last commit matched a regex, then you would end up deleting the branch job - which is not what you want.
We don't know the changelog until the build is started and it would be costly to constantly check the changelog (requiring a full git clone for some repository hosting providers)
It would be - to my mind - relatively simple to have a pipeline step that checks the changelog against a regex and stops the build early if all commits since last build match the supplied regex.
Would that be an acceptable solution?