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
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
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
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
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
12 matches
Mail list logo