Re: Environmental values from a Groovy Pipeline.

2017-11-30 Thread 'Björn Pedersen' via Jenkins Users
Hi, it depends on where in your code you are trying to use this. A workspace is only available (and the env set) while inside a node or ws block. And beware, when different parts of the pipeline run on different node, then each part has it's own workspace, possibly even at different

Environmental values from a Groovy Pipeline.

2017-11-30 Thread Peter Berghold
I am most interested in using the "WORKSPACE" value in the enviromental values. within my pipeline.. I use it as a base to create a staging directory from so I have a value defined such as: def outrepo="${env.WORKSPACE}/shipping-${env.BUILD_NUMBER}" what I am getting back from that is not what

Re: Jenkins builds being triggered despite ³Don't trigger a build on commit notifications²

2017-11-30 Thread Cyril
Hi Cosmo. Sorry for the late response, I was on vacation. Unfortunately I don’t think I can be very helpful as I don’t work in the same company anymore and I don’t remember what I did exactly even after reading all the messages again. I’m pretty sure that I did not do anything else than what is

Re: Pipeline Won't Abort ---- Windows

2017-11-30 Thread Viacheslav Dubrovskyi
Hi Bryan, I get the same issue but on linux. For stop build, I was required to remove build folder and restart jenkins. No any other solution helped. :( If you found other solution, can you say it? 31.08.2017 21:43, Bryan Jones пишет: Hi, we're deploying our Windows app via Jenkins. We're

Re: Return value from step (pipeline)

2017-11-30 Thread Ullrich Hafner
This is not yet possible. The findbugs step does not return anything currently. This will change in a future version of findbugs. See https://wiki.jenkins.io/display/JENKINS/Static+Analysis+in+Pipelines If you have any

Re: Problem with email notification

2017-11-30 Thread 'Ethan Larson' via Jenkins Users
That was it, thanks! Been looking for this off and on for about 2 weeks. On Thursday, November 30, 2017 at 10:16:01 AM UTC-5, Daniel Beck wrote: > > > > On 30. Nov 2017, at 16:09, 'Ethan Larson' via Jenkins Users < > jenkins...@googlegroups.com > wrote: > > > > But the email plugin is still

Re: Problem with email notification

2017-11-30 Thread Daniel Beck
> On 30. Nov 2017, at 16:09, 'Ethan Larson' via Jenkins Users > wrote: > > But the email plugin is still trying to send to sysad...@ourcompanym.com. I'm > wondering where the hell it's getting that old address from. Is there some > cache or something I need

Problem with email notification

2017-11-30 Thread 'Ethan Larson' via Jenkins Users
Hi! I have our email notification set to notifiy "people who broke the build". It's been notifying sysad...@ourcompanym.com (note the "M"). This causes an exception, and it stops notifying anyone in the list after that. I checked in Perforce, and sure enough, several of our build users are

Re: When Connecting to GitLab from Jenkins it is failing

2017-11-30 Thread josue . barrios
I hit the same error :( -- 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

Re: Return value from step (pipeline)

2017-11-30 Thread Mark Waite
Pipeline step return values can be captured. Refer to " https://github.com/MarkEWaite/jenkins-bugs/blob/e47d74ea8185c24d9c9531b7a126ae4a8fadef56/Jenkinsfile#L39; for an example of the return value of "checkout" being assigned and used. Ramanathan, "findbugs" is a step added by the findbugs

Re: Pipelines and @tmp directories

2017-11-30 Thread Victor Martinez
Likely related to https://issues.jenkins-ci.org/browse/JENKINS-41805 -- 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: Pipelines and @tmp directories

2017-11-30 Thread Ramanathan Muthaiah
> > Simple question: is there a way to make a pipeline not create those? Or > at the very least clean up after them? > Have a look at the examples posted here for workspace cleanup, choose solution what suits you. https://jenkins.io/doc/pipeline/tour/post/ (titled, Cleaning up and

Re: Return value from step (pipeline)

2017-11-30 Thread Ramanathan Muthaiah
> > Is it possible to capture the return value from pipeline step? > > ex: > def result = findbugs(pattern: '**/target/**/findbugsXml.xml') > echo result > To store cmd status or output, you should use sh(). You will find code snippets in this link, https://jenkins.io/doc/pipeline/examples/

Re: trigger Jenkins build on git commit without using hook

2017-11-30 Thread 'Pulkit Lall' via Jenkins Users
I am able to trigger Jenkins job using git commit hook and now want to trigger Jenkins job with git commit for specific branch. e.g. In my multi-configuration job, we have repo, branch, version, etc parameters. Is there a way, we can trigger Jenkins job on git commit and supply the parameters

How use "keep this build forever" in pipeline and its jobs?

2017-11-30 Thread Roman Malík
Hello, have two question for you guys. 1) In the Jenkins pipeline, I can do "keep this build forever" But this function is not propagated to its child. So I must click on "keep this..." button on every job in the pipeline. Is it some way to simplify this process with only one click on the

Return value from step (pipeline)

2017-11-30 Thread sreeram yerrapragada
Hello Jenkins Users, Is it possible to capture the return value from pipeline step? ex: def result = findbugs(pattern: '**/target/**/findbugsXml.xml') echo result Thanks Sreeram -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To