Re: How to test pipeline jobs in Jenkins

2016-02-25 Thread Victor Martinez
interesting question! I asked the same one some time, the closest solution was: - https://github.com/jenkinsci/htmlpublisher-plugin/blob/master/src/test/java/htmlpublisher/workflow/PublishHTMLStepTest.java#L170-L187 Maybe there is already another way of testing pipeline/workflows On Friday, 26

Re: Send email based on script output

2016-02-25 Thread niristotle okram
i can't recall the exact name but there is a jenkins option to execute some groovy script. (if you are still using the old jenkins jobs NOT pipeline). So based on the flag, execute the script that triggers the mail On Thu, Feb 25, 2016 at 9:31 PM, varun umesh wrote: > I

Send email based on script output

2016-02-25 Thread varun umesh
I have test automation framework, and the test runs are driven through Jenkins. After the test run is completed, it generates a few custom test reports, as html file. In the report, i have a table with total number of errors as one of the column. I basically want to parse this html file and

How to test pipeline jobs in Jenkins

2016-02-25 Thread Tom Kierzkowski
I was wondering if anyone has had success in managing a way to test your pipeline scripts locally outside of running your scripts within Jenkins. Currently, I'm deep diving into Groovy and was hoping to start a manageable development workflow against our pipeline scripts (i.e. setting up a

Re: . How to distribute two parameters present in single job to two slaves in jenkins

2016-02-25 Thread Victor Martinez
I guess you meant to run that job in parallel in two slaves, if so you can use https://wiki.jenkins-ci.org/display/JENKINS/Building+a+matrix+project Cheers On Thursday, 25 February 2016 19:01:42 UTC, sai sai wrote: > > I have 2 slaves and single job in jenkins(master) which has two >

Re: Show non-SCM changes in Jenkins emails?

2016-02-25 Thread Slide
No, there is not any existing macro that does that, but if you used a groovy template, you could do pretty much anything you wanted to with the Jenkins api. You can also still use the existing content tokens with a slightly different syntax. ${CHANGES} -> CHANGES(). If there are parameters, you

Show non-SCM changes in Jenkins emails?

2016-02-25 Thread Dunnigan, Terrence J
Hi all, Is there a way to show non-SCM related changes in Jenkins emails? I'm thinking of examples like this: - Changed job configuration o Build step o Node o etc - Wiped workspace Our emails are sent by the Email-Ext plugin and we already use the ${CHANGES}

. How to distribute two parameters present in single job to two slaves in jenkins

