Hi,
We have several builds which are triggered by push on the remote Git repositories associated. For these builds, we are using the Pipeline plugin with the in-repository Jenkinsfile.
After the build has been successfully completed, we usually deploy the relevant artifact produced by first bumping the version number, editing our deployment scripts to deploy this new version then deploy it. Jenkins finally commit everything and pushes this back to the Git repository ...
... and if don't do anything, infinite loops ensue :)
We are using an adapted version of the "CI-Skip" plugin (which marks a build has "NOT_BUILT" if the commit messages which triggered the build contain a specific pattern) which works OK, except that:
* our build history has lot of interlaced green/gray builds
* the last build is always a "NOT_BUILT" build, which makes it slightly harder to see the "real" build result (even if it should be green, anyway)
* last but not least, Jenkins is doing useless job because it still starts the whole Pipeline machinery just to stop after the initial scm checkout step.
See attached screenshot.
How could we make a better way to skip/filter builds based on what has been pushed on our Git repositories?
Thanks!
Jonathan