Re: [Declarative Pipeline] currentBuild.result is not set

2017-02-11 Thread Dan Tran
Thanks that helps -Dan On Saturday, February 11, 2017 at 10:42:02 PM UTC-8, Andrew Bayer wrote: > > Yup - currentBuild.result isn't actually set until either something is > explicitly setting the status (like a failure or unstable) or the build > ends, at which point it's set to success if

Re: [Declarative Pipeline] currentBuild.result is not set

2017-02-11 Thread Andrew Bayer
Yup - currentBuild.result isn't actually set until either something is explicitly setting the status (like a failure or unstable) or the build ends, at which point it's set to success if still null. So basically null is equivalent to success. A. On Sat, Feb 11, 2017 at 9:49 AM Dan Tran

Re: Multibranch pipeline - source code present but .git file missing

2017-02-11 Thread Mark Waite
Sharan, Daniel was trying to tell you that you're misunderstanding what is a workspace and what isn't a workspace. The place where you're finding the Jenkinsfile is a temporary holding location that exists for the purpose of reading the Jenkinsfile. It is not a workspace. It is not a place

[Declarative Pipeline] currentBuild.result is not set

2017-02-11 Thread Dan Tran
Hi It seems currentBuild.result is not set at post stages, here is the snippet. is it normal? it always return null for my case stages { ... } post { always { script { wrap([$class: 'BuildUser']) { mail to: "${env.BUILD_USER_EMAIL}",

Re: sh pipeline step started to fail after update to 2.42

2017-02-11 Thread John Mellor
After downgrading the durable tasks pluginto fix this problem, a manual reboot is required to actually get pipelines functional again. Thanks, Daniel ! On Friday, 10 February 2017 17:08:25 UTC-5, Daniel Beck wrote: > > > > On 10.02.2017, at 21:40, John Mellor > wrote: >

Re: EnvInject - groovy script in Jenkins 2.x

2017-02-11 Thread Giulio Pulina
Hi, did you manage to solve this issue? I'm stuck with a similar setup and similar error.. Thanks in advance Giulio Il giorno giovedì 28 luglio 2016 23:43:16 UTC+2, Simona Avornicesei ha scritto: > > A new update. I fixed the "The class 'FileSearch' has an incorrect > modifier static." -

Re: Multibranch pipeline - source code present but .git file missing

2017-02-11 Thread Sharan Basappa
Daniel, Don't try to be clever here. `checkout scm`. You are giving me more credit than I deserve. I really don't understand how source files from Git can appear in the workspace and .git dir is missing. In fact, for all the source files corresponding to every branch, there is no .git dir. I

Define parameters for a group of jobs

2017-02-11 Thread francesco desposito
Hello, I want to group the jobs referring to a single project together. Then I would like to define some parameters at group level and I want that those parameters are automatically passed to the jobs belonging to that group. For example I want to create a group P1 with jobs a1, b1, c1. Then I

Re: Multibranch pipeline - source code present but .git file missing

2017-02-11 Thread Daniel Beck
> On 11.02.2017, at 05:02, Sharan Basappa wrote: > > 3) I am not checking out any repository explicitly in my Jenkinsfile - I > still find source code in the workspace through That's probably the reason, and the reason it's in a wrong directory. Don't try to be