Jenkins always produces 100% health reports

2014-11-10 Thread Mark Sinclair


We have a home-grown test environment and I've recently added Jenkins Junit 
to produce nice test trend graphs.

I am having trouble getting the Junit plugin to give anything other than 
100% health.  I want the health report to produce bad weather when there 
are failures.  Below is the simple xml I have created to test with.  

Junit produces a 100% sunny health report based on this, when I expect it 
to report 0% since 1 of 1 test is failing.  The test result page shows 1 
failure as expected.  Everything seems to be working except this health 
reporting.  I'm running version 1.2 of Junit.

Here's the XML file I'm testing with.  It is not generated by Junit.  I 
suspected this was a problem and I may have an issue here, but I have not 
found a resource that shows this is wrong in any way...




  
   message="testfailed"   
  
  


A snapshot of the health report, along with 1 test failing out of a total 
of 1 test - how can this be 100%?




Any insights would be greatly appreciated.

Thanks!



-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Stop the execution if First task is failed even if multiple tasks are added to the project

2014-11-10 Thread Noel Yap
https://stackoverflow.com/questions/26026431/how-to-fast-fail-jenkins-build-flow-plugin-job/26026432#26026432

On Mon Nov 10 2014 at 8:35:18 AM Ginga, Dick 
wrote:

>  Having looked at this again, you should be able to do what you want in
> the shell script itself. I am not an expert here, so I will not attempt a
> solution.
>
>
>
> Find the Build Flow Plugin details here:
>
>
>
> https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin
>
>
>
> you would create a Jenkins job for each step.
>
> Each job would have to return success or failure.
>
> In the Build Flow window, you would do something like this:
>
>
>
> a=build(“Build-Step-1”)
>
>
>
> if (a.result =~ "SUCCESS") {
>
> b=build(“Build-Step-2”)
>
> }
>
> else {
>
> build.setResult(“SUCCESS”)
>
> }
>
>
>
>
>
> *From:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *On Behalf Of *Panikera Raj
> *Sent:* Monday, November 10, 2014 11:23 AM
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: Stop the execution if First task is failed even if
> multiple tasks are added to the project
>
>
>
> ​Can you provide code snippet or can you explain bit more about how to
> use and where to specify...
>
>
>
>
>
> Regards,
>
> Panikera
>
>
>
> On Mon, Nov 10, 2014 at 7:08 PM, Ginga, Dick 
> wrote:
>
> You can certainly do it with the Build Flow (DSL) plugin
>
>
>
> *From:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *On Behalf Of *Panikera Raj
> *Sent:* Monday, November 10, 2014 8:36 AM
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Fwd: Stop the execution if First task is failed even if
> multiple tasks are added to the project
>
>
>
>
>
> Hi All,
>
> I have a project in Jenkins (as free style project) where I have added
> multiple tasks as an attachment. As I showed in attachment in first task
> condition is not satisfied I need to come out from the execution I don't
> want to execute second task.
>
> I can put *exit 1*. But If condition is not matched project will get
> marked as Failure and mail will go to every one. So if put just *exit 0.*
> It will come out from the first task then once again second task will
> execute. I don't want to be execute like this.
>
> Is there a way where if first task not satisfied condition we can come out
> from complete execution(with out executing second task)
>
>   Regards,
> Panikera
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
>
>
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Stop the execution if First task is failed even if multiple tasks are added to the project

2014-11-10 Thread Ginga, Dick
Having looked at this again, you should be able to do what you want in the 
shell script itself. I am not an expert here, so I will not attempt a solution.

Find the Build Flow Plugin details here:

https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin

you would create a Jenkins job for each step.
Each job would have to return success or failure.
In the Build Flow window, you would do something like this:

a=build(“Build-Step-1”)

if (a.result =~ "SUCCESS") {
b=build(“Build-Step-2”)
}
else {
build.setResult(“SUCCESS”)
}


