I have added stopping the old trigger and starting the new trigger.
I have also a solution that worked without this:
def jenkinsInstance = jenkins.model.Jenkins.getInstance()
def SCM_TRIGGER_DESCRIPTOR = jenkinsInstance.getDescriptorOrDie(SCMTrigger.
class)
def developmentView = jenkinsInstance
You forgot to `start(Job, boolean)` the trigger you added. You'll probably also
need to `stop()` any existing SCMTrigger that gets replaced by yours.
On 21.09.2015, at 16:11, Sverre Moe wrote:
> It seems when I updated a Job configuration with Groovy in the Script console
> it didn't really ta
It seems when I updated a Job configuration with Groovy in the Script
console it didn't really take effect.
def jenkinsInstance = jenkins.model.Jenkins.getInstance()
def developmentView = jenkinsInstance.getView("Development")
developmentView.getItems().each { project ->
def trigger = new hud