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

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

2018-03-26 Thread Sabyasachi Das
Hi All, I have installed Blackduck detect plugin in jenkins. I want to do Blackduck detect configurations via groovy script. I am able to do using GUI Manage Jenkins -> configure system but need to do similar activity via groovy script. Similar configurations for other plugins can be done for

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
...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of Ankush Aggarwal Sent: Monday, November 10, 2014 7:30 AM To: jenkins...@googlegroups.com Subject: Groovy script to do jenkins configuration Hi All, I have installed sonar and artifactory plugin in jenkins. I want to do both s

Re: Groovy script to do jenkins configuration

2014-11-10 Thread Ankush Aggarwal
hem > within a Jenkins job. > > > > Hope this helps! > > > > --Rob Mandeville > > > > > > *From:* jenkins...@googlegroups.com [mailto: > jenkins...@googlegroups.com ] *On Behalf Of *Ankush Aggarwal > *Sent:* Monday, November 10, 201

RE: Groovy script to do jenkins configuration

2014-11-10 Thread Rob Mandeville
, November 10, 2014 7:30 AM To: jenkinsci-users@googlegroups.com Subject: Groovy script to do jenkins configuration Hi All, I have installed sonar and artifactory plugin in jenkins. I want to do both sonar and artifactory configurations via groovy script. I am able to do using GUI Manage Jenkins

Groovy script to do jenkins configuration

2014-11-10 Thread Ankush Aggarwal
Hi All, I have installed sonar and artifactory plugin in jenkins. I want to do both sonar and artifactory configurations via groovy script. I am able to do using GUI Manage Jenkins -> configure system but need to do similar activity via groovy script. Anyone please help me on this. Thanks, An