2016-02-25 Thread sai sai
I have 2 slaves and single job in jenkins(master) which has two parameters(I parameterized the master job using "This build is parameterised" , would it be possible to run the two slaves parallel with the one parameters in slave one and another parameter in slave 2. Note: My POM.XML will

. How to distribute two parameters present in single job to two slaves in jenkins

2016-02-25 Thread sai sai
I have 2 slaves and single job in jenkins(master) which has two parameters(I parameterized the master job using "This build is parameterised" , would it be possible to run the two slaves parallel with the one parameters in slave one and another parameter in slave 2. Note: My POM.XML will

Re: Jenkins CLI

2016-02-25 Thread James Nord
On Wednesday, February 24, 2016 at 4:21:36 PM UTC, Hector Magnanao wrote: > > I'm trying to use the Jenkins CLI in Windows by issuing the command: java > -jar Jenkins-cli -s build 'test' > and it keeps returning an error saying no such job ''test'' > > My guess would be not specifying any

Re: Jenkins chooses incorrect node

2016-02-25 Thread R. Tyler Croy
(replies inline) On Thu, 25 Feb 2016, Alex Domoradov wrote: > Some time ago Jenkins has started run jobs on slave node (win 7). You have a couple options to consider. One when configuring build nodes, choosing "Only build jobs with label restrictions matching this node" will ensure that only

Re: Jenkins chooses incorrect node

2016-02-25 Thread Alex Domoradov
Thanks, will bear in mind On Thursday, February 25, 2016 at 3:19:17 PM UTC+2, Victor Martinez wrote: > > I don't know now how that version of Jenkins used to distribute the load > and the default node setup. AFAIK, if that jenkins infrastructure is based > on one master then those jobs will be

Re: Jenkins chooses incorrect node

2016-02-25 Thread Victor Martinez
I don't know now how that version of Jenkins used to distribute the load and the default node setup. AFAIK, if that jenkins infrastructure is based on one master then those jobs will be always triggered by those 'master slave', otherwise those jobs will require where to run. Jenkins tries to

Re: Jenkins chooses incorrect node

2016-02-25 Thread Alex Domoradov
So, every time when I'll create a new job I must specify a node? Have I correctly understood? It's a little bit strange, because we have another instance with Jenkins (ver. 1.565.2) and there all jobs by default executes on MASTER node. If I need a job will execute on some specific node then

Re: Jenkins chooses incorrect node

2016-02-25 Thread Victor Martinez
Hi, You might need to configure your jobs in order to use the 'master' label, it's part of the 'Restrict where this project can be run' configuration. Although using your master for building and so on it's ideal. Cheers On Thursday, 25 February 2016 09:30:07 UTC, Alex Domoradov wrote: > >

Re: Want urgent answer on : problem with GO plugin in jenkins version 1.611

2016-02-25 Thread Victor Martinez
Maybe It's worth if you keep this question in your previous thread On Thursday, 25 February 2016 11:48:41 UTC, Mahesh Wabale wrote: > > I have install GO plugin on jenkins successfuly on latest version 1.650 > successfully . > But i am not able to install this on on my another server jenkins

How to use External Scheduler Plugin or REST Service Scheduler Plugin?

2016-02-25 Thread Barry Laffoy
Hi Does anyone have any advice on using the either of these plugins? https://wiki.jenkins-ci.org/display/JENKINS/External+scheduler+plugin https://wiki.jenkins-ci.org/display/JENKINS/REST+Service+Scheduler+Plugin We're having serious issues with how Jenkins chooses to schedule jobs, and I

Want urgent answer on : problem with GO plugin in jenkins version 1.611

2016-02-25 Thread Mahesh Wabale
I have install GO plugin on jenkins successfuly on latest version 1.650 successfully . But i am not able to install this on on my another server jenkins 1.611 . My global configure page is broken after installing the plugin. Can any one face this problem ? 1. If i upgrade my version it will

Resolving Promoted Build Parameter in Evaluated Groovy Script

2016-02-25 Thread Steve Holmes
I have a job which I want to run against promoted builds only, so I select the required build using Promoted Build Parameter and assign a variable name (e.g. PromotedBuild), which I believe gives me access to the promoted build’s url. I then want to manipulate the url within Build

Re: Gatling reports stopped working after Jenkins update

2016-02-25 Thread Johannes Eickhold
Thanks Victor, as a workaround I could get the reports showing properly again by opting out of the new CSP header as described in your second link. On the Jenkins script console I issued a: System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "") Maybe this could also be fixed

Jenkins chooses incorrect node

2016-02-25 Thread Alex Domoradov
Hello, Some time ago Jenkins has started run jobs on slave node (win 7). [EnvInject] - Loading node environment variables. Installing JDK jdk-8u74-oth-JPR Downloading JDK from http://download.oracle.com/otn-pub/java/jdk/8u74-b02/jdk-8u74-windows-x64.exe Downloading 196405336 bytes

Re: Want urgent answer on issue : Disable Configure page http://localhost:8080/configure after installing GO plugin for GOLANG code integration https://wiki.jenkins-ci.org/display/JENKINS/Go+Plugin .

2016-02-25 Thread Mahesh Wabale
I could successfully do this with jenkins version 1.647 , but i am facing problem with jenkins version 1.611. At this point I cannot make my jenkins upgrade, hence is there any way/workaround which I can try to start using this Go plugin? Thanks & Regards, Mahesh On Sun, Feb 21, 2016 at 9:29