Re: Change file encoding from ANSI to UTF-8 in Jenkins

2013-01-10 Thread Jonathan Rogers
I'm pretty sure it is determined at JVM startup time from the system locale.
https://help.ubuntu.com/community/Locale>


Tj Kim wrote:
> me too. please help us..
>
> 2012년 10월 31일 수요일 오후 5시 38분 27초 UTC+9, sujan54004 님의 말:
>
> Hello Everyone,
>
> I am trying to change the file.encoding from ANSI to UTF-8 in
> Jenkins. It always shows ANSI_X3.4-1968 in the "system properties".
> I've tried setting it from the code level but it's not working for
> me. I am using Ubuntu 12.04 to host the Jenkins.
>
> Any help would be very much appreciated.
>
> Thanks
>
-- Jonathan Rogers


Re: Change file encoding from ANSI to UTF-8 in Jenkins

2013-01-10 Thread Tj Kim
me too. please help us..

2012년 10월 31일 수요일 오후 5시 38분 27초 UTC+9, sujan54004 님의 말:
>
> Hello Everyone,
>
> I am trying to change the file.encoding from ANSI to UTF-8 in Jenkins. It 
> always shows ANSI_X3.4-1968 in the "system properties". 
> I've tried setting it from the code level but it's not working for me. I 
> am using Ubuntu 12.04 to host the Jenkins.
>
> Any help would be very much appreciated.
>
> Thanks
>
>

List view - how to show comment in tooltip or elsewhere?

2013-01-10 Thread zakyn
Hello,
we have some feature branch jobs which covers different feature branches in 
time. So we need to info user which branch is currently set in which job.
Now we are using the description of jobs but this information is not 
visible in the list of jobs.
I am looking for the solution how to add column or other visible component 
which will contain the information about the set branch.
 
Example:
jobs: fb_1, fb_2, fb_3
job fb_1 == feBr_1256 branch in time1
job fb_1 == feBr_1288 branch in time2

 
Thank you.
 
Vladimir
 


getting Exception in Job Import plugin

2013-01-10 Thread Radha Mohan Maheshwari
javax.servlet.ServletException: java.lang.NullPointerException
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:615)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658)
at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:384)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:487)
at org.kohsuke.stapler.Stapler.service(Stapler.java:164)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at 
hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at 
org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at 
hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
at 
winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:215)
at winstone.RequestHandlerThread.run(RequestHandlerThread.java:138)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at 
org.jenkins.ci.plugins.jobimport.JobImportAction.doImport(JobImportAction.java:126)
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.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)
at 
org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573)
... 38 more

-- 
Radha Mohan Maheshwari


Re: Jenkins failed to sync from Perforce due to long file name

2013-01-10 Thread Mark Waite
In the past when I had issues with "the file name is too long", it was a 
Windows operating system limitation, not a Jenkins limitation.

Our work around was to place the Jenkins home directory in the C:\J directory.  
You might save one more letter by using "SUBST" to define a drive J:\ and place 
the Jenkins home directory in that location.

http://joe-re.blogspot.com/2012/09/jenkins-file-name-too-long.html offers 
another alternative


Mark Waite



>
> From: Jason Zhang 
>To: jenkinsci-users@googlegroups.com 
>Sent: Thursday, January 10, 2013 1:04 PM
>Subject: Jenkins failed to sync from Perforce due to long file name
> 
>
>Hi,
>
>We're running one Jenkins 1.498 instance on Windows 7 and got the error "The
>file name is too long." on some files due to the complexity of our project
>structures. We can't change the project structures. I just wonder if there
>is any JVM option to handle this?
>
>Thanks.
>Jason
>
>
>

Re: How to notify status when a remote job is completed - quick question

2013-01-10 Thread zw
Hi Rob

Thanks for responding.
We tried your approach using command line jenkins-cli ans with -s option; 
the job kicked off but it didnt wait until job finishes; it simply executes 
and shows the next command prompt.
How could we let it wait ?

Thanks

On Thursday, January 10, 2013 8:43:18 AM UTC-8, Mandeville, Rob wrote:
>
>  How is job X telling Jenkins Server Y to kick off a job?  If you’re 
> using the command line, the “-s” option of “build” will wait until the job 
> finishes, one way or the other.  If you can’t do it that way, you’ll have 
> to get the build ID and poll Y’s web page for the build.
>
>  
>
> --Rob
>
>  
>
> *From:* jenkins...@googlegroups.com  [mailto:
> jenkins...@googlegroups.com ] *On Behalf Of *zw
> *Sent:* Thursday, January 10, 2013 11:24 AM
> *To:* jenkins...@googlegroups.com 
> *Subject:* How to notify status when a remote job is completed - quick 
> question
>
>  
>
> Hi All
>  
>  
>  
> We have 2 Jenkins servers in 2 different boxes.
>  
> Box A job X triggers a job in Box B, run by box B's job Y Jenkins server.
>  
> When the job Y in Box B completes, how do we notify the job X in box A 
> that it completes or fails.
>  
>  
>  
> any help is appreciated.
>  
> Thanks 
>   The information in this message is for the intended recipient(s) only 
> and may be the proprietary and/or confidential property of Litle & Co., 
> LLC, and thus protected from disclosure. If you are not the intended 
> recipient(s), or an employee or agent responsible for delivering this 
> message to the intended recipient, you are hereby notified that any use, 
> dissemination, distribution or copying of this communication is prohibited. 
> If you have received this communication in error, please notify Litle & Co. 
> immediately by replying to this message and then promptly deleting it and 
> your reply permanently from your computer.
>  


Job-DSL: 'typeConfigs' XML node silently fails?

2013-01-10 Thread Mike Dougherty
I have the following script:

