How can I get inject environment from a freestyle job in pipeline job

2017-06-27 Thread stanley . shen
Hello, all I am trying to trigger a freestyle job in pipeline and need to get a inject environment from that job. Before with flow job, we can use thing like c = build("test job1") uuid = c.build.properties["environment"]["uuid"] But I didn't find a way to do this similar in pipeline script.

Re: Git plugin issue in pipeline

2017-06-27 Thread Mark Waite
On Tuesday, June 27, 2017 at 5:01:46 PM UTC-6, Mark Waite wrote: > > I suspect you're encountering a conflict between the git plugin > maintaining compatibility with old behavior, and the desire to support > branch names which contain slashes. > > Refer to the online help in the git plugin for

Re: Git plugin issue in pipeline

2017-06-27 Thread Mark Waite
I suspect you're encountering a conflict between the git plugin maintaining compatibility with old behavior, and the desire to support branch names which contain slashes. Refer to the online help in the git plugin for alternate ways to define a branch name. The format "word/word" is

Git plugin issue in pipeline

2017-06-27 Thread Abhijith Reddy
Whenever i specify a branch with GitSCM i see the following issue Couldn't find any revision to build. Verify the repository and branch configuration for this job. Here's my Jenkinsfile node { deleteDir() checkout([$class: 'GitSCM', branches: [[name: 'feature/my-branch]],

RE: Gerrit trigger doesn't detect changes in Gerrit and run automatically CI

2017-06-27 Thread John Mellor
Hi Daniel, The Gerrit plugin a really nice piece of work that is pathetically documented and poorly integrated with the co-requisite git plugin. It works, but the working config settings are very non-obvious and the integration seems incomplete. In the sourcecode management section under

Re: getting started with pipelines - attempting to use sh returns 'script.sh: not found'

2017-06-27 Thread danielp
Poked around in the mailing list and found the solution: The 'Manage Jenkins' > 'Configure system' > 'Shell Executable' setting had been incorrectly set to just 'bash' instead of an absolute path. I just left the field blank and let Jenkins determine the shell. Works now! On Tuesday, June 27,

getting started with pipelines - attempting to use sh returns 'script.sh: not found'

2017-06-27 Thread danielp
Hi Folks, Just getting started with Jenkins Pipelines, following the tutorial found here: https://www.cloudbees.com/blog/using-pipeline-plugin-accelerate-continuous-delivery-part-1 When I attempt to run any commands via 'sh', I get an error saying 'not found'. For example, in my pipeline

Trigger a job based on failure of another/upstream job

2017-06-27 Thread Kishor Ramanan
Hi, Is there a way where I can trigger a job based on the failure condition of other job? I am using pipeline as of now, during the last step if pipeline fails, I want to execute a specific set of job. Thanks -- You received this message because you are subscribed to the Google Groups

GitHub PR Comment Build Plugin - How to debug

2017-06-27 Thread Danny Rehelis
Hi, I've been notified by my staff that leaving configured comment not always triggers PR build. How to debug this? Nothing getting logged when comment comment is left. How can I track this for better analysis? latest multi-branch plugin with latest version of github pr comment plugin. Thanks

Jenkins behaviour with github webhook and github service

2017-06-27 Thread Ramanathan Muthaiah
Hi All, Am working to setup webhook trigger between github enterprise and Jenkins. As part of this, enabled AWS SNS in Github repo and have Lambda subscribed to the AWS SNS topic. With this setup in place, on Jenkins side, in the job (where build should be triggered automatically) these two

Jenkins throwing NPE on build.

2017-06-27 Thread ascarborough
*The exception:* *11:00:43* ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com*11:00:43* java.lang.NullPointerException *11:00:43* at

Custom tools in Declarative Pipeline

2017-06-27 Thread jetaldesai
Custom tools are not supported in declarative pipeline or I did not find any solutions so far. Can someone please help with use of custom tools in declarative pipeline? Or how can I use scripted pipeline command in tool to use custom tools? Thanks -- You received this message because you are

RE: vSphere Cloud Plugin - does it work ?

2017-06-27 Thread John Mellor
P asked: Ø So how do you guys use jenkins slaves on VMware ? Do you use existing VMs ? I use vsphere slaves extensively, but only as existing VMs. I never managed to get a dynamically-constructed slaves to actually work, but perhaps there is some magic combination of undocumented

Re: Publish over FTP on Jenkins Pipeline?

2017-06-27 Thread Thiago Carvalho Davila
I have a jenkins master with linux and windows slaves. Also have a shell script for recursive FTP files upload. But that doesn't work on windows ​slaves. Does anybody have a platform independent way of doing that? Maybe a Python script or something alike. If so, will withCredentials work

Re: vSphere Cloud Plugin - does it work ?

2017-06-27 Thread P
It looks like VSphere Cloud plugin is not very widely used So how do you guys use jenkins slaves on VMware ? Do you use existing VMs ? I am a bit surprised nobody is creating dynamically VMs for Jenskins ... Best regards P. On Tuesday, June 20, 2017 at 12:34:19 PM UTC+1, P wrote: > > Hello