Issue Type: Bug Bug
Affects Versions: current
Assignee: Unassigned
Components: other
Created: 08/Aug/14 10:12 AM
Description:

I have noticed when running scripts in the Management scripting console that jobs are updated immediately, even when there is no jop.save invoked.

Not sure if this is a deliberate change in the API, but can't find much documentation about this.
http://javadoc.jenkins-ci.org/hudson/model/Job.html#save%28%29

For instance:

Jenkins.instance.items.each { job ->
  println "--- $job.name"
  job.disabled=true
  //job.save() // this line is commented out, but all jobs are disabled
}

It may be my expectations, that not saving a job would mean no changes are made. I have encountered this when performing mass operation on SCM components and adding/updating build components.

Environment: Linux RH
Project: Jenkins
Priority: Minor Minor
Reporter: Marcus Collins
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to