public class DSLHelpers {
public static void violations(out, job, typeName, minNum, maxNum, 
unstableNum, filenamePattern = null) {
job.configure { project ->
def violationsConfig = project / publishers / 
'hudson.plugins.violations.ViolationsPublisher' / 'config'

*/* these are the lines relevant to the discussion */*
*def typeConfigsNode = violationsConfig / typeConfigs*
*def typeEntry = typeConfigsNode / entry*
*/* --- */*

typeEntry / string(typeName)
def typeConfig = typeEntry / 
'hudson.plugins.violations.TypeConfig'
typeConfig / type(typeName)
typeConfig / min(minNum)
typeConfig / max(maxNum)
typeConfig / unstable(unstableNum)
typeConfig / usePattern(filenamePattern ? "true" : "false")
typeConfig / pattern(filenamePattern)
// out << project
}
}
}

job {
name "Tools-jshint-dsl"
DSLHelpers.violations(out, delegate, "jslint", 10, 11, 10, 
"test-reports/*.xml")
}

Running a job with this DSL script succeeds and has the following output:

Existing Templates: 
New Templates: 
Unreferenced Templates: 
Adding jobs: 
Existing jobs: GeneratedJob{jobName='Tools-jshint-dsl', templateName=none}
Removing jobs: 
Finished: SUCCESS


However, the /job/Tools-jshint-dsl 404's and there's nothing on the 
filesystem in ~jenkins/jobs/ either.

Here's the tricky part though: removing the 'typeConfigs' node and making 
typeEntry 
= violationsConfig / entry results in success *and* the expected generated 
job. Using a different name ('foo') in place of typeConfigs also results in 
the expected XML (.//config/foo/entry), and placing a 'typeConfigs' node 
elsewhere in the document hierarchy also results in invalid XML. (Of 
course, all of these yield an incorrect document, they're merely test cases 
to figure out what the heck is going on).

When the document is written to stdout (using, I assume, Node.toString()), 
typeConfigs does appear, so it's would appear that it's correctly added to 
the Node object. It's possible there's something wrong with Node's 
serialization but that seems unlikely.

All of this leads me to believe that there's something incompatible with an 
XML node named 'typeConfigs' when being used with Job-DSL.

Does anyone have any ideas about what the cause may be, or any suggestions 
as to what else I might investigate?



Jenkins failed to sync from Perforce due to long file name

2013-01-10 Thread Jason Zhang
Hi,

We're running one Jenkins 1.498 instance on Windows 7 and got the error "The
file name is too long." on some files due to the complexity of our project
structures. We can't change the project structures. I just wonder if there
is any JVM option to handle this?

Thanks.
Jason


kicking off a job on a remote Jenkins - quick question

2013-01-10 Thread zw
Hi All

We download the jenkins-cli.jar on the slave.
We then tried java -jar jenkins-cli.jar -s 
http://slaveHost.us.com:8080/jenkins/ build JOB 1.0_Build and got error
We then tried java -jar jenkins-cli.jar -s 
http://slaveHost.us.com:8080/jenkins/ build 1.0_Build and we got error

java.lang.NullPointerException
at 
hudson.util.CaseInsensitiveComparator.compare(CaseInsensitiveComparator.java:40)
at 
hudson.util.CaseInsensitiveComparator.compare(CaseInsensitiveComparator.java:34)
at java.util.TreeMap.getEntryUsingComparator(TreeMap.java:351)
at java.util.TreeMap.getEntry(TreeMap.java:322)
at java.util.TreeMap.get(TreeMap.java:255)
at hudson.util.CopyOnWriteMap.get(CopyOnWriteMap.java:89)
at hudson.model.Hudson.getItem(Hudson.java:2128)
at 
hudson.model.AbstractProject.findNearest(AbstractProject.java:2221)
at 
hudson.cli.handlers.AbstractProjectOptionHandler.parseArguments(AbstractProjectOptionHandler.java:54)
at 
org.kohsuke.args4j.CmdLineParser.parseArgument(CmdLineParser.java:435)
at hudson.cli.CLICommand.main(CLICommand.java:177)
at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:68)
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 
hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:277)
at 
hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:258)
at 
hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:218)
at hudson.remoting.UserRequest.perform(UserRequest.java:114)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:283)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

How do we kick off a build and passing SVN revision number to it ?

Thanks




Re: SCM polling with mercurial exclude path or commit comment

2013-01-10 Thread EldadAK
I wanted to share my solution.
I installed the ScriptTrigger plugin and wrote a short script to check if 
the last changes are made by the "autobuild" user or not. If not, I trigger 
a new build (since I know there are real, new changes).

I hope this helps someone.



