Re: Jenkins Pipeline : How could I access the git repository cloned at job start

2016-12-02 Thread Sam K
I just use a ws('') { git url:. , branch: 'master' } and now all the cloned content is within the directory I want. On Tuesday, November 29, 2016 at 1:14:03 AM UTC-8, Jean-Luc Pinardon wrote: > > Dear all, > > I am exploring pipeline features, and I fall into a problem. > The repository

Re: Conditional BuildStep Plugin don't fail the build

2016-12-02 Thread Daniel Beck
'on evaluation failure' means 'when the regex is invalid'. It's not "when it doesn't match". > On 02.12.2016, at 09:44, Stefano wrote: > > Hello, i have a problem with Conditional BuildStep Plugin, i have set the > regex matching rules and work, but if i chose "On evaluation failure" "Fail >

Re: Unable to find suitable ssh agent when trying to connect windows slave

2016-12-02 Thread Joel Reed
Not a lot of information on how your Jenkins master and/or slaves are configured. But you need to make sure that your Windows host is properly configured as a slave to your Jenkins master. Make sure that the host in question show a status of connected in Manage Jenkins > Manage Nodes. Typically

Re: Get-Content : Cannot find path

2016-12-02 Thread Joel Reed
There might be a couple possible explanations here. First and my guess at most likely cause is that "you" (meaning the Jenkins slave agent executing your code) does not have read access to your applicationHost.config and/or the config parent directory. In my fairly default environments only SYST

Using Google Repo tool in Pipeline

2016-12-02 Thread timothyx . hargreaves
I've been trying to solve this via search, but since Google named their multi repository tool the most useless name ever, the signal to noise ratio doesn't give me any good results. I have the Repo Plugin installed along with Pipeline,

Re: New plugin request for feedback: parameterized scheduler

2016-12-02 Thread Baptiste Mathus
Please file an issue recap'ing as much as data we discussed here and anything you have in mind that help reproduce it. I don't have a Windows agent handy, so will have to do that later. Thanks 2016-12-02 20:31 GMT+01:00 PJ : > Thanks for your response. > > 1. ALL CAPS did not work. > 2. Tested w

Java Version for Maven through Artifactory Plugin

2016-12-02 Thread 'Daniel' via Jenkins Users
Hi together, I am currently setting up a build pipeline that uses the artifactory maven plugin to build and publish artifacts. The following examples were a good start: - https://wiki.jenkins-ci.org/display/JENKINS/Artifactory+-+Working+With+the+Pipeline+Jenkins+Plugin - https:/

Re: Get-Content : Cannot find path

2016-12-02 Thread aaron . trujillo
Bump On Wednesday, November 30, 2016 at 4:39:15 PM UTC-7, aaron.t...@total.care wrote: > > $FilePath = 'C:\Windows\System32\inetsrv\config\applicationHost.config' > $Line2Edit = '' > $AppendAllow = ' />' > > (Get-Content -Path $FilePath) -replace $Line2Edit , "$AppendAllow" | > Set-Content $

Re: New plugin request for feedback: parameterized scheduler

2016-12-02 Thread PJ
Thanks for your response. 1. ALL CAPS did not work. 2. Tested with a Linux agent and it works fine. 3. I checked that page on a Linux agent and yes its as you mentioned. I still cannot get it to work on a windows agent though. Thanks again for your help with this. On Friday, December 2, 2016

Re: pipeline.. sometimes slaves just hang

2016-12-02 Thread Jonathan Hodgson
The code is pretty complex, and getting more complex, but to summarize the steps in question are batch or shell scripts (depending on the platform) which run a compilation (and later more that will run various tests). How long they take can be quite variable, for example depending on whether a

Re: Ansible plugin 0.6 release date