From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Panikera Raj
Sent: Monday, November 10, 2014 11:23 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: Stop the execution if First task is failed even if multiple tasks 
are added to the project

​Can you provide code snippet or can you explain bit more about how to use and 
where to specify...


Regards,
Panikera

On Mon, Nov 10, 2014 at 7:08 PM, Ginga, Dick 
mailto:dick.gi...@perkinelmer.com>> wrote:
You can certainly do it with the Build Flow (DSL) plugin

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com]
 On Behalf Of Panikera Raj
Sent: Monday, November 10, 2014 8:36 AM
To: jenkinsci-users@googlegroups.com
Subject: Fwd: Stop the execution if First task is failed even if multiple tasks 
are added to the project


Hi All,
I have a project in Jenkins (as free style project) where I have added multiple 
tasks as an attachment. As I showed in attachment in first task condition is 
not satisfied I need to come out from the execution I don't want to execute 
second task.
I can put exit 1. But If condition is not matched project will get marked as 
Failure and mail will go to every one. So if put just exit 0. It will come out 
from the first task then once again second task will execute. I don't want to 
be execute like this.
Is there a way where if first task not satisfied condition we can come out from 
complete execution(with out executing second task)

Regards,
Panikera


--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Stop the execution if First task is failed even if multiple tasks are added to the project

2014-11-10 Thread Panikera Raj
​Can you provide code snippet or can you explain bit more about how to use
and where to specify...


Regards,
Panikera

On Mon, Nov 10, 2014 at 7:08 PM, Ginga, Dick 
wrote:

>  You can certainly do it with the Build Flow (DSL) plugin
>
>
>
> *From:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *On Behalf Of *Panikera Raj
> *Sent:* Monday, November 10, 2014 8:36 AM
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Fwd: Stop the execution if First task is failed even if
> multiple tasks are added to the project
>
>
>
>
>
> Hi All,
>
> I have a project in Jenkins (as free style project) where I have added
> multiple tasks as an attachment. As I showed in attachment in first task
> condition is not satisfied I need to come out from the execution I don't
> want to execute second task.
>
> I can put *exit 1*. But If condition is not matched project will get
> marked as Failure and mail will go to every one. So if put just *exit 0.*
> It will come out from the first task then once again second task will
> execute. I don't want to be execute like this.
>
> Is there a way where if first task not satisfied condition we can come out
> from complete execution(with out executing second task)
>
>
>   Regards,
> Panikera
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Display text page inside mail body with Email-ext plugin in Jenkins

2014-11-10 Thread Alex Brodov
I've fixed it by changing the format to html and adding this :

${FILE,path="test2.l"}


On Mon, Nov 10, 2014 at 3:44 PM, Daniel Beck  wrote:

>
> On 10.11.2014, at 14:41, Alex Brodov  wrote:
>
> > notepad
>
> If you mean the horribly broken text editor shipping with Windows, make
> sure there's no Unix newline (0x0a) at the line break.
>
> There also shouldn't be any other ASCII control characters for that
> matter. Use a hex editor to determine the exact file contents.
>
> Make sure it's an issue with the email _contents_ and not your email
> _viewer_ doing additional clever formatting.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/Ae45UVV4W7g/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: OSX Slave Agent Crashing/Closing

2014-11-10 Thread Charles Blessing
Hi rginga,

Thanks for the suggestion.  It was configured to go to sleep between 
midnight and 8am (when there were no jobs running).  I have changed it to 
never sleep and will see if that makes any difference.

Charles

>  

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: OSX Slave Agent Crashing/Closing

2014-11-10 Thread Ginga, Dick
Check the Energy Saver setting. You do not want the MAC to Sleep ever.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Charles Blessing
Sent: Monday, November 10, 2014 10:53 AM
To: jenkinsci-users@googlegroups.com
Subject: OSX Slave Agent Crashing/Closing