On Wednesday, January 9, 2013 8:34:51 PM UTC+2, EldadAK wrote:
>
> Is there a way to use mercurial SCM polling with some kind of exclusion?
> I have this setup that my Jenkins tags, commits and pushes a good build's 
> version back to the repository where it pulled from.
> This causes the next SCM poll to discover the changes and trigger a new 
> build. It causes an endless builds loop...
>
> I looked into the Pathignore plugin, but it crashed my Jenkins and didn't 
> work at all after I succeeded bringing Jenkins back up :-(
>
> Thx.
>


Build a parameterized build while one or more parameters are empty

2013-01-10 Thread agedio
I have a project which is a parameterized build. 
For instance I use the following parameters: 

String Parameter 
Name: *WFVERSION*
Default Value: 3.2 

String Parameter 
Name: *WFTESTCYCLE*
Default Value: test 

String Parameter 
Name: *WFBUILDNUMBER*
Default: beta_%{BUILD_NUMBER} 


Then in my pom.xml I catch these parameters to dynamically build the name 
like this: 
  *${env.WFVERSION}${env.WFTESTCYCLE}${env.WFBUILDNUMBER}*

  
However sometimes we don't set the WFTESTCYCLE and the WFBUILDNUMBER 
parameters. These values are not always needed. In that case I would like 
the outcome to be: 
*3.2*

But what happens if you leave the parameterized option *BLANK/EMPTY* is 
this: 
*3.2${env.WFTESTCYCLE}${env.WFBUILDNUMBER}*


*So a BLANK/EMPTY parameter results in ${PARAMETER} in my pom.xml. I don't 
want to see the ${PARAMETER} values. It should just be empty. 
Is this possible?*

Thx. 
Hugo



RE: Issue with Email-Ext plugin-Please help

2013-01-10 Thread Alex Earl
The default groovy template should have the info.

Sent from my Windows Phone
--
From: uma shankar
Sent: 1/10/2013 11:22 AM
To: Alex Earl
Cc: jenkinsci-users@googlegroups.com
Subject: Re: Issue with Email-Ext plugin-Please help

Hi Alex,

I have tried in many ways to get that output, but did not get it through.
Will you be able to help me getting the template?

Thank You.


On Thu, Jan 10, 2013 at 11:34 PM, Alex Earl  wrote:

> You may need to create your own template. Look at the wiki for more
> information.
>
> Sent from my Windows Phone
> --
> From: uma shankar
> Sent: 1/10/2013 10:53 AM
> To: jenkinsci-users@googlegroups.com
> Subject: Issue with Email-Ext plugin-Please help
>
>  Hi,
>
> ** **
>
> I am trying to use Jenkins for POC, and have enabled Email-ext plugin. I
> am facing some issue while getting perforce change list.
>
> ** **
>
> I am have been using perforce plugin for integration with SCM. I have some
> issue with the plugin.
> I use Email-ext plugin and trying get complete change list history in mail
> with revision no and workspace as display on build home page.
> Example: (*Expected to be in e-mail*)
> Changes
> 1436416 by umashankar@umashakar-test on Jan 10, 2013 8:44:54 AM
> Forcing a build
> Affected Files:
> //myproject/src/test/java/control.java(#16)
>
> //myproject/src/test/java/control1.java(#17)
>
> ** **
>
> ** **
>
> But I have used some keyword to get this things in email as below:
> *
>
> List of changed file(s):
> ${CHANGES, showPaths=true}
>
> ** **
>
> ${CHANGES_SINCE_LAST_SUCCESS, showPaths=true}
>
> *
>
> ** **
>
> And output comes in mail as below:
> List of changed file(s):
> [umashankar] Updates
> src/test/java/control.java
>
> src/test/java/control1.java
>
> ** **
>
> Changes for Build #16
> [umashankar] Updates
> src/test/java/control.java
>
> src/test/java/control1.java
>
> It is missing the full path, revision number, changelist workspace name.**
> **
>
> ** **
>
> Early response would help to resolve this issue ASAP.
>


Re: Issue with Email-Ext plugin-Please help

2013-01-10 Thread uma shankar
Hi Alex,

I have tried in many ways to get that output, but did not get it through.
Will you be able to help me getting the template?

Thank You.


On Thu, Jan 10, 2013 at 11:34 PM, Alex Earl  wrote:

> You may need to create your own template. Look at the wiki for more
> information.
>
> Sent from my Windows Phone
> --
> From: uma shankar
> Sent: 1/10/2013 10:53 AM
> To: jenkinsci-users@googlegroups.com
> Subject: Issue with Email-Ext plugin-Please help
>
> Hi,
>
> ** **
>
> I am trying to use Jenkins for POC, and have enabled Email-ext plugin. I
> am facing some issue while getting perforce change list.
>
> ** **
>
> I am have been using perforce plugin for integration with SCM. I have some
> issue with the plugin.
> I use Email-ext plugin and trying get complete change list history in mail
> with revision no and workspace as display on build home page.
> Example: (*Expected to be in e-mail*)
> Changes
> 1436416 by umashankar@umashakar-test on Jan 10, 2013 8:44:54 AM
> Forcing a build
> Affected Files:
> //myproject/src/test/java/control.java(#16)
>
> //myproject/src/test/java/control1.java(#17)
>
> ** **
>
> ** **
>
> But I have used some keyword to get this things in email as below:
> *
>
> List of changed file(s):
> ${CHANGES, showPaths=true}
>
> ** **
>
> ${CHANGES_SINCE_LAST_SUCCESS, showPaths=true}
>
> *
>
> ** **
>
> And output comes in mail as below:
> List of changed file(s):
> [umashankar] Updates
> src/test/java/control.java
>
> src/test/java/control1.java
>
> ** **
>
> Changes for Build #16
> [umashankar] Updates
> src/test/java/control.java
>
> src/test/java/control1.java
>
> It is missing the full path, revision number, changelist workspace name.**
> **
>
> ** **
>
> Early response would help to resolve this issue ASAP.
>


how to confirm svn client version used by Hudson - quick question

2013-01-10 Thread zw
Hi All

Question 1 -
We've set up Jenkins to use SVN 1.4 version.
Is there a quick way to find out in a file setting that it is using SVN 1.4 
version.

Question 2 -
Can Jenkins still work if we don't explicitly use its SCM plugin but 
instead to use the host's command line svn client ?
Any special configuration we need to do for that ?

Thanks 


RE: Issue with Email-Ext plugin-Please help

2013-01-10 Thread Alex Earl
You may need to create your own template. Look at the wiki for more
information.

Sent from my Windows Phone
--
From: uma shankar
Sent: 1/10/2013 10:53 AM
To: jenkinsci-users@googlegroups.com
Subject: Issue with Email-Ext plugin-Please help

Hi,

** **

I am trying to use Jenkins for POC, and have enabled Email-ext plugin. I am
facing some issue while getting perforce change list.

** **

I am have been using perforce plugin for integration with SCM. I have some
issue with the plugin.
I use Email-ext plugin and trying get complete change list history in mail
with revision no and workspace as display on build home page.
Example: (*Expected to be in e-mail*)
Changes
1436416 by umashankar@umashakar-test on Jan 10, 2013 8:44:54 AM
Forcing a build
Affected Files:
//myproject/src/test/java/control.java(#16)

//myproject/src/test/java/control1.java(#17)

** **

** **

But I have used some keyword to get this things in email as below:
*

List of changed file(s):
${CHANGES, showPaths=true}

** **

${CHANGES_SINCE_LAST_SUCCESS, showPaths=true}

*

** **

And output comes in mail as below:
List of changed file(s):
[umashankar] Updates
src/test/java/control.java

src/test/java/control1.java

** **

Changes for Build #16
[umashankar] Updates
src/test/java/control.java

src/test/java/control1.java

It is missing the full path, revision number, changelist workspace name.

** **

Early response would help to resolve this issue ASAP.


Issue with Email-Ext plugin-Please help

2013-01-10 Thread uma shankar


Hi,

** **

I am trying to use Jenkins for POC, and have enabled Email-ext plugin. I am 
facing some issue while getting perforce change list.

** **

I am have been using perforce plugin for integration with SCM. I have some 
issue with the plugin.
I use Email-ext plugin and trying get complete change list history in mail 
with revision no and workspace as display on build home page.
Example: (*Expected to be in e-mail*)
Changes
1436416 by umashankar@umashakar-test on Jan 10, 2013 8:44:54 AM
Forcing a build 
Affected Files: 
//myproject/src/test/java/control.java(#16)

//myproject/src/test/java/control1.java(#17)

** **

** **

But I have used some keyword to get this things in email as below:
*

List of changed file(s):
${CHANGES, showPaths=true}

** **

${CHANGES_SINCE_LAST_SUCCESS, showPaths=true}

*

** **

And output comes in mail as below:
List of changed file(s):
[umashankar] Updates
src/test/java/control.java

src/test/java/control1.java

** **

Changes for Build #16
[umashankar] Updates
src/test/java/control.java

src/test/java/control1.java

It is missing the full path, revision number, changelist workspace name.

** **

Early response would help to resolve this issue ASAP.


Re: Disappearing build reports

2013-01-10 Thread Ryan Shoemaker
Restarting Jenkins seemed to fix the missing build reports for me...

--Ryan


On Thu, Jan 10, 2013 at 8:45 AM,  wrote:

> I believe that I am having the same issue.
>
>
> https://groups.google.com/forum/?fromgroups=#!topic/jenkinsci-users/7GZJaajfYvM
>
> Did you find any resolution?
>
> Steve
>
>
> On Wednesday, January 2, 2013 3:24:56 PM UTC-5, Ryan Shoemaker wrote:
>>
>> Was there an issue filed for this?
>>
>> I'm running 1.492 and noticed the disappearing build issue in a new job I
>> created today (all of our existing jobs seem to behaving normally).  Builds
>> of the new job do exist on disk on the Jenkins server, but they aren't
>> showing in the UI.  At least not for very long.  They appear for a little
>> bit and then disappear.  When they do exist, the hover-over context menu
>> only shows a few of the usual options.
>>
>> --Ryan
>>
>> On Tuesday, 23 October 2012 09:49:32 UTC-4, Andrew Melo wrote:
>>>
>>> Hey everyone,
>>>
>>> We're on 1.486, but we're still having our build records disappear,
>>> did the planned fixes not make it into the release?
>>>
>>> Thanks,
>>> Andrew
>>>
>>> --
>>> --
>>> Andrew Melo
>>>
>>


RE: misconfigured anonymous security

2013-01-10 Thread Matthew.Webber
See https://wiki.jenkins-ci.org/display/JENKINS/Disable+security
Matthew

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of zw
Sent: 10 January 2013 16:46
To: jenkinsci-users@googlegroups.com
Subject: misconfigured anonymous security

Hi

We misconfigured the security for anonymous that we cant view anything on 
Jenkins anymore.
We also dont have an account to login, which was what we were trying to 
configure.
How do we recover this ?
Please help.


Re: Build failure analyzer pattern issue

2013-01-10 Thread jhoomsharabi

Thanks Westling it's working now.




-Original Message-
From: Tomas Westling 
To: jenkinsci-dev 
Cc: jenkinsci-users ; robert.sandell 
; tomas.westling 
; jhoomsharabi 
Sent: Wed, Jan 9, 2013 12:03 pm
Subject: Re: Build failure analyzer pattern issue


Hello Jhoom,


the build failure analyzer uses Matcher.matches() to see if a regular 
expression matches its target.
The reason for this is performance, we used find() earlier but we saw very long 
scan times.
This means that you have to match the entire line, not just something that 
exists in the line, e.g.
.*Cannot find parent.*


This would match for "Cannot find parent" anywhere in a line.


Br Tomas Westling
Sony Mobile Communications AB

On Tuesday, January 8, 2013 5:48:34 PM UTC+1, jhooms...@netscape.net wrote:

Hi,
I am trying to implement “build failure analyzer” plugin to my Jenkins projects 
but it’s not working for me, say I am getting build issue like this:
 
Reason: Cannot find parent: net.java:jvnet-parent for project: 
com.sun.jersey:jersey-project:pom:1.9.1 for project 
com.sun.jersey:jersey-project:pom:1.9.1
 
I am trying to match pattern “Cannot find parent”, but looks like build failure 
analyzer is not respecting this pattern or maybe I am giving wrong pattern 
match. I am getting following output from build failure anyalyzer:
 
Identified problems
   No identified problems
   No problems were identified. If you know why this problem 
occurred, please add a suitable Cause for it.
 
Can anyone help me out in this, it will be great help.
 
Thanks,
Jhoom





Re: Jenkins Usage Question - Java requirement

2013-01-10 Thread C M
The link below is one of the references to an external job and seems to
suggest the need for JARs on the remote system. That remains a limitation
for us.


http://stackoverflow.com/questions/11830098/setup-jenkins-to-monitor-external-job


On Wed, Jan 9, 2013 at 11:05 AM, R. Tyler Croy  wrote:

>
> On Wed, 09 Jan 2013, cmanalys...@gmail.com wrote:
>
> > Hello,
> >
> > We have an old build environment where the build server does not support
> > Java.
> >
> > Given this limitation, is it possible to still use Jenkins in a
> > master/slave set up? Or do both master/slave require Java?
> >
> > Any pointers are appreciated.
>
> Worst case scenario, you can use the "External Job" type which is poorly
> documented, and doesn't come with a lot of bells and whistles (like job
> queueing).
>
>
> - R. Tyler Croy
> --
> Code: https://github.com/rtyler
>  Chatter: https://twitter.com/agentdero
>


