Dynamically list Artifact Version in jenkins job parameter

2019-11-14 Thread Vikrant Kaushik
Hi All,

I'm struggling to get the dynamically list of the Artifact Version in 
jenkins job parameter, I'm using Jfrog Artifactory as a remote repo.I'm 
trying with Active choice parameter but don't know how to get version from 
Artifactory.

Any help would be appreciated. 

regards

Vikrant

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6d68bfac-73fa-4739-83f4-955c0f73824d%40googlegroups.com.


Re: Upload jars or Bundle to Nexus using Jenkins Job and some repository are not uploading the jars or bundle to Nexus

2019-11-14 Thread SARDARNI NK
Thank you Gunduzalp!!

I was getting an error on Jenkins Build  Return code is: 401, ReasonPhrase: 
Unauthorized.


Thanks,
Nav

On Wednesday, November 13, 2019 at 4:32:06 PM UTC-5, Yilmaz Gunduzalp wrote:
>
> Do you get any errors? It could be a ssl certificate issue 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/268c1f5a-52ad-4b15-9e3f-8130ce2992ee%40googlegroups.com.


Re: How to copy a folder one location to another location via jenkins.instance groovy scripts

2019-11-14 Thread Ramesh Mari
Hi James, 

I tried all the way what you have mentioned, but it only copy the job alone 
without build history and also the copied job as non-build able for that we 
need to trigger save function additionally.  I raised a ticket to cloudbees 
they only give support for subscription.   can you raise a ticket if 
possible. 

On Thursday, November 14, 2019 at 5:33:31 AM UTC+5:30, James Nord wrote:
>
> this is not as simple as it sounds.
>
> first off a disclaimer CloudBees (my employer) as a proprietary feature 
> that does this.
>
> the reason it is not simple is each job type may have special folders. 
>  then you have builds which again may have artifacts may have special files 
> etc etc...  trust me there is a lot of edge cases.
>
> if you can simplify things (if the source has builds the destination will 
> have the same builds) then you can do some tricks copying in the same 
> Jenkins instance.
> firstly the job structure is *normally* job/name so you can recursively 
> copy the folder job/foldername.  to job/dest/job/folder name
>
> then you need to tell the parent it has a new child by loading the XML 
> https://javadoc.jenkins.io/jenkins/model/ModifiableTopLevelItemGroup.html#createProjectFromXML-java.lang.String-java.io.InputStream-
>
> alternatively you can copy the jobs recursively
>  
> https://javadoc.jenkins.io/jenkins/model/ModifiableTopLevelItemGroup.html#copy-T-java.lang.String-
>
> or you could become a customer of cloudbees :)
>
> you could possibly also somehow use jobDSL with the seed jobs (but I have 
> never used that)
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/21a183fd-839b-4474-aec5-3103ed7a6263%40googlegroups.com.


Re: speed your Jenkins by an adapter of Jenkins update center

2019-11-14 Thread Xiaojie Zhao (Rick)
Hi Baptiste,

Thanks for your response. Jenkins download the plugin by the URL which comes 
from update-center.json. For example this plugin 
http://updates.jenkins-ci.org/download/plugins/AnchorChain/1.0/AnchorChain.hpi 
.

The problem is that it’s too slow for me. I hope jenkins can download it from 
https://mirrors.tuna.tsinghua.edu.cn/jenkins/plugins/AnchorChain/1.0/AnchorChain.hpi
 
.

> On 14 Nov 2019, at 20:39, Baptiste Mathus  wrote:
> 
> FWIW

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/25B553BC-4244-4E8F-852C-716DCA4DD709%40gmail.com.


AW: How to force jenkins to use $JAVA_HOME/ instead of $JAVA_HOME/jre?

2019-11-14 Thread Herrn, Marco
Hello Björn,

no, the jdk installation is file. It does contain the jre subdirectory 
(`$JAVA_HOME/jre`).
The problem seems to be that Jenkins sets the `${java.home} system property to 
that jre subdirectory (`$JAVA_HOME/jre `) instead of the correct one 
(`$JAVA_HOME).
Then the maven-javadoc-plugin tries to find the `javadoc` executable under 
`${java.home}/bin` which fails, since `${java.home}` points to the wrong 
location.

See the error message:
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-javadoc-plugin:3.1.1:jar (default-cli) on 
project XXX: MavenReportException: Error while generating Javadoc: Unable to 
find Javadoc command: The Javadoc executable 
‘/opt/oracle_jdk1.8.0_191/jre/bin/javadoc’ doesn’t exist or is not a file. 
Verify the  parameter.
BR
Marco



Von: 'Björn Pedersen' via Jenkins Users 
Gesendet: Donnerstag, 14. November 2019 09:12
An: Jenkins Users 
Betreff: Re: How to force jenkins to use $JAVA_HOME/ instead of $JAVA_HOME/jre?

Hi,

Maybe this be a stripped down/incomplete jdk install. If looking into one of my 
jdk installs(manual install with oracle installer), there is a jre subdirectory 
 present.

Björn
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ca918127-f740-4463-b130-55686f6205e3%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/AM0PR10MB3107FA407C0B2B8E5D14D40EE0710%40AM0PR10MB3107.EURPRD10.PROD.OUTLOOK.COM.


Re: How to force jenkins to use $JAVA_HOME/ instead of $JAVA_HOME/jre?

2019-11-14 Thread 'Björn Pedersen' via Jenkins Users
Hi,

Maybe this be a stripped down/incomplete jdk install. If looking into one 
of my jdk installs(manual install with oracle installer), there is a jre 
subdirectory  present. 

Björn

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ca918127-f740-4463-b130-55686f6205e3%40googlegroups.com.