I have a Windows-based master and a single OSX client. Builds are run on the 
OSX client using the Jenkins slave agent which is launched manually by 
downloading and running the appropriate jnlp file from the master web server.

Once running, builds and notifications progress as expected.

However, approximately once a day - usually overnight when no builds are 
running, the slave agent closes. Sometimes when I go to check it just isn't 
running any more, once or twice it has crashed. I'm intending to gather more 
information next time a crash occurs, although typically since deciding to do 
this it has just been closing 'cleanly'.

Unfortunately I'm not entirely sure when this started to happen as there was an 
extended period of one project being left in a 'known broken state', resulting 
in Jenkins getting turned off.

Any suggestions on how to fix this situation would be much appreciated.
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Job DSL plugin error with customWorkspace

2014-11-10 Thread Nigel Robbins
Hi,

Issue resolved after upgrading to version 1.26 of the Job DSL plugin.

Thanks Gareth !

Nigel

On Tuesday, November 4, 2014 9:49:28 AM UTC, Nigel Robbins wrote:
>
>  Hi,
>
>
> I have the following in the "DSL Script" section:
>
> job {
>   name "test"
>   customWorkspace("C:\\Jenkins\\w1")
> }
>
>
> I get an error when trying to build (please see below).
>
>
> Any idea what I'm doing wrong ?
>
>
> I'm using Jenkins version 1.565.3 and version 1.14 of the Job DSL plugin.
>
>
> Thanks,
>
> Nigel
>
>
> Started by user admin 
> Building on master in workspace /opt/jenkins/jobs/test template/workspace
> FATAL: No signature of method: 
> script14150947196261979223475.customWorkspace() is applicable for argument 
> types: (java.lang.String) values: 
> [C:\Jenkins\w1]groovy.lang.MissingMethodException 
> :
>  No signature of method: script14150947196261979223475.customWorkspace() is 
> applicable for argument types: (java.lang.String) values: [C:\Jenkins\w1]
>   at 
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:55)
>  
> 
>   at 
> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:78)
>  
> 
>   at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
>  
> 
>   at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
>  
> 
>   at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
>  
> 
>   at 
> script14150947196261979223475$_run_closure1.doCall(script14150947196261979223475.groovy:3)
>  
> 
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:597)
>   at 
> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
>   at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
>   at 
> org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
>   at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:903)
>   at 
> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
>   at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
>   at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
>   at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
>   at 
> script14150947196261979223475$_run_closure1.doCall(script14150947196261979223475.groovy)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:597)
>   at 
> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
>   at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
>   at 
> org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
>   at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:903)
>   at 
> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
>   at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
>   at 
> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:54)
>   at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
>   at javaposse.jobdsl.dsl.JobParent.job(JobParent.groovy:27)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccesso

OSX Slave Agent Crashing/Closing

2014-11-10 Thread Charles Blessing


I have a Windows-based master and a single OSX client. Builds are run on 
the OSX client using the Jenkins slave agent which is launched manually by 
downloading and running the appropriate jnlp file from the master web 
server.

Once running, builds and notifications progress as expected.

However, approximately once a day - usually overnight when no builds are 
running, the slave agent closes. Sometimes when I go to check it just isn't 
running any more, once or twice it has crashed. I'm intending to gather 
more information next time a crash occurs, although typically since 
deciding to do this it has just been closing 'cleanly'.

Unfortunately I'm not entirely sure when this started to happen as there 
was an extended period of one project being left in a 'known broken state', 
resulting in Jenkins getting turned off.

Any suggestions on how to fix this situation would be much appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Subversion logger setup

2014-11-10 Thread Daniel Beck
The Jenkins logging isn't set up for a use case like that; use the Subversion 
server's access log (and filter by Jenkins master and slave IP addresses) 
instead.