misconfigured anonymous security

2013-01-10 Thread zw
Hi 

We misconfigured the security for anonymous that we cant view anything on 
Jenkins anymore.
We also dont have an account to login, which was what we were trying to 
configure.
How do we recover this ?
Please help.


RE: How to notify status when a remote job is completed - quick question

2013-01-10 Thread Mandeville, Rob
How is job X telling Jenkins Server Y to kick off a job?  If you’re using the 
command line, the “-s” option of “build” will wait until the job finishes, one 
way or the other.  If you can’t do it that way, you’ll have to get the build ID 
and poll Y’s web page for the build.

--Rob

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of zw
Sent: Thursday, January 10, 2013 11:24 AM
To: jenkinsci-users@googlegroups.com
Subject: How to notify status when a remote job is completed - quick question

Hi All

We have 2 Jenkins servers in 2 different boxes.
Box A job X triggers a job in Box B, run by box B's job Y Jenkins server.
When the job Y in Box B completes, how do we notify the job X in box A that it 
completes or fails.

any help is appreciated.
Thanks

The information in this message is for the intended recipient(s) only and may 
be the proprietary and/or confidential property of Litle & Co., LLC, and thus 
protected from disclosure. If you are not the intended recipient(s), or an 
employee or agent responsible for delivering this message to the intended 
recipient, you are hereby notified that any use, dissemination, distribution or 
copying of this communication is prohibited. If you have received this 
communication in error, please notify Litle & Co. immediately by replying to 
this message and then promptly deleting it and your reply permanently from your 
computer.


