Re: Get POM Version from Jenkins Pipeline

2018-02-05 Thread Hongguo An
Thanks, so I need to do it this way? { pipeline{ node{ def pom = readMavenPom() def version=pom.version agent any tools { maven '3.x' } stages{} } } }? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group

Re: Get POM Version from Jenkins Pipeline

2018-02-05 Thread Torsten Reinhard
If you´re inside a "node" and your workspace has a valid pom.xml file, readMavenPom() should do the magic. You could than acess the version using def pom = readMavenPom() def version = pom.version Torsten Am Sonntag, 4. Februar 2018 07:19:59 UTC+1 schrieb Hongguo An: > > Hi: > I am using

How to support nonProd/Prod credentials in Pipeline?

2018-02-05 Thread Torsten Reinhard
Hi, in our builld & deploy Pipeline we need to support TEST, INT as well as PROD environment. For accessing the TEST, INT environment we are allowed to store the credentials in Jenkins (Credentials Binding plugin) By using the "credentialsId" I can easily get the username/pwd and pass it to

Re: How to keep a running docker container after a build fails?

2018-02-05 Thread pisymbol
withDockerContainer(image: "centos:7", args: "--privileged") { stage ('Negotiate World Peace') {} stage ("Cure Cancer") {} etc. -aps -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and

Jenkins inside Tomcat

2018-02-05 Thread Zane Blalock
I've set up a Jenkins environment inside of Tomcat as a webapp, and I have it running rather well. However, I noticed I cannot get tomcat to redirect jenkins to https -- or anything for that matter - such that I've setup the web.xml and server.xml properly - I can get to the https setup just

Re: How to keep a running docker container after a build fails?

2018-02-05 Thread Victor Martinez
Hi, How do you launch your builds? Pipeline/Freestyle? Cheers -- 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.

Jenkins migration to another PC

2018-02-05 Thread Ramesh Kumar
During the process of migrating Jenkins server from one machine to another machine I am facing a problem 1. I have a Ubuntu running Jenkins on 2.61. 2. I copied the folder /var/lib/jenkins 3. In new Ubuntu I installed Jenkins(same version 2.61) 4. I copied the entire back up from old ubuntu to

How to keep a running docker container after a build fails?

2018-02-05 Thread pisymbol
I have Googled this and still can't find as simple answer. Is there a way to have Jenkins not clean up the container after a build? I am having a build failure and I don't quite understand why (a file doesn't exist when it should). But I have to replay the entire build which takes about 40

RE: Resuming of pipelines vs. docker.image(...).inside(...)?

2018-02-05 Thread Reinhold Füreder
I now dared to file https://issues.jenkins-ci.org/browse/JENKINS-49365 -- 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

Re: Multibranch Pipeline: Checkout hangs on git rev-list

2018-02-05 Thread Sverre Moe
Just now we got one Multibranch pipeline to hang on git rev-list on a project that has no git tags. Running with latest Jenkins, git plugin, git-client plugin and git. mandag 5. februar 2018 09.17.03 UTC+1 skrev Sverre Moe følgende: > > The problem occurred with the latest version of git plugin

Re: Multibranch Pipeline: Checkout hangs on git rev-list

2018-02-05 Thread Sverre Moe
The problem occurred with the latest version of git plugin and git client plugin. We have gotten the problem on projects that does not have many tags, aprox 300. We even got the problem on a project that has no tags at all. We are back at running with the latest version after I tried to revert