If you must use Jenkins, try setting up a log recorder for the following 
loggers:
- hudson.scm.SubversionSCM
- hudson.scm.listtagsparameter.ListSubversionTagsParameterDefinition
- hudson.scm.CredentialsSVNAuthenticationProviderImpl
(Which are also the loggers you'd find through autocompletion of 'svn' and 
'subversion' since Jenkins 1.573.)

SCMListener barely receives anything, as you can see in the Javadoc:
http://javadoc.jenkins-ci.org/hudson/model/listeners/SCMListener.html

On 10.11.2014, at 14:53, Jennifer Hofmeister  
wrote:

> Hello,
>  
> I want to set up a logger to examine all attempts Jenkins makes to connect to 
> a Subversion server, successful or not.
>  
> The jenkins and hudson APIs are huge, but I figured 
> hudson.model.listeners.SCMListener might be a good module to listen to. But 
> the log stays empty, although I set it to log level “all”.
>  
> What did I miss? Or does anyone know a better listener module?
>  
> Cheers
>  
> Jennifer
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Groovy script to do jenkins configuration

2014-11-10 Thread Rob Mandeville
Sorry, I don’t know how to help you more there.

--Rob

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Ankush Aggarwal
Sent: Monday, November 10, 2014 9:05 AM
To: jenkinsci-users@googlegroups.com
Cc: Rob Mandeville
Subject: Re: Groovy script to do jenkins configuration

Hi Rob,

I have script to add Maven configuration through groovy script and it is 
working fine. i need similar kind of script for sonar and artifactory.

maven3.groovy


import jenkins.*
import jenkins.model.*
import hudson.*
import hudson.model.*
a=Jenkins.instance.getExtensionList(hudson.tasks.Maven.DescriptorImpl.class)[0];
b=(a.installations as List);
b.add(new hudson.tasks.Maven.MavenInstallation("MAVEN3", 
"/home/jenkins/apache-maven/apache-maven-3.2.3", []));
a.installations=b
a.save()

command line to execute.
java -jar jenkins-cli.jar -s  http://localhost:8080/ groovy maven3.groovy

-Ankush

On Monday, 10 November 2014 19:03:44 UTC+5:30, Rob Mandeville wrote:
If you want to configure your Jenkins service via Groovy, you need the Groovy 
plugin.  This allows you to run a “System Groovy Script”.  This runs in the 
same JVM as the server.

This gives you the raw capabilities.  I don’t know of one particular reference 
to tell you how to do what you’re trying to do.  You may need to get the 
javadoc for your server and for the plugins you wish to configure.  I don’t 
have the code here, but at a previous position I was able to use this 
capability to enable and disable slave nodes as part of a Jenkins job.

You may also want to look at the Scriptler plugin.  This will allow easier 
storage of your Groovy configuration scripts, and easier execution of them 
within a Jenkins job.

Hope this helps!

--Rob Mandeville


From: jenkins...@googlegroups.com 
[mailto:jenkins...@googlegroups.com] On Behalf Of Ankush Aggarwal
Sent: Monday, November 10, 2014 7:30 AM
To: jenkins...@googlegroups.com
Subject: Groovy script to do jenkins configuration

Hi All,

I have installed sonar and artifactory plugin in jenkins. I want to do both 
sonar and artifactory configurations via groovy script.

I am able to do using GUI Manage Jenkins -> configure system but need to do 
similar activity via groovy script.

Anyone please help me on this.

Thanks,
Ankush
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Click here to report 
this email as spam.


This e-mail and the information, including any attachments it contains, are 
intended to be a confidential communication only to the person or entity to 
whom it is addressed and may contain information that is privileged. If the 
reader of this message is not the intended recipient, you are hereby notified 
that any dissemination, distribution or copying of this communication is 
strictly prohibited. If you have received this communication in error, please 
immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


This e-mail and the information, including any attachments it contains, are 
intended to be a confidential communication only to the person or entity to 
whom it is addressed and may contain information that is privileged. If the 
reader of this message is not the intended recipient, you are hereby notified 
that any dissemination, distribution or copying of this communication is 
strictly prohibited. If you have received this communication in error, please 
immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins master and slave workspace directory