How to notify status when a remote job is completed - quick question

2013-01-10 Thread zw
Hi All

We have 2 Jenkins servers in 2 different boxes.
Box A job X triggers a job in Box B, run by box B's job Y Jenkins server.
When the job Y in Box B completes, how do we notify the job X in box A that 
it completes or fails.

any help is appreciated.
Thanks 


Re: Missing console link

2013-01-10 Thread Ryan Shoemaker
Issue filed: 

https://issues.jenkins-ci.org/browse/JENKINS-16303

--Ryan


RE: jenkins/hudson problem with changelog when updating files from svn:externals

2013-01-10 Thread Alex Earl
You could fork, make the patch and create a pull request if one hasn't been
made already. That would probably help get it done faster.

Sent from my Windows Phone
--
From: Tomasz Arendt
Sent: 1/10/2013 7:39 AM
To: jenkinsci-users@googlegroups.com
Subject: jenkins/hudson problem with changelog when updating files from
svn:externals

Hi,
 I would like to refer to your ticket:
https://issues.jenkins-ci.org/browse/JENKINS-12127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel

I have added comment for the above and I am looking forward for any help:

"I am using hudson and when updating svn view which consists of externals
only, every update on subdirectories (from externals) is updated in hudson
workspace but changelog says that nothing was modified and the file
changelog.xml is wrong (has only "" string inside)  It seems like
JENKINS-12127  patch
could fix it but ticket is still open and not resolved yet. This is a
mustbe functionality for me. Some other plugins depends on changelog for
example 'Scan for compiler warnings' will not be launched because of empty
changelog.

Could you tell me if it is going to be delivered?
Kindly waiting for response."


Best Regards,
Tom


jenkins/hudson problem with changelog when updating files from svn:externals

2013-01-10 Thread Tomasz Arendt
Hi,
I would like to refer to your ticket:
https://issues.jenkins-ci.org/browse/JENKINS-12127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel

I have added comment for the above and I am looking forward for any help:

"I am using hudson and when updating svn view which consists of externals
only, every update on subdirectories (from externals) is updated in hudson
workspace but changelog says that nothing was modified and the file
changelog.xml is wrong (has only "" string inside)  It seems like
JENKINS-12127  patch
could fix it but ticket is still open and not resolved yet. This is a
mustbe functionality for me. Some other plugins depends on changelog for
example 'Scan for compiler warnings' will not be launched because of empty
changelog.

Could you tell me if it is going to be delivered?
Kindly waiting for response."


Best Regards,
Tom


Re: Disappearing build reports

2013-01-10 Thread Josselin Pierre
In case you'd be running into the same issue as me...
I currently have the same kind of issue for a few months now :
it happens for jobs who uses a file upload parameter.

There is a workaround for this bug though :
Remove the
.* tag from the jobs' build.xml
and replace it by 

I do it with sed in a separated job running after the bugging jobs ; that
appears to fix the issue.


2013/1/10 

> I believe that I am having the same issue.
>
>
> https://groups.google.com/forum/?fromgroups=#!topic/jenkinsci-users/7GZJaajfYvM
>
> Did you find any resolution?
>
> Steve
>
>
> On Wednesday, January 2, 2013 3:24:56 PM UTC-5, Ryan Shoemaker wrote:
>>
>> Was there an issue filed for this?
>>
>> I'm running 1.492 and noticed the disappearing build issue in a new job I
>> created today (all of our existing jobs seem to behaving normally).  Builds
>> of the new job do exist on disk on the Jenkins server, but they aren't
>> showing in the UI.  At least not for very long.  They appear for a little
>> bit and then disappear.  When they do exist, the hover-over context menu
>> only shows a few of the usual options.
>>
>> --Ryan
>>
>> On Tuesday, 23 October 2012 09:49:32 UTC-4, Andrew Melo wrote:
>>>
>>> Hey everyone,
>>>
>>> We're on 1.486, but we're still having our build records disappear,
>>> did the planned fixes not make it into the release?
>>>
>>> Thanks,
>>> Andrew
>>>
>>> --
>>> --
>>> Andrew Melo
>>>
>>


Re: Disappearing build reports

2013-01-10 Thread rhythmicdevil
I believe that I am having the same issue.

https://groups.google.com/forum/?fromgroups=#!topic/jenkinsci-users/7GZJaajfYvM

Did you find any resolution?

Steve


