Re: Jenkins Pipeline with custom class does hang forever

2016-10-17 Thread thomas . lehmann
Yeah ... found out that too ... "Thread dumps" link in Jenkins job has shown the multiplle calls. Wasn't aware of the property cabability. Thank you On Monday, October 17, 2016 at 10:50:39 AM UTC+2, Daniel Beck wrote: > > > def setMessage(String message) { > > this.message =

Re: UI is not visible during execution when running jobs from Jenkins as service

2016-10-17 Thread Ranjit kumar Kundu
Hi Victor, The problem I an facing is I have configure my selenium project with Jenkins which is installed as a service in my remote server . The execution is running fine. But I cant see any browser opening. everything is running headless. OS - Windows server 2012 R2 Standard Jenkins -

Re: pipeline - keep build forever

2016-10-17 Thread Baptiste Mathus
Hey, You need to have an account on the Jenkins infra. You can create one going on accounts.jenkins.io Then create a Jira issue in issues.jenkins-ci.org Cheers! Le 16 oct. 2016 9:42 PM, a écrit : > works. > > How to file an RFE? > > best, > Roman > > Am Freitag,

Jenkins Pipeline with custom class does hang forever

2016-10-17 Thread thomas . lehmann
Hi, I were trying to write custom class in Jenkinsfile. With following example the JOb does hang after the line "echo hi:2". I have to click to abort the build and then click twice on provided links in the Jenkins Console to fully cancel it. On our server - even after kill - Jenkins remains

Pipeline : Confused about file access on slaves