2014-11-10 Thread kannikanti madhukumar
Hi Geoff,

My one hour search for changing workspace issue ended after seeing your 
post.

Really nice post.

Thanks,
madhu

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Groovy script to do jenkins configuration

2014-11-10 Thread Ankush Aggarwal
Hi Rob,

I have script to add Maven configuration through groovy script and it is 
working fine. i need similar kind of script for sonar and artifactory.

maven3.groovy


import jenkins.*
import jenkins.model.*
import hudson.*
import hudson.model.*
a=Jenkins.instance.getExtensionList(hudson.tasks.Maven.DescriptorImpl.class)[0];
b=(a.installations as List);
b.add(new hudson.tasks.Maven.MavenInstallation("MAVEN3", 
"/home/jenkins/apache-maven/apache-maven-3.2.3", []));
a.installations=b
a.save()

command line to execute.
java -jar jenkins-cli.jar -s  http://localhost:8080/ groovy maven3.groovy

-Ankush

On Monday, 10 November 2014 19:03:44 UTC+5:30, Rob Mandeville wrote:
>
>  If you want to configure your Jenkins service via Groovy, you need the 
> Groovy plugin.  This allows you to run a “System Groovy Script”.  This runs 
> in the same JVM as the server.
>
>  
>
> This gives you the raw capabilities.  I don’t know of one particular 
> reference to tell you how to do what you’re trying to do.  You may need to 
> get the javadoc for your server and for the plugins you wish to configure.  
> I don’t have the code here, but at a previous position I was able to use 
> this capability to enable and disable slave nodes as part of a Jenkins job.
>
>  
>
> You may also want to look at the Scriptler plugin.  This will allow easier 
> storage of your Groovy configuration scripts, and easier execution of them 
> within a Jenkins job.
>
>  
>
> Hope this helps!
>
>  
>
> --Rob Mandeville
>
>  
>
>  
>  
> *From:* jenkins...@googlegroups.com  [mailto:
> jenkins...@googlegroups.com ] *On Behalf Of *Ankush Aggarwal
> *Sent:* Monday, November 10, 2014 7:30 AM
> *To:* jenkins...@googlegroups.com 
> *Subject:* Groovy script to do jenkins configuration
>  
>  
>  
> Hi All,
>  
>  
>  
> I have installed sonar and artifactory plugin in jenkins. I want to do 
> both sonar and artifactory configurations via groovy script.
>  
>  
>  
> I am able to do using GUI Manage Jenkins -> configure system but need to 
> do similar activity via groovy script.
>  
>  
>  
> Anyone please help me on this.
>  
>  
>  
> Thanks,
>  
> Ankush
>  
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-use...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>
>  Click here 
> 
>  
> to report this email as spam.
>  
> --
> This e-mail and the information, including any attachments it contains, 
> are intended to be a confidential communication only to the person or 
> entity to whom it is addressed and may contain information that is 
> privileged. If the reader of this message is not the intended recipient, 
> you are hereby notified that any dissemination, distribution or copying of 
> this communication is strictly prohibited. If you have received this 
> communication in error, please immediately notify the sender and destroy 
> the original message.
>
> Thank you.
>
> Please consider the environment before printing this email.
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Subversion logger setup

2014-11-10 Thread Jennifer Hofmeister
Hello,

I want to set up a logger to examine all attempts Jenkins makes to connect to a 
Subversion server, successful or not.

The jenkins and hudson APIs are huge, but I figured 
hudson.model.listeners.SCMListener might be a good module to listen to. But the 
log stays empty, although I set it to log level "all".

What did I miss? Or does anyone know a better listener module?

Cheers

Jennifer

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Display text page inside mail body with Email-ext plugin in Jenkins

2014-11-10 Thread Daniel Beck

