Pipeline Memory Issues

2017-05-17 Thread ddescombaz via Jenkins Users
We have a Jenkins server that runs a pipeline, loads a GIT repo, and then loads other custom groovy scripts that contain more pipeline commands from that repo. After a day or so we end up with 100s of thousands of loaded classes on the server. This amount then stays static for several days or a

Re: How to get build results from a build job in a pipeline

2017-05-17 Thread Jesse Kinross-Smith
Thanks Bill - appreciate the response. I found that not propagating the errors was the key - it would continue onto further tasks nicely if I did that. Only issue really is that if you watch the pipeline in Jenkins then it appears to show all green even if a step has failed. My build summary

Re: How to get build results from a build job in a pipeline

2017-05-17 Thread Jesse Kinross-Smith
So I was trying too hard - the try/catch isnt' needed at all. All I needed was: BuildResults = build job: 'testJob', propagate: false; notify_email(BuildResults); On Wednesday, May 17, 2017 at 10:45:27 AM UTC+8, Jesse Kinross-Smith wrote: > > How can I do this right - I want the results from

Re: SVN post-commit notify for parameterized job

2017-05-17 Thread Tammy Osborn
I don't understand what you mean. But I tried adding ${revision} to my Repository URL with no "at" sign. Once that's there, no job is triggered by my post-commit hook. After I remove it, the job is triggered just fine. On Tuesday, May 16, 2017 at 3:01:39 AM UTC-7, Artur Szostak wrote: > One

Re: Access M2 Release Plugin release permission through groovy

2017-05-17 Thread James Nord
Did you try org.jvnet.hudson.plugins.m2release.M2ReleaseBuildWrapper.DescriptorImpl.CREATE_RELEASE ? /James On 5/16/2017 7:50 PM, Logan Twedt wrote: Hi Tina, et all, I'm also trying to configure the Release permission using a groovy script. I do see that the permission is called

Re: fine-tuning of SCM polling in a multi-branch pipeline project

2017-05-17 Thread Stephen Connolly
On Wed 17 May 2017 at 11:33, Ewgenij Gawrilow wrote: > Hello, > > could anybody more seasoned in Jenkins pipelines point me to some > documentation or informal explanation of the behavior of SCM polling in the > multi-branch context? > I'm trying to set up a

Re: upgrading jenkins form 1.636 to 2.32.3 or even the latest causes following issue.

2017-05-17 Thread Raj
j_CloudViewer_build_pipeline Vega Build Pipeline false false j_Cloudviewer-Snapshot 3 Vega Build Pipeline false true true 3 true false On Wednesday, May 17, 2017 at 11:40:29 AM

Re: Pipeline conversion of MSTest to JUnit using XUnit

2017-05-17 Thread Thiago Carvalho Davila
I didn't see xUnit option in snippet generator. Em 17/05/2017 13:53:30, Slide escreveu: > Have you tried using the snippet generator? > > On Wed, May 17, 2017 at 7:59 AM Thiago Carvalho Davila <> > thiago.dav...@serpro.gov.br> > wrote: > > Hi, > > > > I've been trying to convert MSTests using

Re: Interpolating variables in agent's docker parameter

2017-05-17 Thread Bartłomiej Sacharski
> > (replies inline) > > On Wed, 17 May 2017, Bart??omiej Sacharski wrote: > > > Hello. > > > > I'm trying to mount specific directory to a stage-only agent that will > use > > docker in a declarative pipeline. > > It looks like this: > > > > > agent { > > > docker { > > > image

Re: Interpolating variables in agent's docker parameter

2017-05-17 Thread R. Tyler Croy
(replies inline) On Wed, 17 May 2017, Bart??omiej Sacharski wrote: > Hello. > > I'm trying to mount specific directory to a stage-only agent that will use > docker in a declarative pipeline. > It looks like this: > > > agent { > > docker { > > image "myimage:latest" > > args "-v

Interpolating variables in agent's docker parameter