2016-10-17 Thread Jonathan Hodgson
Hi, I've touched on this stuff in a previous thread where I thought it was about running on Windows, in turns out it's the same for any slave So I'm starting a new thread now I'm clearer what the issue is I have code that basically works like this node('master') { // Master is running Linus

Re: pipeline - groovy - file paths on windows?

2016-10-17 Thread Jonathan Hodgson
Rachel and Martina, Thanks for trying to help me on this, I've started a new thread now that I've realized the issue isn't to do with windows or paths, but rather to do with slaves and masters. On Monday, October 17, 2016 at 11:27:08 PM UTC+1, Jonathan Hodgson wrote: > > Well I can confirm

Re: Monitoring network folder using FSTrigger plugin

2016-10-17 Thread Ram D
Hi Mark, Thanks, I realized it soon enough. But thought mounting is was just a workaround for this query. Your answer showed me that is just the only solution available. Regards, Ramesh On Sat, Oct 15, 2016 at 5:18 PM, Mark Waite wrote: >

Log Parser Plugin Parser Rules Questions

2016-10-17 Thread Bubunia Patra
Hi , I want to use Log Parser Plugin with the following regular expression to be matched in the Jenkins console log. Test case [id] failed Test case [id] failed Test case [id] failed Finished all tests. Executed [id], pass [id], fail [id] One more thing is I want to get the contents of

concurrency parameter no longer accepted for stage block?

2016-10-17 Thread Kyle Flavin
I posted this in the wrong place previously - hope this is correct. Does the concurrency parameter no longer apply to the stage block? This post is in reference to: https://issues.jenkins-ci.org/browse/JENKINS-26107 I have some legacy code, and I'm converting "stage" to use the new block

Re: pipeline - groovy - file paths on windows?

2016-10-17 Thread Jonathan Hodgson
I've tried every path variation I can think of def paths = [ "c:", "c:\\", "c:\\Jenkins", "c:\\Jenkins\\workspace\\", "c:\\Jenkins\\workspace\\WPF-TryBuild", "c:/", "c:/Jenkins", "c:/Jenkins/workspace/",

Re: pipeline - groovy - file paths on windows?

2016-10-17 Thread Jonathan Hodgson
Well I can confirm that it has nothing to do with it being windows, just tried FileNameFinder on my OSX slave and it also looks on the master On Monday, October 17, 2016 at 9:44:03 PM UTC+1, Jonathan Hodgson wrote: > > But I don't want to restrict where the job runs, just where the node runs. >

Re: pipeline - keep build forever

2016-10-17 Thread roman . pickl
created https://issues.jenkins-ci.org/browse/JENKINS-39028 please update as you see fit. best, Roman Am Montag, 17. Oktober 2016 09:12:18 UTC+2 schrieb Baptiste Mathus: > > Hey, > > You need to have an account on the Jenkins infra. > You can create one going on accounts.jenkins.io > > Then

Re: UI is not visible during execution when running jobs from Jenkins as service

2016-10-17 Thread Victor Martinez
If you Google a bit you can find the below answer: http://stackoverflow.com/questions/10177708/jenkins-on-windows-and-gui-tests-without-rdc/20295828#20295828 Using jnlp might help too -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To

Re: moving hotfixes along a parallel SDLC

2016-10-17 Thread Guy Matz
Yeah, sorry, I'm not actually suggesting bumping version #s is the way to go . . . I was hoping that maybe I was approaching the problem the wrong way, and that someone had a better idea. Thanks!! On Mon, Oct 17, 2016 at 10:00 AM, 'Björn Pedersen' via Jenkins Users <

Re: pipeline - groovy - file paths on windows?

2016-10-17 Thread Martina
What exactly is the value of ${source_folder_name} that is in the message? C:/some-dir/some-other-name should definitely work. Martina > > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving

emailext jelly template access changetSet

2016-10-17 Thread jerome
Hi, I have use the Jelly template to re enable most of our email content, except 2 things I still cannot do, the revision change set and the warnings counts (the later is not too bad, we are moving to warnings as errors anyway). Any body have a way to access the scm changeSet into the pipeline

Collecting Workflow Run Info in Pipeline

2016-10-17 Thread Zack Sampson
Hey, I'm trying to write a Pipeline job to generate a daily summary of my pipeline runs from the preceding day. I've figured out that in a non-sandboxed, non-CPS block I can get at the hudson instance and from there find the jobs/runs, but I can't find out how to get to the "stage X took Y

Re: pipeline - groovy - file paths on windows?

2016-10-17 Thread Jonathan Hodgson
I've just done some experimentation, and testfile = new File("/tmp/CheckOnServer.txt") if (testfile.exists()) { echo "It's looking on the master" } else { echo "It's not looking on the master" } gives [Pipeline] [Windows] echo[Windows] It's looking

moving hotfixes along a parallel SDLC

2016-10-17 Thread Guy Matz
Hello! I need to be able to bump version numbers between two different jobs, meaning that if job A runs, it should have a build number higher that job B, and if job B runs, it should have a build # higher than job A . . . for example, job A may run 10 ten times and have a build number of 10.

Re: moving hotfixes along a parallel SDLC

2016-10-17 Thread 'Björn Pedersen' via Jenkins Users
Hi, It could be done, but think about using a better versioning scheme. Using build numbers from different jobs seems like a way to ask for trouble. Take a look at: https://wiki.jenkins-ci.org/display/JENKINS/Version+Number+Plugin

Re: Email ext to send html body in Pipeline

2016-10-17 Thread jerome
Hi, Sam I was just wondering if the FILE type could use the token replacement like the follwoing: Jenkins project into the email body. I tested it on my side just out of curiosity and it does not make the token replacement as of writting this. For those who need it:

Re: pipeline - groovy - file paths on windows?

2016-10-17 Thread Jonathan Hodgson
On Saturday, October 15, 2016 at 6:05:45 PM UTC+1, Rachel wrote: > > Hi Jonathan, > > You might check: > >- When it's said "Source folder does not exist", check that > really exists and it's right. >- Jenkins process on slave has permissions on that path. > > I hope be useful. > >

Re: Email ext to send html body in Pipeline

2016-10-17 Thread Slide
rooturl and build are variables that are put into the binding for the Jelly and Groovy templating. They can't be used directly. On Mon, Oct 17, 2016 at 6:34 AM wrote: > Hi, Sam I was just wondering if the FILE type could use the token > replacement like the follwoing: > >

Re: Unable to write log file error I am getting in Jenkins for build.xml

2016-10-17 Thread chinmoy padhi
Hi All, I have resolved the above error with some trial and error but not sure whether this is 100% work for others or not, but what I did I am sharing my experience. Steps -- 1. *service jenkins stop *or *sudo /etc/init.d/jenkins stop* 2. Make sure all services are stopped.

Pipeline jobs - Custom build names?

2016-10-17 Thread Sam K
Is there a way (yet) to name the pipeline build jobs like this using the build name setter plugin instead of what is now currently showing like this:

Re: Jenkins automate tests and send mail with the version of application

2016-10-17 Thread Sam K
Can you use curl to get the version info, store it into a variable and pass it to the jenkins job? On Monday, October 17, 2016 at 12:45:15 PM UTC-7, Rafael Silva wrote: > > > Hi ! > > I use Jenkins to automate my tests and send me an email with the report > and it's fine. > > But my website has

Re: pipeline - groovy - file paths on windows?

2016-10-17 Thread Rachel
Hi Jonathan, According to master and slave systems you have, I think you might use the option: - "*Restrict where this project can be run*" in your job configuration (located in General Configuration), in order *to force job execution on slave*. I hope be useful. Best regards, Rachel

Jenkins Master Goes to 100% (at random?)

2016-10-17 Thread Eric Crahen
Hi, We're running Jenkins master with a bunch of slaves. Typical load on the master is around 5-10% which is not very much. Several times now, we've gotten into spikes where the CPU goes to 100% and stays there until we restart it, and this usually only helps a little. We dump the stack, and

Re: pipeline - groovy - file paths on windows?

2016-10-17 Thread Martina
So you solved the issue of it running on the wrong system, right? Well, all the "does not exist" messages have a leading /. Not sure where that comes from, but I'm pretty sure that that is what it is complaining about. Also, looking at FileNameFinder, all examples are it finding files, not

Accessing jenkins.model.Jenkins class from Custom Jars in Jenkins env.

2016-10-17 Thread ZT
Hello, I have written some custom groovy scripts (bundled as Jars) which need to access the class jenkins.model.Jenkins I have my custom JARS installed into Jenkins and they are loaded properly (verified through the Jenkins Script Console). However, When my script imports

Re: pipeline - groovy - file paths on windows?

2016-10-17 Thread Jonathan Hodgson
On Monday, October 17, 2016 at 8:36:55 PM UTC+1, Martina wrote: > > So you solved the issue of it running on the wrong system, right? > No, I haven't solved the issue. I thought perhaps it was running on the wrong system because it didn't have an absolute path that it recognized as such, so I

Jenkins automate tests and send mail with the version of application

2016-10-17 Thread Rafael Silva
Hi ! I use Jenkins to automate my tests and send me an email with the report and it's fine. But my website has a number of new version by week, and I want send this information with the email My site has the version on the footer e.g. Test Version: 0.1 - Automation How I take this

Re: pipeline - groovy - file paths on windows?

2016-10-17 Thread Jonathan Hodgson
But I don't want to restrict where the job runs, just where the node runs. I have code that needs to run on the master, and code that needs to run on the slaves. The code is running in the correct places, I can for example do a mercurial checkout on the slaves, I can also run batch files on