Re: Groovy script to do jenkins configuration on Manage Jenkins level for Blackduck detect plugin

2018-04-05 Thread Ewelina Wilkosz
I'm confused, isn't it the one I provided? https://github.com/jenkinsci/blackduck-detect-plugin/blob/master/src/main/java/com/blackducksoftware/integration/detect/jenkins/post/DetectPostBuildStepDescriptor.java ? it has setters for hubUrl, credentials, timeout... exactly what you have in globa

Re: Groovy script to do jenkins configuration on Manage Jenkins level for Blackduck detect plugin

2018-03-29 Thread Sabyasachi Das
Thanks Ewelina, Actually we are looking for a method to retrieve the class instance which is keeping the BlackDuckHub configuration on master level. For example for SonarQube it will be import jenkins.model.Jenkins; import hudson.plugins.sonar.SonarGlobalConfiguration; import hudson.plu

Re: Groovy script to do jenkins configuration on Manage Jenkins level for Blackduck detect plugin

2018-03-26 Thread Ewelina Wilkosz
I haven't tried that and don't know the plugin, but I think you need to find descriptor first since I've found global.jelly for DetectPostBuildStep (https://github.com/jenkinsci/blackduck-detect-plugin/blob/master/src/main/resources/com/blackducksoftware/integration/detect/jenkins/post/DetectPost

Re: Groovy script to do jenkins configuration

2016-02-03 Thread Anurag Sernapally
t;> Artifactory Script >>>>> == >>>>> import jenkins.model.* >>>>> import org.jfrog.* >>>>> import org.jfrog.hudson.* >>>>> import org.jfrog.huds

Re: Groovy script to do jenkins configuration

2016-02-03 Thread Victor Martinez
.* >>>> import org.jfrog.hudson.* >>>> import org.jfrog.hudson.util.Credentials; >>>> >>>> def inst = Jenkins.getInstance() >>>> >>>> def desc = inst.getDescriptor("org.jfrog.hudson.ArtifactoryBuilder"

Re: Groovy script to do jenkins configuration

2016-02-02 Thread Anurag Sernapally
ctoryBuilder") >>> >>> def deployerCredentials = new Credentials("admin", "password") >>> def resolverCredentials = new Credentials("", "") >>> >>> def sinst = [new ArtifactoryServer( >>> "server-id",

Re: Groovy script to do jenkins configuration

2016-02-02 Thread Victor Martinez
calhost:8081/artifactory";, >> deployerCredentials, >> resolverCredentials, >> 300, >> false ) >> ] >> >> desc.setArtifactoryServers(sinst) >> >> desc.save() >> >> On Monday, 10 November 2014 20:02:58 UTC+5:30, Rob Mand

Re: Groovy script to do jenkins configuration

2016-02-02 Thread Anurag Sernapally
oryServers(sinst) > > desc.save() > > On Monday, 10 November 2014 20:02:58 UTC+5:30, Rob Mandeville wrote: >> >> Sorry, I don’t know how to help you more there. >> >> >> >> --Rob >> >> >> >> *From:* jenkins...@g

Re: Groovy script to do jenkins configuration

2014-11-11 Thread Ankush Aggarwal
ovember 2014 20:02:58 UTC+5:30, Rob Mandeville wrote: > > Sorry, I don’t know how to help you more there. > > > > --Rob > > > > *From:* jenkins...@googlegroups.com [mailto: > jenkins...@googlegroups.com ] *On Behalf Of *Ankush Aggarwal > *Sent:* Monday, November 10, 2014

RE: Groovy script to do jenkins configuration

2014-11-10 Thread Rob Mandeville
Sorry, I don’t know how to help you more there. --Rob From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Ankush Aggarwal Sent: Monday, November 10, 2014 9:05 AM To: jenkinsci-users@googlegroups.com Cc: Rob Mandeville Subject: Re: Groovy script to do

Re: Groovy script to do jenkins configuration

2014-11-10 Thread Ankush Aggarwal
Hi Rob, I have script to add Maven configuration through groovy script and it is working fine. i need similar kind of script for sonar and artifactory. maven3.groovy import jenkins.* import jenkins.model.* import hudson.* import hudson.model.* a=Jenkins.instance.getExtensionList(hudson.tasks.M

RE: Groovy script to do jenkins configuration

2014-11-10 Thread Rob Mandeville
If you want to configure your Jenkins service via Groovy, you need the Groovy plugin. This allows you to run a “System Groovy Script”. This runs in the same JVM as the server. This gives you the raw capabilities. I don’t know of one particular reference to tell you how to do what you’re tryi