2017-05-17 Thread Bartłomiej Sacharski
Hello. I'm trying to mount specific directory to a stage-only agent that will use docker in a declarative pipeline. It looks like this: > agent { > docker { > image "myimage:latest" > args "-v ${WORKSPACE}/out:/var/www/api/out" > } > } > However, this results in *No such property:

Dynamic Parameter to Build without Active Choices Plugin

2017-05-17 Thread Tim Downey
Hi, I have some builds that use the Active Choices plugin to call a REST api to build a list of parameter choices at the time the job runs. Now that Active Choices and Scriptler have been removed from the Update Center, I'm wondering if there are any more secure alternatives? I've been

Re: Pipeline conversion of MSTest to JUnit using XUnit

2017-05-17 Thread Slide
Have you tried using the snippet generator? On Wed, May 17, 2017 at 7:59 AM Thiago Carvalho Davila < thiago.dav...@serpro.gov.br> wrote: > Hi, > > I've been trying to convert MSTests using pipeline, and I've been > struggling to make a step for that: > > step([$class:

Re: How to specify recipients in email-ext step in declarative script?

2017-05-17 Thread Slide
You are using "to: ", you don't need both to and recipientProviders, especially since you are already using the def recipients = emailext... to get the same thing. If the job succeeds, I don't think the culprits will be emailed, but I could be wrong. Are you using a pipeline or other type of job?

Re: EC2 plugin-discovered agents configuration issue

2017-05-17 Thread 'Meister Murphy' via Jenkins Users
Noone? On Friday, May 12, 2017 at 11:49:54 AM UTC+2, Meister Murphy wrote: > > Hi all, > > I recently installed the EC2 plugin in an effort to use a spot fleet, > and i'm having some issues: > > 1) The node that was created for an instance in the fleet will only > allow me to configure it's name,

Re: upgrading jenkins form 1.636 to 2.32.3 or even the latest causes following issue.

2017-05-17 Thread Raj
Thank you created : https://issues.jenkins-ci.org/browse/JENKINS-44324 On Wednesday, May 17, 2017 at 11:17:45 AM UTC-4, Dan Alvizu wrote: > > Also please include in the bug report: > > >- The version of the build pipeline plugin you are using >- The build pipeline XML from the config.xml

Re: upgrading jenkins form 1.636 to 2.32.3 or even the latest causes following issue.

2017-05-17 Thread 'Dan Alvizu' via Jenkins Users
Also please include in the bug report: - The version of the build pipeline plugin you are using - The build pipeline XML from the config.xml of the build pipeline - it will be a file in /var/lib/jenkins/config.xml - or if you are using a folder will be in

Re: upgrading jenkins form 1.636 to 2.32.3 or even the latest causes following issue.

2017-05-17 Thread 'Dan Alvizu' via Jenkins Users
Hi, Can you open an issue at https://issues.jenkins-ci.org/secure/Dashboard.jspa ? On Tuesday, May 16, 2017 at 10:17:09 PM UTC-6, Raj wrote: > > > A problem occurred while processing the request. Please check our bug > tracker to see if a similar problem has already been reported. If it is >

Pipeline conversion of MSTest to JUnit using XUnit

2017-05-17 Thread Thiago Carvalho Davila
Hi, I've been trying to convert MSTests using pipeline, and I've been struggling to make a step for that:     step([$class: 'XUnitBuilder', thresholds: [[$class: 'FailedThreshold', unstableThreshold: '1']], tools: [[$class: 'MSTest', pattern: 'TestResults\\*.trx']]]) For this I

email-ext and multiconfiguration projects

2017-05-17 Thread Sébastien Hinderer
Dear all, On a project with a two-dimensions matrix, I am trying to include the values of the matrix variables in the subject of emailext editable notifications. So far I tried both ${slave} and ${ENV, var="slave"}, where "slave" is the name of the label for one dimension of the matrix. None of

RE: How to specify recipients in email-ext step in declarative script?

2017-05-17 Thread David Aldrich
Hi Slide I am running the job manually. There are commits by another user since the job last ran, so I assume there should be culprits. The job actually succeeds, but I’m assuming that the culprits should still receive the email. If I remove: recipientProviders: [[$class:

Re: How to specify recipients in email-ext step in declarative script?

2017-05-17 Thread Slide
Try removing the recipientProvider parameter to emailext, I'm not sure if that will mess things up. I'm not familiar with declarative pipeline enough to say how to get the correct build status. How are you running the job? If you are running it manually and there have been no changes, then there

RE: How to specify recipients in email-ext step in declarative script?

2017-05-17 Thread David Aldrich
I tried replacing my code with that produced by the snippet generator: script{ emailext (body: '${DEFAULT_CONTENT}', recipientProviders: [[$class: 'CulpritsRecipientProvider']], subject: '${DEFAULT_SUBJECT}',

fine-tuning of SCM polling in a multi-branch pipeline project

2017-05-17 Thread Ewgenij Gawrilow
Hello, could anybody more seasoned in Jenkins pipelines point me to some documentation or informal explanation of the behavior of SCM polling in the multi-branch context? I'm trying to set up a pipeline running different test scenarios depending on some magic words in the commit message, or

Re: How to get build results from a build job in a pipeline

2017-05-17 Thread Bill Dennis
Ah just saw you need the job to call all builds even if one fails. You can do it with a parallel section like this: Map buildResults = [:] Boolean failedJobs = false void nofify_email(Map results) { echo "TEST SIMULATE notify: ${results.toString()}" } Boolean buildJob(String jobName, Map

Declarative pipeline parallel input blocks all branches

2017-05-17 Thread rouke . broersma
I have a pipeline that is used to deploy (on user input) the latest build to customers, with a parallel branch per customer. The build currently uses the Delivery Pipeline plugin to do this and this works. I am trying to

Re: How to get build results from a build job in a pipeline

2017-05-17 Thread Bill Dennis
You could build the downstream jobs without propagating the error to the top level job calling them. Then you could get the results from each downstream job and handle it to do the notifications according to SUCCESS/FAILURE/UNSTABLE etc. I do this sort of thing using declarative pipeline then

Automated install does not work like expected, duplicate unpacking operations and jdk installation not triggered at all.

2017-05-17 Thread Andreas Zschorn
Hello, We are trying out the automated install options, especially for maven and the jdk, to support more environments and even plain machines from the aws cloud. Normally, the installation and configuration for automated installation is straight forward, but the behaviour is not what i

Re: Job parameter as Selectbox with items from database

2017-05-17 Thread Sébastien Hinderer
Hello Andrey, I think I saw a similar discussion on the list around the end of April. I can't remember the details well but I think there is a solution involving a plugin that lets you control what other scripts are allowed to do. If you lookup the list archive for htis period I'm pretty sure you

Re: Jenkins Upgrade Wizard fails from 1.609.3 -> 2.46.2

2017-05-17 Thread Daniel Beck
> On 15. May 2017, at 13:40, sweeney wrote: > > But there's over 100 of them and I was hoping that there was a small number > of metapackages I could install to achieve the same result as the failed > install wizard. My alternative is to verify/install over 100 packages by

RE: How to specify recipients in email-ext step in declarative script?

2017-05-17 Thread David Aldrich
Hi Slide I think the script is still not quite right. I now have: post { success { script{ def recipients = emailextrecipients([ [$class: 'DevelopersRecipientProvider'] ]) emailext (to: "daldrich," + recipients, subject:

Re: Unable to connect to to the git repository, can any one please suggest what is wrong with the configuration

2017-05-17 Thread Ramanathan Muthaiah
Adding to Victor's response, you may want to explore additional options available for checkout and cloning. C:\Program Files\Git\bin\git.exe fetch --tags --progress https: > //git.etb.tieto.com/x/x.git +refs/heads/*:refs/remotes/origin/* > ERROR: Timeout after 10 minutes > ERROR