Three years ago I wrote a small modification to the MultiJobPlugin.
That modification avoid builds a job under certain conditions, one of them 
is the absence of scm changes.
But that code is available only to Multijobs, and I would like to provide 
that functionality to more job types.

In my company we have several projects developed by providers.
Each project is divided into subprojects, and it is necesary build 
subprojects in a ordered sequence, but only when it is necessary, and in a 
predectible schedule, not when SCM changes are detected.
So from 10:00am until 08:00pm every two hours Jenkins launch "Continuous 
Buildings": for every project exists a Job that knows the ordered sequence 
of subprojects, and with the help of the Multijob project and the "Build 
only if scm changed" subprojects are build only when necessary (workspace 
is empty, or last build was not stable, or scm contains changes...).
At 11:00pm Jenkins launch Nightly buildings, that are similar to Continuous 
Buildings, but we analyze the code quality with SonarQube and the 
vulnerabilities with OWASP plugin, in the same ordered sequence.
The logic for deciding if the job (corresponding to a subproject) should be 
builded is inside the Multijob plugin, so this feature is restricted to it.
I want to extract that logic to provide a plugin for providing that 
functionality in FreeStyle Jobs, Maven Jobs and in a future in Pipeline 
Jobs (maybe...).

That is the reason for not using the SCM Trigger feature.

May be I am wrong, but this strategy works very well on my company in small 
projects (less than 20.000 LOC) and medium projects (about 800.000 LOC), 
with one or more development branches.

Jesse, thank you for your help.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/b98973ea-d8ee-450c-b37e-ef6628012aa4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to