disable update center and the doCheckUpdatesServer() completely at start of Jenkins

2019-08-28 Thread Jeroen Wolff
Hi, on our production openshift cluster we don't have internet access, so i want to disable Jenkins to check for updates. I made this file in init.groovy.d/disable-all-update-sites.groovy /* This script completely disables all update sites in Jenkins, invalidates plugin upgrade data, and

message "You have data stored in an older format and/or unreadable data." after Groovy init script

2018-09-28 Thread Jeroen Wolff
Hi all, I've got an init.d/ groovy script to configure the mailer task: import jenkins.model.* def jenkinsInst = Jenkins.getInstance() def mailerDesc = jenkinsInst.getDescriptor("hudson.tasks.Mailer"); mailerDesc.setSmtpHost("smtp.domain.com") mailerDesc.setUseSsl(false) mailerDesc.setDefaultSuf