On 10.11.2014, at 14:41, Alex Brodov  wrote:

> notepad

If you mean the horribly broken text editor shipping with Windows, make sure 
there's no Unix newline (0x0a) at the line break.

There also shouldn't be any other ASCII control characters for that matter. Use 
a hex editor to determine the exact file contents.

Make sure it's an issue with the email _contents_ and not your email _viewer_ 
doing additional clever formatting.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Display text page inside mail body with Email-ext plugin in Jenkins

2014-11-10 Thread Alex Brodov


I'm attaching a text file to the content of the email that is sent from 
jenkins, the thing is that the content of this file doesn't appear as it 
appear in any notepad, i've tried sending the email as plain text and as 
html but it still displaying the content in a diferent way. For example if 
this is one of the lines in the file:

+--+
  MSP-B Automated Testing Report
+--+
| scale-ive-0001-vertical-vpm2-160_prog_1_zone-check-acquire-time.pyOK |

This is how it looks like in the email:

+--+
  MSP-B Automated Testing Report
+--+
| scale-ive-0001-vertical-vpm2-160_prog_1_zone-check-acquire-time.py
| OK | 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Stop the execution if First task is failed even if multiple tasks are added to the project

2014-11-10 Thread Ginga, Dick
You can certainly do it with the Build Flow (DSL) plugin

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Panikera Raj
Sent: Monday, November 10, 2014 8:36 AM
To: jenkinsci-users@googlegroups.com
Subject: Fwd: Stop the execution if First task is failed even if multiple tasks 
are added to the project


Hi All,
I have a project in Jenkins (as free style project) where I have added multiple 
tasks as an attachment. As I showed in attachment in first task condition is 
not satisfied I need to come out from the execution I don't want to execute 
second task.
I can put exit 1. But If condition is not matched project will get marked as 
Failure and mail will go to every one. So if put just exit 0. It will come out 
from the first task then once again second task will execute. I don't want to 
be execute like this.
Is there a way where if first task not satisfied condition we can come out from 
complete execution(with out executing second task)


Regards,
Panikera


--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Fwd: Stop the execution if First task is failed even if multiple tasks are added to the project

2014-11-10 Thread Panikera Raj
Hi All,

I have a project in Jenkins (as free style project) where I have added
multiple tasks as an attachment. As I showed in attachment in first task
condition is not satisfied I need to come out from the execution I don't
want to execute second task.

I can put *exit 1*. But If condition is not matched project will get marked
as Failure and mail will go to every one. So if put just *exit 0.* It will
come out from the first task then once again second task will execute. I
don't want to be execute like this.

Is there a way where if first task not satisfied condition we can come out
from complete execution(with out executing second task)



Regards,
Panikera

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Groovy script to do jenkins configuration

2014-11-10 Thread Rob Mandeville
If you want to configure your Jenkins service via Groovy, you need the Groovy 
plugin.  This allows you to run a “System Groovy Script”.  This runs in the 
same JVM as the server.

This gives you the raw capabilities.  I don’t know of one particular reference 
to tell you how to do what you’re trying to do.  You may need to get the 
javadoc for your server and for the plugins you wish to configure.  I don’t 
have the code here, but at a previous position I was able to use this 
capability to enable and disable slave nodes as part of a Jenkins job.

You may also want to look at the Scriptler plugin.  This will allow easier 
storage of your Groovy configuration scripts, and easier execution of them 
within a Jenkins job.

Hope this helps!

--Rob Mandeville


From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Ankush Aggarwal
Sent: Monday, November 10, 2014 7:30 AM
To: jenkinsci-users@googlegroups.com
Subject: Groovy script to do jenkins configuration

Hi All,

I have installed sonar and artifactory plugin in jenkins. I want to do both 
sonar and artifactory configurations via groovy script.

I am able to do using GUI Manage Jenkins -> configure system but need to do 
similar activity via groovy script.

Anyone please help me on this.