On Wednesday, January 2, 2013 3:24:56 PM UTC-5, Ryan Shoemaker wrote:
>
> Was there an issue filed for this?  
>
> I'm running 1.492 and noticed the disappearing build issue in a new job I 
> created today (all of our existing jobs seem to behaving normally).  Builds 
> of the new job do exist on disk on the Jenkins server, but they aren't 
> showing in the UI.  At least not for very long.  They appear for a little 
> bit and then disappear.  When they do exist, the hover-over context menu 
> only shows a few of the usual options.
>
> --Ryan
>
> On Tuesday, 23 October 2012 09:49:32 UTC-4, Andrew Melo wrote:
>>
>> Hey everyone, 
>>
>> We're on 1.486, but we're still having our build records disappear, 
>> did the planned fixes not make it into the release? 
>>
>> Thanks, 
>> Andrew 
>>
>> -- 
>> -- 
>> Andrew Melo 
>>
>

Re: UI Not Showing Job Status

2013-01-10 Thread rhythmicdevil
Even Jenkins' own log seems to agree that the job ran.

-rw-r--r-- 1 jenkins jenkins 1327 Jan 10 02:55 log
[root@stglab-botnet-etl jenkins]# less 
jobs/etl_botnet_cnc_info_run/lastSuccessful/log

Started by timer
Building in workspace /var/lib/jenkins/workspace/etl_botnet_cnc_info_run
[etl_botnet_cnc_info_run] $ /bin/sh -xe /tmp/hudson8516587593113665709.sh
+ cd /var/lib/jenkins/workspace/build_botnet_etl
+ source bin/activate
++ deactivate nondestructive
++ unset pydoc
++ '[' -n '' ']'
++ '[' -n '' ']'
++ '[' -n /bin/sh -o -n '' ']'
++ hash -r
++ '[' -n '' ']'
++ unset VIRTUAL_ENV
++ '[' '!' nondestructive = nondestructive ']'
++ VIRTUAL_ENV=/home/swright/workspace/botnet_etl
++ export VIRTUAL_ENV
++ _OLD_VIRTUAL_PATH=/sbin:/usr/sbin:/bin:/usr/bin
++ PATH=/home/swright/workspace/botnet_etl/bin:/sbin:/usr/sbin:/bin:/usr/bin
++ export PATH
++ '[' -n '' ']'
++ '[' -z '' ']'
++ _OLD_VIRTUAL_PS1=
++ '[' x '!=' x ']'
+++ basename /home/swright/workspace/botnet_etl
++ '[' botnet_etl = __ ']'
+++ basename /home/swright/workspace/botnet_etl
++ PS1='(botnet_etl)'
++ export PS1
++ alias 'pydoc=python -m pydoc'
++ '[' -n /bin/sh -o -n '' ']'
++ hash -r
+ cd app
+ '[' -z '' ']'
+ python etl_cnc_info.py
+ deactivate
+ unset pydoc
+ '[' -n /sbin:/usr/sbin:/bin:/usr/bin ']'
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin
+ export PATH
+ unset _OLD_VIRTUAL_PATH
+ '[' -n '' ']'
+ '[' -n /bin/sh -o -n '' ']'
+ hash -r
+ '[' -n '' ']'
+ unset VIRTUAL_ENV
+ '[' '!' '' = nondestructive ']'
+ unset -f deactivate
Finished: SUCCESS
jobs/etl_botnet_cnc_info_run/lastSuccessful/log (END) 


Re: MSBuild VC++ User settings

2013-01-10 Thread Simon Stevenson
Are you specifically putting settings in this file? Generally it is just
IDE settings and shouldn't be needed for building. What is "radiated
output"?

If you are using it to define build parameters, you should be able to pass
those on the msbuild command line instead.

On 10 January 2013 10:20, mwpowellhtx  wrote:

> Well, I sort of half answered my own question.
>
> Configuration tends to land in the form:
> ProjectName.vcproj.COMPUTER.USER.user.
>
> I need for it to land in a general manner that Jenkins CI can work with
> when MSBuild sees it.
>
> i need that to pick up radiated output. I might look at other ways to
> capture that that aren't as settings specific.
>
>
> On Wednesday, January 9, 2013 5:15:40 PM UTC-6, slide wrote:
>
>> What configuration do you mean?
>>
>> Sent from my Windows Phone
>> --
>> From: mwpowellhtx
>> Sent: 1/9/2013 4:05 PM
>> To: jenkins...@googlegroups.com
>>
>> Subject: MSBuild VC++ User settings
>>
>> Hello,
>>
>> Probably more a VS2008 and/or MSBuild question, but I'll ask here anyway
>>
>> I've got a VS2008 VC++ project that I want to build from Jenkins. The
>> trick is, VS2008 wants to store its configuration in a machine / user
>> specific USER file.
>>
>> Is there a way to include a global (any machine / any user) USER file?
>>
>> Regards,
>>
>> Michael
>>
>


Incorrect $rooturl seen in plugin after Tomcat deployment

2013-01-10 Thread Chris Platts
Hi,

I'm currently looking at moving our existing Jenkins installation to a new 
host.  The new deployment uses Tomcat instead of a standalone installation. 
 So, the new site has a URL of hostname.com:9090/jenkins instead of 
hostname:8080

I've started installing our usual set of plugins, one of which is ezWall. 
 After installation, ezWall threw 404 errors stating that it was unable to 
