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
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
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
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
t;> Artifactory Script
>>>>> ==
>>>>> import jenkins.model.*
>>>>> import org.jfrog.*
>>>>> import org.jfrog.hudson.*
>>>>> import org.jfrog.huds
.*
>>>> import org.jfrog.hudson.*
>>>> import org.jfrog.hudson.util.Credentials;
>>>>
>>>> def inst = Jenkins.getInstance()
>>>>
>>>> def desc = inst.getDescriptor("org.jfrog.hudson.ArtifactoryBuilder"
ctoryBuilder")
>>>
>>> def deployerCredentials = new Credentials("admin", "password")
>>> def resolverCredentials = new Credentials("", "")
>>>
>>> def sinst = [new ArtifactoryServer(
>>> "server-id",
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
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
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
...@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
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
, 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
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
14 matches
Mail list logo