Thanks,
Ankush
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Click 
here
 to report this email as spam.


This e-mail and the information, including any attachments it contains, are 
intended to be a confidential communication only to the person or entity to 
whom it is addressed and may contain information that is privileged. If the 
reader of this message is not the intended recipient, you are hereby notified 
that any dissemination, distribution or copying of this communication is 
strictly prohibited. If you have received this communication in error, please 
immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Groovy script to do jenkins configuration

2014-11-10 Thread Ankush Aggarwal
Hi All,

I have installed sonar and artifactory plugin in jenkins. I want to do both 
sonar and artifactory configurations via groovy script.

I am able to do using GUI Manage Jenkins -> configure system but need to do 
similar activity via groovy script.

Anyone please help me on this.

Thanks,
Ankush

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Deploy war using jenkins `Deploy to container` Plugin` on tomcat 8

2014-11-10 Thread Harmeet Singh
Hello Members, 

I am new in jenkins, trying to deploy war file using jenkins `Deploy to 
container` Plugin, but problem is that, i am using Tomcat version 8 and 
plugin provide support from Below 8 version. How would i deploy war file 
using jenkins plugins to tomcat 8?

Thanks 
Harmeet Singh

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Using Coverity plugin

2014-11-10 Thread Shobha Dashottar
Awesome !! This worked. Thanks a lot

On Friday, November 7, 2014 6:34:26 PM UTC+5:30, rginga wrote:
>
>  Yup, you need to add P4 to the cov-build blacklist field. The Coverity 
> pluging wraps everything and it does not like null responses.
>
>  
>
> *From:* jenkins...@googlegroups.com  [mailto:
> jenkins...@googlegroups.com ] *On Behalf Of *Shobha Dashottar
> *Sent:* Thursday, November 06, 2014 11:38 PM
> *To:* jenkins...@googlegroups.com 
> *Subject:* Using Coverity plugin
>
>  
>  
> Hi,
>I have the Coverity setup created and installed the client on a linux 
> slave machine. Using Coverity UI I can created the xml and run coverity 
> analysis just fine.
>  In my Jenkins job, I have configured Coverity and that build just 
> fails with the below error:
> The build job was running fine prior to Coverity .
> In the job config, I have given the details of the Integrity Manager and 
> checked the option of "Perform Coverity build, analysis and commit" and 
> nothing else.
>
> What am I missing?
>
> Thanks
> Shobha
>
> Saving modified client Dev_RHEL5_x86--274771558
>
> *06:52:21* [Dev_RHEL5_x86] $ 
> /home/builder/cov-analysis-linux-7.5.0/bin/cov-build --dir 
> /home/builder/jenkins/coverity/temp-5203856065298512221.tmp /usr/bin/p4 -P 
> 827C6449450B2A55C2F2B48 -s client -i
>
> *06:52:23* Last build changeset: 18067994
>
> *06:52:23* [Dev_RHEL5_x86] $ 
> /home/builder/cov-analysis-linux-7.5.0/bin/cov-build --dir 
> /home/builder/jenkins/coverity/temp-5203856065298512221.tmp /usr/bin/p4 -P 
> 827C6449450B2A55C2F2B48 changes -s submitted -m 1 
> //Dev_RHEL5_x86--274771558/...
>
> *06:52:25* FATAL: null
>
> *06:52:25* java.util.NoSuchElementException 
> 
>
> *06:52:25*   at 
> java.util.StringTokenizer.nextToken(StringTokenizer.java:349) 
> 
>
> *06:52:25*   at 
> com.tek42.perforce.parse.AbstractPerforceTemplate.parseList(AbstractPerforceTemplate.java:112)
>  
> 
>
> *06:52:25*   at 
> com.tek42.perforce.parse.Changes.getChangeNumbers(Changes.java:186) 
> 
>
> *06:52:25*   at 
> hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:996) 
> 
>
> ...
> ...
>
>  -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-use...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.