load its .css and .js files. The failing URLs were missing the /jenkins/prefix 
(for example, Chrome's inspector shows URLs like 

http://chur-orp-lnx01:9090/plugin/ezwall/js/require.js

when the resource is actually at

http://chur-orp-lnx01:9090/*jenkins/*plugin/ezwall/js/require.js

I dug through the plugin's source and found code like:

  
  

...which seems to implicate {$rootURL} as the problem.

I'm guessing this is a Jenkins-provided variable -- so why is it missing 
the /jenkins/ part of the path?  The setting *Jenkins URL* is properly set 
to http://chur-orp-lnx01:9090/jenkins/ on the *Configure System* page.

Any help greatly appreciated.  I want to find out what's going on here 
before continuing to deploy the rest of our plugins.

Thanks,
Chris






Re: Obtaining group information for the reverse-proxy-auth-plugin

2013-01-10 Thread Mani
Hi,

I'm also facing the same problem. I tried to implement userdetails service 
in the plugin, but it sends collects the details from ldap for every single 
request that is being sent. Is there any better way of doing it?

Thanks in advance,
Mani

On Tuesday, 18 December 2012 23:37:26 UTC+5:30, aandrulis wrote:
>
> Hi,
> I'm trying the apache auth propagation using the 
> reverse-proxy-auth-plugin. It works for obtaining the user correctly and I 
> can set permissions to the user using any of the Role permissions plugin.
> However that means I would have to create permissions to every user in the 
> system what isn't manageable.
>
> Is it possible to collect the groups the user belong when using the 
> reverse-proxy-auth-plugin?
>
> Thanks in advance.
>
> Regards.
> Adriano
>


Re: notifyCommit master/slave inconsistency

2013-01-10 Thread Manuel Vacelet
I can help myself :)

it was not a issue with notifyCommit but with fast remote polling.
I had 2 git repositories configured for jobs on master and fast remote 
polling only works with 1 repository and 1 branch.

Manuel

On Thursday, January 10, 2013 8:44:09 AM UTC+1, Manuel Vacelet wrote:
>
> Hi there,
>
> I struggle understanding an inconsistency with notifyCommit on my jenkins 
> server (1.498, git plugin 1.1.26).
>
> I try to setup the smart polling using notifyCommit and it works on my 
> slave nodes but not on master.
> On master, each time I curl notifyCommit, jenkins launch a build (of 
> course there was no changes in the repository).
> Note: it might not be a notifyCommit issue because I set a hourly polling 
> and jobs are lauched each hours even when there are no changes (I use fast 
> remote polling).
>
> I don't know what to do and how to debug,  any help ?
>


RE: Job doesn't finish correctly

2013-01-10 Thread adrien ruffie
This is what I did, I will try later with the process maven solution

 

De : jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] 
De la part de Josselin Pierre
Envoyé : jeudi 10 janvier 2013 09:34
À : jenkinsci-users@googlegroups.com
Objet : Re: Job doesn't finish correctly

 

If you launch the maven process using Jenkins's built-in maven support, I don't 
think you could

 

If you launch the maven process from a linux shell, Jenkins should use the exit 
status of the shell as status for the build step ;

you could then manually override the exit status of the shell after the mvn 
command.

I remember doing something like that once, that should do the trick.

 

However, I would recommand to find a way to have your maven process terminate 
correctly. ^^" 

 

2013/1/10 adrien ruffie 

precisely, the problem is that the main starts other processes in the 
background that prevents correct termination without System.exit ()

 

I cannot ignore result termination of my job ?

 

De : jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] 
De la part de Josselin Pierre
Envoyé : jeudi 10 janvier 2013 09:17
À : jenkinsci-users@googlegroups.com
Objet : Re: Job doesn't finish correctly

 

Hi

 

A System.exit() is a pretty brutal wait to terminate a JVM. 

It's more or less equivalent to pulling the plug... 

 

Since the JVM didn't shut down nicely, Jenkins considers it as an error.

 

You usually don't need to specify a System.exit on your code ; the java process 
will end itself at the end of the main.

 

Cheers

 

2013/1/10 adrien ruffie 

Hello all,

 

I have a Job which launch following maven command :

 

mvn  -B -f /var/lib/jenkins/workspace/Master-Jenkins-Packaging/pom.xml 
generate-resources -Pbuilddb-description-all

 

But when I launch this command in one console of my terminal it’s work and 
finish correctly 

 

Done...

 

 

But Jenkins launch this job with the same command line, job doesn’t finish 
correctly:

 

Done...
ERROR: Maven JVM terminated unexpectedly with exit code 0
Finished : FAILURE

 

 

 

 

It’s is very strange, because previous maven command generate a xml file, and 
in twice cases this file is correctly generated,

But it is really annoying that Jenkins job doesn’t correctly finish …

 

Anyone have an idea ? knowing that: this command launch a java main which 
finish at the end of the main System.exit(0) but

Not a return is done in main, this way to end the java main can influence on 
the end of Jenkins jobs ? 

knowing that I haven’t right to modify the way to complete this java main and 
replace System.exit(0) by a return

 

 

Great thank, best regards.

 

Adrien

 

 



Re: Job doesn't finish correctly

2013-01-10 Thread Josselin Pierre
If you launch the maven process using Jenkins's built-in maven support, I
don't think you could

If you launch the maven process from a linux shell, Jenkins should use the
exit status of the shell as status for the build step ;
you could then manually override the exit status of the shell after the mvn
command.
I remember doing something like that once, that should do the trick.

However, I would recommand to find a way to have your maven process
terminate correctly. ^^"


2013/1/10 adrien ruffie 