2016-12-02 Thread Laurent Goujon
No worries, I totally understand, and thank you again for your plugin and your time. Laurent On Fri, Dec 2, 2016 at 8:29 AM, jcsirot wrote: > Hi Laurent, > > Sorry for the inconvenience :-( Since a couple of weeks I've started to > integrate the github PR and I'm very close to release the 0.6 v

Re: Ansible plugin 0.6 release date

2016-12-02 Thread jcsirot
Hi Laurent, Sorry for the inconvenience :-( Since a couple of weeks I've started to integrate the github PR and I'm very close to release the 0.6 version. Unfortunately I am alone working on the plugin and I have to do it on my free time therefore the development is not as fast as I wish. Howev

Re: What's the point of updating Jenkins UpdateCenter on fresh installation???

2016-12-02 Thread TInaTinaTian L
Thank you. On Friday, 2 December 2016 01:08:40 UTC-5, Baptiste Mathus wrote: > > Because that file always changes. It's like 'apt-get update'. You want to > run it to see an up-to-date list of plugins. > > Cheers > > Le 1 déc. 2016 10:51 PM, "TInaTinaTian L" > a écrit : > >> Hello, >> >> I came

Re: Understanding the pipeline better

2016-12-02 Thread terkaly
Thanks, Christoph, for demystifying some of my gaps. On Friday, December 2, 2016 at 12:04:13 AM UTC-8, Christoph Nenning wrote: > > Hi, > > > > where would I store the Python script > > files so that the pipeline portal could access them? > > Would they be part of the git repository when I do m

Re: pipeline.. sometimes slaves just hang

2016-12-02 Thread 'Peter Teichner' via Jenkins Users
I see - it's a bit tricky to understand how your setup works without actually seeing the code you've written. Maybe you can look at the longest build time and set that as the timeout if the agent execution is happening inside the script rather than as a separate job On Friday, 2 December 2016 1

Re: pipeline.. sometimes slaves just hang

2016-12-02 Thread Jonathan Hodgson
Thanks, but I'm not sure this does what I need. The impression I have is that the timeout step is based on how long the contained step takes to execute. What I need is a timeout based on when step actually does something. such as generate some output. A full build can take a long time, if I se

Re: pipeline.. sometimes slaves just hang

2016-12-02 Thread 'Peter Teichner' via Jenkins Users
You can implement timeout following this guide - this one is for user input but you can adapt it accordingly with a try/catch block. https://support.cloudbees.com/hc/en-us/articles/226554067-Pipeline-How-to-add-an-input-step-with-timeout-that-continues-if-timeout-is-reached-using-a-default-value

Re: New plugin request for feedback: parameterized scheduler

2016-12-02 Thread Baptiste Mathus
Hi, I've just given it a quick shot. Initially I thought this might be something related to SECURITY-170 , but as the param is explicit, it shouldn't. Testing locally on a 2.19.3, it works fine with or without s

Pipeline as code: how to determine code change

2016-12-02 Thread 'Peter Teichner' via Jenkins Users
I'm looking for a way to figure out if there was a code change on the execution. I think the getCauses() isn't the way forward because the execution could have been started by a timer. Is there any way of determining from pipeline if there was an actual code change? Thanks all -- You received

Conditional BuildStep Plugin don't fail the build

2016-12-02 Thread Stefano
Hello, i have a problem with Conditional BuildStep Plugin, i have set the regex matching rules and work, but if i chose "On evaluation failure" "Fail the build" or "Mark the build unstable", the build stop and is marked as "SUCCESS"instead of a red ball i have a blue ball -- You received

which plugin will help me run my tests

2016-12-02 Thread Ramesh J
Hi , I want to run my nightly regressions on a set of hosts, which plugin to Jenkins will help me to achieve this. I want to schedule a build using only one Machine and then start a nightly regression(100 individual scripts, each script is a test) on multiple hosts after copying the build.

Re: Understanding the pipeline better

2016-12-02 Thread Christoph Nenning
Hi, > where would I store the Python script > files so that the pipeline portal could access them? > Would they be part of the git repository when I do my pull in the > scripts would become available and that manner? Yes, you put all of your code (including Jenkinsfile) in a git repository.