> precisely, the problem is that the main starts other processes in the
> background that prevents correct termination without System.exit ()
>
> ** **
>
> I cannot ignore result termination of my job ?
>
> ** **
>
> *De :* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *De la part de* Josselin Pierre
> *Envoyé :* jeudi 10 janvier 2013 09:17
> *À :* jenkinsci-users@googlegroups.com
> *Objet :* Re: Job doesn't finish correctly
>
> ** **
>
> Hi
>
> ** **
>
> A System.exit() is a pretty brutal wait to terminate a JVM. 
>
> It's more or less equivalent to pulling the plug... 
>
> ** **
>
> Since the JVM didn't shut down nicely, Jenkins considers it as an error.**
> **
>
> ** **
>
> You usually don't need to specify a System.exit on your code ; the java
> process will end itself at the end of the main.
>
> ** **
>
> Cheers
>
> ** **
>
> 2013/1/10 adrien ruffie 
>
> Hello all,
>
>  
>
> I have a Job which launch following maven command :
>
>  
>
> mvn  -B -f /var/lib/jenkins/workspace/Master-Jenkins-Packaging/pom.xml
> generate-resources -Pbuilddb-description-all
>
>  
>
> But when I launch this command in one console of my terminal it’s work and
> finish correctly 
>
>  
>
> Done...
>
>  
>
>  
>
> But Jenkins launch this job with the same command line, job doesn’t finish
> correctly:
>
>  
>
> Done...
>
> ERROR: Maven JVM terminated unexpectedly with exit code 0
>
> Finished : FAILURE
>
>  
>
>  
>
>  
>
>  
>
> It’s is very strange, because previous maven command generate a xml file,
> and in twice cases this file is correctly generated,
>
> But it is really annoying that Jenkins job doesn’t correctly finish …
>
>  
>
> Anyone have an idea ? knowing that: this command launch a java main which
> finish at the end of the main System.exit(0) but
>
> Not a return is done in main, this way to end the java main can influence
> on the end of Jenkins jobs ? 
>
> knowing that I haven’t right to modify the way to complete this java main
> and replace System.exit(0) by a return
>
>  
>
>  
>
> Great thank, best regards.
>
>  
>
> Adrien
>
> ** **
>


Re: Hudson to Jenkins

2013-01-10 Thread Zoubeïda Zarkouna
hi, 

iam interested too. Please send them to me as well, I would like to migrate from
hudson 2.2 to jenkins.



RE: Job doesn't finish correctly

2013-01-10 Thread adrien ruffie
precisely, the problem is that the main starts other processes in the 
background that prevents correct termination without System.exit ()

 

I cannot ignore result termination of my job ?

 

De : jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] 
De la part de Josselin Pierre
Envoyé : jeudi 10 janvier 2013 09:17
À : jenkinsci-users@googlegroups.com
Objet : Re: Job doesn't finish correctly

 

Hi

 

A System.exit() is a pretty brutal wait to terminate a JVM. 

It's more or less equivalent to pulling the plug... 

 

Since the JVM didn't shut down nicely, Jenkins considers it as an error.

 

You usually don't need to specify a System.exit on your code ; the java process 
will end itself at the end of the main.

 

Cheers

 

2013/1/10 adrien ruffie 

Hello all,

 

I have a Job which launch following maven command :

 

mvn  -B -f /var/lib/jenkins/workspace/Master-Jenkins-Packaging/pom.xml 
generate-resources -Pbuilddb-description-all

 

But when I launch this command in one console of my terminal it’s work and 
finish correctly 

 

Done...

 

 

But Jenkins launch this job with the same command line, job doesn’t finish 
correctly:

 

Done...
ERROR: Maven JVM terminated unexpectedly with exit code 0
Finished : FAILURE

 

 

 

 

It’s is very strange, because previous maven command generate a xml file, and 
in twice cases this file is correctly generated,

But it is really annoying that Jenkins job doesn’t correctly finish …

 

Anyone have an idea ? knowing that: this command launch a java main which 
finish at the end of the main System.exit(0) but

Not a return is done in main, this way to end the java main can influence on 
the end of Jenkins jobs ? 

knowing that I haven’t right to modify the way to complete this java main and 
replace System.exit(0) by a return

 

 

Great thank, best regards.

 

Adrien

 



Re: Job doesn't finish correctly

2013-01-10 Thread Josselin Pierre
Hi

A System.exit() is a pretty brutal wait to terminate a JVM.
It's more or less equivalent to pulling the plug...

Since the JVM didn't shut down nicely, Jenkins considers it as an error.

You usually don't need to specify a System.exit on your code ; the java
process will end itself at the end of the main.

Cheers


2013/1/10 adrien ruffie 

> Hello all,
>
> ** **
>
> I have a Job which launch following maven command :
>
> ** **
>
> mvn  -B -f /var/lib/jenkins/workspace/Master-Jenkins-Packaging/pom.xml
> generate-resources -Pbuilddb-description-all
>
> ** **
>
> But when I launch this command in one console of my terminal it’s work and
> finish correctly 
>
> ** **
>
> Done...
>
> ** **
>
> ** **
>
> But Jenkins launch this job with the same command line, job doesn’t finish
> correctly:
>
> ** **
>
> Done...
>
> ERROR: Maven JVM terminated unexpectedly with exit code 0
>
> Finished : FAILURE
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> It’s is very strange, because previous maven command generate a xml file,
> and in twice cases this file is correctly generated,
>
> But it is really annoying that Jenkins job doesn’t correctly finish …
>
> ** **
>
> Anyone have an idea ? knowing that: this command launch a java main which
> finish at the end of the main System.exit(0) but
>
> Not a return is done in main, this way to end the java main can influence
> on the end of Jenkins jobs ? 
>
> knowing that I haven’t right to modify the way to complete this java main
> and replace System.exit(0) by a return
>
> ** **
>
> ** **
>
> Great thank, best regards.
>
> ** **
>
> Adrien
>


Job doesn't finish correctly

2013-01-10 Thread adrien ruffie
Hello all,

 

I have a Job which launch following maven command :

 

mvn  -B -f /var/lib/jenkins/workspace/Master-Jenkins-Packaging/pom.xml
generate-resources -Pbuilddb-description-all

 

But when I launch this command in one console of my terminal it's work and
finish correctly 

 

Done...

 

 

But Jenkins launch this job with the same command line, job doesn't finish
correctly:

 

Done...
ERROR: Maven JVM terminated unexpectedly with exit code 0
Finished : FAILURE

 

 

 

 

It's is very strange, because previous maven command generate a xml file,
and in twice cases this file is correctly generated,

But it is really annoying that Jenkins job doesn't correctly finish .

 

Anyone have an idea ? knowing that: this command launch a java main which
finish at the end of the main System.exit(0) but

Not a return is done in main, this way to end the java main can influence on
the end of Jenkins jobs ? 

knowing that I haven't right to modify the way to complete this java main
and replace System.exit(0) by a return

 

 

Great thank, best regards.

 

Adrien