Groovy to get Disk space used by build

2014-03-19 Thread Hiteswar
Hi gang ,
Please share if u know any way by groovy to get disk space used(size) by build 
of job.

Thanks for assistance .

Regards
Hiteswar 

Sent from my iPhone

-- 
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: checkout PermGen space error

2014-03-19 Thread 敬錞潘
I just disable some plugin to fix it


-- 
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.


checkout PermGen space error

2014-03-19 Thread 敬錞潘
This is my jenkins build log below:

[8mha:lh+LCP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzOEgYu/dLi1CL9vNKcHACFIKlWvw==[0manonymous
 
啟動
建置中 工作區 /Users/peter/.jenkins/jobs/Test/workspace
Checking out a fresh workspace because there's no workspace at 
/Users/peter/.jenkins/jobs/Test/workspace
Cleaning local Directory .
Checking out *https://202.181.246.196/svn/test/trunk* at revision 
'2014-03-20T11:32:46.435 +0800'
FATAL: PermGen space
FATAL: PermGen space

I don't know how to configure jvm PermGem max size on mac os.
Can anyone help me to know how to do? 
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: SVN Tagging Issue

2014-03-19 Thread Daniel Beck

On 19.03.2014, at 21:38, Daniel Beck  wrote:

> Unfortunately, from reading the code, it looks more like 
> SubversionSCM.DescriptorImpl.createAuthenticationProvider(AbstractProject) 
> would need to pass the project's SubversionSCM to 
> CredentialsSVNAuthenticationProviderImpl.createAuthenticationProvider(Item,SubversionSCM,SubversionSCM.ModuleLocation)
>  get any additional credentials considered.

I was correct. Here's a patch if you know how to compile and install a custom 
build:

https://github.com/daniel-beck/subversion-plugin/commit/c042204e09e87341fb08ff095cf3b873b7dec130

-- 
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.


Looking for tips for profiling CPU and memory use of jobs

2014-03-19 Thread Owen B. Mehegan
I need to add slaves to my Jenkins installation (all Linux), but I 
realized that I really don't know how to spec and configure them for my 
use case. I have about 40 jobs that run one or more times per day, as 
well as 10-20 more jobs that run at least weekly. I don't really know if 
any given job is CPU-bound or memory-bound, so I'm not sure how large of 
an EC2 instance I should use or, more importantly, how many build 
executors I should configure. I gather that the general advice is that 
if you're CPU bound you want roughly one executor for each CPU core, 
whereas if you are memory bound you could run more than that depending 
on how much RAM your slave has.


Given that, it seems like I need to be able to see data on how much CPU 
and memory a given Jenkins job uses while it is running. I haven't found 
a plugin that will give me that, but running top etc while a job runs 
seems like it would be kind of tedious. Anyone have any suggestions 
about this?


--
"He is a dangerous mixture of sophistication and recklessness which 
makes one anxious about his influence on other boys."


--
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: SVN Tagging Issue

2014-03-19 Thread Daniel Beck
Subversion Tagging Plugin reuses the Subversion SCM authentication of the 
project. And Subversion plugin 2.0 changed a lot about that.

There's a chance you just need to add an 'Additional Credential' for the repo. 
It's essentially the same problem as in JENKINS-21785 [1]. Read all the 
comments to that issue to find out what to enter as additional credential.

Unfortunately, from reading the code, it looks more like 
SubversionSCM.DescriptorImpl.createAuthenticationProvider(AbstractProject) 
would need to pass the project's SubversionSCM to 
CredentialsSVNAuthenticationProviderImpl.createAuthenticationProvider(Item,SubversionSCM,SubversionSCM.ModuleLocation)
 get any additional credentials considered.

1: https://issues.jenkins-ci.org/browse/JENKINS-21785

On 10.03.2014, at 23:59, chris.beech  wrote:

> Hi everyone,
> 
> I'm new to Jenkins but am having some problems with the SVN Tagging Plugin 
> that I can't seem to get past.
> 
> I'm trying to tag my build, but am getting the following frustrating error at 
> the end of the build..
> 
> dispmsg:
>  [echo] 18:41:12 Compiling the test classes generated from the CREOLE 
> rule sets...
>  
> server:
>  
> BUILD SUCCESSFUL
> Total time: 9 seconds
> Remote Module Location: http://chrisbeech:81/svn/v6053/trunk@12.
> Tag Base URL: http://chrisbeech:81/svn/v6053/tags/last-successful/Incremental.
> There was no old tag at 
> http://ChrisBeech:81/svn/v6053/tags/last-successful/Incremental.
> Subversion copy failed. svn: E200015: OPTIONS /svn/v6053/trunk failed
> Build step 'Perform Subversion tagging on successful build' marked build as 
> failure
> Finished: SUCCESS
>  
> I have tried googling around this but to no avail, I can't seem to figure out 
> a) what the cause of the problem is or b) how to fix it.
> 
> I'm running Jenkins 1.554 with SVN 2.2 and SVN Tagging Plugin 1.16 , my SVN 
> server is VisualSVN (v2.74) on Windows 7 64bit.
> 
> Everything is the latest and greatest (as far as I can tell) so it's 
> confusing me, any light you can shed on this (or direction you can point me 
> to look) are gratefully appreciated!
> 
> Thanks,
> 
> Chris
> 
> -- 
> 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: Polling Times

2014-03-19 Thread Daniel Beck
Use this: H/10 7-19 * * 1-5

It's essentially parts of these two examples provided in the inline help pasted 
together:
> # every fifteen minutes (perhaps at :07, :22, :37, :52)
> H/15 * * * *
> # once every two hours every weekday (perhaps at 10:38 AM, 12:38 PM, 2:38 PM, 
> 4:38 PM)
> H 9-16/2 * * 1-5

* You specify interval ("steps by intervals of X through the specified range or 
whole valid range"), not repetitions, so it's /10 (every 10 minutes) rather 
than /6 (6 times per hour)
* Not sure what the /1 does (probably redundant), but you get what you want 
without it
* Since you want it to stop at 8pm rather than 9pm, the last execution must 
start at 19:xx, not 20:xx

On 19.03.2014, at 17:12, Andrew Kujtan  wrote:

> I'm trying to set up my SVN polling to run every 10 minutes between 7am and 
> 8pm Monday through Friday, the documentation is a little hard to parse, is 
> the following correct?
>  
> H/6 7-20/1 * * 1-5
>  
> Cheers,
> Andrew Kujtan
> 
> -- 
> 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: The result of the email template testing is different in different web browsers

2014-03-19 Thread Slide
This is VERY odd since all of the processing is done on the server side. Is
it possible that the markup is there, but just not showing up in the other
browsers? Can you look at the source in the browsers that do not work and
see if its in there? Are you doing a plain text email, or html?


On Mon, Mar 17, 2014 at 7:21 PM, Levski Weng  wrote:

> I'm writing a email template in groovy, but when I test the email template
> in
> different browsers(Firefox 27/Opera Next), the testing result is different.
> What I want is to grab the failure cause in another Jenkins plugin called
> Build Failure Analyzer.
>
> The relative email template is attached below:
> -
>
> <%  def foundErrorReason = false
> if (build.result.toString() != 'SUCCESS') { %>
>
> FAILURE CAUSE ANALYSIS
> <%  build.badgeActions.each() {faa -> %>
> <%  if (faa.displayName == 'Failure Cause Management')
> {
> faa.getFoundFailureCauses().each() { ffc
> -> %>
> <%  foundErrorReason = true %>
> ${ffc.getName()}
>
> ${ffc.getDescription()}
> <%  } %>
> <%  } %>
> <%  } %>
> <%  if (!foundErrorReason) { %>
> Cannot identify causes of the failure, please refer to the console log.
> <%  } %>
>
> <%  } %>
> 
> When I test the template in Firefox 27, everything works fine to me and it
> shows the failure cause defined by myself, but the Opera Next tells me it
> cannot find any failure cause.
>
> Also I've tested the email template by putting it into a job and I build
> the
> job in order to trigger the email sending, but when I receive the email,
> the
> email still tells me that it can't find the failure cause.
>
> Could anyone here tell me why?
> Any suggestion will be appreciated.
>
>
>
> --
> View this message in context:
> http://jenkins-ci.361315.n4.nabble.com/The-result-of-the-email-template-testing-is-different-in-different-web-browsers-tp4694979.html
> Sent from the Jenkins users mailing list archive at Nabble.com.
>
> --
> 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.
>



-- 
Website: http://earl-of-code.com

-- 
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.


Google Summer of Code opportunity

2014-03-19 Thread Eduardo Pareja Tobes


Hey everyone

I think this could of interest for people reading this; we (Bio4j) are an 
open source bioinformatics data platform based in AWS and graph databases. 
We have pretty specific (I think) needs for our development, testing and 
release processes, and for this year GSoC we have working on this as one of 
the proposed ideas

   - AWS based Bio4j specific CI 
platform
 

feel free to reach me for more details if interested

-- 
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.


The result of the email template testing is different in different web browsers

2014-03-19 Thread Levski Weng
I'm writing a email template in groovy, but when I test the email template in
different browsers(Firefox 27/Opera Next), the testing result is different.
What I want is to grab the failure cause in another Jenkins plugin called
Build Failure Analyzer.

The relative email template is attached below:
-

<%  def foundErrorReason = false
if (build.result.toString() != 'SUCCESS') { %>

FAILURE CAUSE ANALYSIS
<%  build.badgeActions.each() {faa -> %>
<%  if (faa.displayName == 'Failure Cause Management') { 
faa.getFoundFailureCauses().each() { ffc -> %>
<%  foundErrorReason = true %>
${ffc.getName()}

${ffc.getDescription()}
<%  } %>
<%  } %>
<%  } %>
<%  if (!foundErrorReason) { %>
Cannot identify causes of the failure, please refer to the console log.
<%  } %>

<%  } %>

When I test the template in Firefox 27, everything works fine to me and it
shows the failure cause defined by myself, but the Opera Next tells me it
cannot find any failure cause. 

Also I've tested the email template by putting it into a job and I build the
job in order to trigger the email sending, but when I receive the email, the
email still tells me that it can't find the failure cause.

Could anyone here tell me why? 
Any suggestion will be appreciated.



--
View this message in context: 
http://jenkins-ci.361315.n4.nabble.com/The-result-of-the-email-template-testing-is-different-in-different-web-browsers-tp4694979.html
Sent from the Jenkins users mailing list archive at Nabble.com.

-- 
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.


Splitting a Jenkins job into multiple jobs depending on each other while the same workspace and the artifacts produced by previous jobs

2014-03-19 Thread Daniel P.


Hello,

we have an SVN with a setup like this:

trunk/parent/project_pom.xml
trunk/parent/plugins
trunk/parent/plugins/plugins_pom.xml
trunk/parent/plugins/pluginA
trunk/parent/plugins/pluginB
trunk/parent/tests
trunk/parent/tests/tests_pom.xml
trunk/parent/tests/testPluginA
trunk/parent/tests/testPluginB

Though we have a lot more plugins than the above. We have a project_pom 
with the modules plugins_pom and tests_pom, each of which contain the 
modules of the respective subfolders.

We have a Jenkins job building the whole project which takes very long. So 
we want to split the job into multiple jobs dependent on each other.

First, I would like that each of the split jobs uses the same workspace so 
that we don't have the redundant workspaces floating around. Each job 
should look if there are updates in the SVN, and update if there are any 
changes.

The jobs should be something like "Core Functionality" and "Addon A" and 
"Addon B". Both addon jobs depend on the artifacts the "Core Functionality" 
job creates.
If I want to start the "Core" job, it checks for changes and rebuilds, if 
necessary. If it builds, it puts the produced artifacts somewhere where the 
other jobs can find them.
If I want to start an "Addon" job, it automatically checks if "Core" needs 
to be rebuilt, does so and then looks if the "Addon" needs to be rebuilt 
and does so and stores its artifacts.

Of course, there would have to be some way to discard older versions of 
artifacts as it would certainly clog the system if hundreds of artifacts 
using the same version nr. but a different build number were stored.

The multitude of Jenkins plugins and configuration options somehow 
overwhelms me. Can somebody help me along with this? Is this even possible 
using the current SVN layout?

Regards,

Daniel P.

-- 
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.


SVN Tagging Issue

2014-03-19 Thread chris.beech
Hi everyone,

I'm new to Jenkins but am having some problems with the SVN Tagging Plugin 
that I can't seem to get past. 

I'm trying to tag my build, but am getting the following frustrating error 
at the end of the build..

*dispmsg:*
* [echo] 18:41:12 Compiling the test classes generated from the CREOLE 
rule sets... server: BUILD SUCCESSFULTotal time: 9 seconds*
*Remote Module Location: 
**http://chrisbeech:81/svn/v6053/trunk@12*
*.*
*Tag Base URL: *
*http://chrisbeech:81/svn/v6053/tags/last-successful/Incremental*
*.*
*There was no old tag at *
*http://ChrisBeech:81/svn/v6053/tags/last-successful/Incremental*
*.*
*Subversion copy failed. svn: E200015: OPTIONS /svn/v6053/trunk failed*
*Build step 'Perform Subversion tagging on successful build' marked build 
as failure*
*Finished: SUCCESS*

 
I have tried googling around this but to no avail, I can't seem to figure 
out a) what the cause of the problem is or b) how to fix it.

I'm running Jenkins 1.554 with SVN 2.2 and SVN Tagging Plugin 1.16 , my SVN 
server is VisualSVN (v2.74) on Windows 7 64bit.

Everything is the latest and greatest (as far as I can tell) so it's 
confusing me, any light you can shed on this (or direction you can point me 
to look) are gratefully appreciated!

Thanks,

Chris

-- 
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.


Build stop randamly ERROR: Failed to parse POMs

2014-03-19 Thread Paraparan Srishanmugaraja
Hi, 

I run Jenkins in a machine and run Jenkins agent another machine. I 
connected through ssh. I got below exception in the randomly. 

Please advise. Thanks in advance 

ERROR: Failed to parse POMs 
hudson.remoting.
ChannelClosedException: channel is already closed 
at hudson.remoting.Channel.send(Channel.java:516) 
at hudson.remoting.Request.call(Request.java:129) 
at hudson.remoting.Channel.call(Channel.java:714) 
at 
hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:167)
 

at sun.proxy.$Proxy57.isAlive(Unknown Source) 
at 
hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:930) 
at 
hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:165) 
at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:823)
 

at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562) 

at hudson.model.Run.execute(Run.java:1665) 
at 
hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509) 
at 
hudson.model.ResourceController.execute(ResourceController.java:88) 
at hudson.model.Executor.run(Executor.java:230) 
Caused by: java.io.IOException: Unexpected termination of the channel 
at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50)
 

Caused by: java.io.EOFException 
at 
java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2595)
 

at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1315) 
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369) 
at hudson.remoting.Command.readFrom(Command.java:92) 
at 
hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:71) 

at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
 

FATAL: channel is already closed 
hudson.remoting.ChannelClosedException: channel is already closed 
at hudson.remoting.Channel.send(Channel.java:516) 
at hudson.remoting.Request.call(Request.java:129) 
at hudson.remoting.Channel.call(Channel.java:714) 
at hudson.Launcher$RemoteLauncher.kill(Launcher.java:887) 
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:585) 

at hudson.model.Run.execute(Run.java:1665) 
at 
hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509) 
at 
hudson.model.ResourceController.execute(ResourceController.java:88) 
at hudson.model.Executor.run(Executor.java:230) 
Caused by: java.io.IOException: Unexpected termination of the channel 
at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50)
 

Caused by: java.io.EOFException 
at 
java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2595)
 

at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1315) 
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369) 
at hudson.remoting.Command.readFrom(Command.java:92) 
at 
hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:71) 

at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
 

-- 
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.


Polling Times

2014-03-19 Thread Andrew Kujtan
I'm trying to set up my SVN polling to run every 10 minutes between 7am
and 8pm Monday through Friday, the documentation is a little hard to
parse, is the following correct?

 

H/6 7-20/1 * * 1-5

 

Cheers,

Andrew Kujtan

-- 
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.


Jenkins Plugin - Icon shown multiple times when implementing ProminentProjectAction

2014-03-19 Thread Fabio Douek
Hi,

I wrote a Jenkins plugin, which has a class which implements 
ProminentProjectAction.
I'm returning the path to the icon in the public String getIconFileName() 
method.

Everything works as expected when there is one Build step.
However, if I specify 3 build steps using my Plugin, the icon is shown in 
the Jenkins console 3 times on the top.
I was wondering if it's possible to limit to only one icon. I looked into 
the APIs, but I couldn't find anything in the documentation, or in the 
source code to resolve this issue.

Regards,
Fabio.

-- 
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 OutOfMemory since recent upgrade

2014-03-19 Thread Simon Groenewolt
hi MoBarger

On Tuesday, March 18, 2014 7:23:20 PM UTC+1, MoBarger wrote:
>
> This happened to me. I had to disable the disk usage plugin. 
> Also you need to go to Manage Jenkins, clean old data to remove its 
> entries from the job config files. 
>

Thanks for your reply.

I've checked my installed plugins but we don't have that plugin installed. 
Also Manage Old Data shows there is no old data.

So it has to be something else.

Current situation: I've disabled a lot of the projects (now down to 30), 
and changed the SVN polling interval of most of the projects to once every 
30 minutes (they were on once every 5 minutes) and changed heap size to 
1500m. Now Jenkins can at least stay up longer, it has been running for 1,5 
hours now with a heap usage of about 500MB (after manual GC trigger)

  Simon 

-- 
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: can't startup Jenkins

2014-03-19 Thread Richard Bywater
Re Q2, looks like the port is in use. Do you perhaps have Jenkins set to
autostart when you boot your computer? Either that or some other
application has grabbed it.

Richard.


On Wed, Mar 19, 2014 at 9:40 PM, 敬錞潘  wrote:

> I can startup Jenkins yesterday ,
> and it can auto build my project
> (but xcodebuild fail always,this is another problem,i want to fix it later)
>
> Today morning I install Tap plugin&TestFlight plugin
>
> and add a Tap & TestFlight setting in my project configuration,
> Jenkins checkout new one version again then auto build,
> build failed
> Upload to Testflight fail ...
> Parsing TAP test result fail...
> then it don't finish the build,it start to hang up
>
>
> I don't know how to setup TAP pattern,
> Based on my observation,
> TAP plugin will process all file to Parsing TAP test result,
> but it should only process .TAP file
> Q1:how to fill in TAP pattern field in Jenkins?
>
> I reboot my computer,
> then I execute this command below:
> java -jar jenkins.war
> Output:
> Running from: /Applications/jenkins.war
> webroot: $user.home/.jenkins
> 2014/3/19 ?U?? 04:15:35 org.eclipse.jetty.util.log.JavaUtilLog info
> ??T: jetty-8.y.z-SNAPSHOT
> 2014/3/19 ?U?? 04:15:35 org.eclipse.jetty.util.log.JavaUtilLog info
> ??T: Extract jar:file:/Applications/jenkins.war!/ to
> /private/var/folders/5c/h9rryxsj2p79kbvdms9dhc4cgn/T/jetty-0.0.0.0-8080-jenkins.war--any-/webapp
> 2014/3/19 ?U?? 04:15:39 org.eclipse.jetty.util.log.JavaUtilLog info
> ??T: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
> Jenkins home directory: /Users/peter/.jenkins found at: $user.home/.jenkins
> 2014/3/19 ?U?? 04:15:40 org.eclipse.jetty.util.log.JavaUtilLog warn
> ĵ?i: FAILED SelectChannelConnector@0.0.0.0:8080: java.net.BindException:
> Address already in use
> java.net.BindException: Address already in use
> at sun.nio.ch.Net.bind(Native Method)
> at
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
> at
> org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:187)
> at
> org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)
> at
> org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:265)
> at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
> at org.eclipse.jetty.server.Server.doStart(Server.java:293)
> at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
> at winstone.Launcher.(Launcher.java:154)
> at winstone.Launcher.main(Launcher.java:354)
> 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 Main._main(Main.java:293)
> at Main.main(Main.java:98)
> 2014/3/19 ?U?? 04:15:40 org.eclipse.jetty.util.log.JavaUtilLog warn
> ĵ?i: FAILED org.eclipse.jetty.server.Server@524c71d2:
> java.net.BindException: Address already in use
> java.net.BindException: Address already in use
> at sun.nio.ch.Net.bind(Native Method)
> at
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
> at
> org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:187)
> at
> org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)
> at
> org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:265)
> at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
> at org.eclipse.jetty.server.Server.doStart(Server.java:293)
> at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
> at winstone.Launcher.(Launcher.java:154)
> at winstone.Launcher.main(Launcher.java:354)
> 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 Main._main(Main.java:293)
> at Main.main(Main.java:98)
> 2014/3/19 ?U?? 04:15:40 org.eclipse.jetty.util.log.JavaUtilLog info
> ??T: stopped
> w.{,file:/private/var/folders/5c/h9rryxsj2p79kbvdms9dhc4cgn/T/jetty-0.0.0.0-8080-jenkins.war--any-/webapp/},/Applications/jenkins.war
> 2014/3/19 ?U?? 04:15:41 winstone.Logger logInternal
> ??T: Winstone shutdown successfully
> 2014/3/19 ?U?? 04:15:41 winstone.Logger logInternal
> ?Y: Container startup failed
> java.io.IOException: Failed to start Jetty

can't startup Jenkins

2014-03-19 Thread 敬錞潘
I can startup Jenkins yesterday ,
and it can auto build my project
(but xcodebuild fail always,this is another problem,i want to fix it later)

Today morning I install Tap plugin&TestFlight plugin

and add a Tap & TestFlight setting in my project configuration,
Jenkins checkout new one version again then auto build,
build failed
Upload to Testflight fail ...
Parsing TAP test result fail...
then it don't finish the build,it start to hang up


I don't know how to setup TAP pattern,
Based on my observation,
TAP plugin will process all file to Parsing TAP test result,
but it should only process .TAP file
Q1:how to fill in TAP pattern field in Jenkins?

I reboot my computer,
then I execute this command below:
java -jar jenkins.war
Output:
Running from: /Applications/jenkins.war
webroot: $user.home/.jenkins
2014/3/19 ?U?? 04:15:35 org.eclipse.jetty.util.log.JavaUtilLog info
??T: jetty-8.y.z-SNAPSHOT
2014/3/19 ?U?? 04:15:35 org.eclipse.jetty.util.log.JavaUtilLog info
??T: Extract jar:file:/Applications/jenkins.war!/ to 
/private/var/folders/5c/h9rryxsj2p79kbvdms9dhc4cgn/T/jetty-0.0.0.0-8080-jenkins.war--any-/webapp
2014/3/19 ?U?? 04:15:39 org.eclipse.jetty.util.log.JavaUtilLog info
??T: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
Jenkins home directory: /Users/peter/.jenkins found at: $user.home/.jenkins
2014/3/19 ?U?? 04:15:40 org.eclipse.jetty.util.log.JavaUtilLog warn
ĵ?i: FAILED SelectChannelConnector@0.0.0.0:8080: java.net.BindException: 
Address already in use
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at 
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at 
org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:187)
at 
org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)
at 
org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:265)
at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.Server.doStart(Server.java:293)
at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at winstone.Launcher.(Launcher.java:154)
at winstone.Launcher.main(Launcher.java:354)
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 Main._main(Main.java:293)
at Main.main(Main.java:98)
2014/3/19 ?U?? 04:15:40 org.eclipse.jetty.util.log.JavaUtilLog warn
ĵ?i: FAILED org.eclipse.jetty.server.Server@524c71d2: 
java.net.BindException: Address already in use
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at 
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at 
org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:187)
at 
org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)
at 
org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:265)
at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.Server.doStart(Server.java:293)
at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at winstone.Launcher.(Launcher.java:154)
at winstone.Launcher.main(Launcher.java:354)
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 Main._main(Main.java:293)
at Main.main(Main.java:98)
2014/3/19 ?U?? 04:15:40 org.eclipse.jetty.util.log.JavaUtilLog info
??T: stopped 
w.{,file:/private/var/folders/5c/h9rryxsj2p79kbvdms9dhc4cgn/T/jetty-0.0.0.0-8080-jenkins.war--any-/webapp/},/Applications/jenkins.war
2014/3/19 ?U?? 04:15:41 winstone.Logger logInternal
??T: Winstone shutdown successfully
2014/3/19 ?U?? 04:15:41 winstone.Logger logInternal
?Y: Container startup failed
java.io.IOException: Failed to start Jetty
at winstone.Launcher.(Launcher.java:156)
at winstone.Launcher.main(Launcher.java:354)
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)
 

Re: Using Containers (pros / cons)

2014-03-19 Thread Baptiste Mathus
As Jenkins now actually embeds jetty, I would say go the simplest way:
start with java -jar Jenkins.war (10+ slaves).

But it also depends what you're used to, sure. For example, if you have
good internal experience operating tomcat, running Jenkins inside tomcat
would certainly still be a sensible choice for you.

Cheers
Le 18 mars 2014 08:50, "Kake"  a écrit :

> Hi
>
>
>
> I'm in the process of migrating some Jenkins installations from old 2003
> servers to some newer ones.
>
> The old setup uses jetty and some intricate java wrapper to start each
> instance.
>
>
>
> I.e. the Jetty home is installed on one “location” and the Jenkins home
> directory is located in a different folder/dir. There is a one-one ratio
> between the jetty “installs” and the Jenkins instances.
>
>
>
> Setup: 5+ Jenkins Instances, each instance 20- 50 jobs. (win 2008 server)
>
>
>
> Question:  What’s the “best practices” when configuring such an
> environment, use container or not?
>
> --
> 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: How do I persist changes to the model made via a Groovy script to disk?

2014-03-19 Thread Baptiste Mathus
+1 having both tried the javadoc and ide path in the past, I recommend by
far the ide.
Discovering code and possibilities through javadoc solely proves terribly
cumbersome.
Cheers
Le 17 mars 2014 00:11, "Richard Lavoie"  a écrit :

> The IDE is the best way because of the inter class easy navigation and the
> fact that source code is often submitted along with binaries in macen.
>
> You could also just look at the javadocs but I don't think it's published
> online. It is available through maven though.
>
> Going from the source with IDE is the easiest path.
>
> Richard Lavoie
>
> On 2014-03-16, at 16:42, Christian Goetze <
> christian.goe...@appdynamics.com> wrote:
>
> What is the best way to discover all these nice things one could do...? Do
> I really need to fire up an IDE and explore the source?
>
>
> On Sun, Mar 16, 2014 at 1:41 PM, Christian Goetze <
> christian.goe...@appdynamics.com> wrote:
>
>> Thank you - that appears to work.
>>
>>
>> On Sun, Mar 16, 2014 at 1:37 PM, Richard Lavoie > > wrote:
>>
>>> Have you tried hudson.model.Hudson.instance.save() ?
>>>
>>>
>>> On Sun, Mar 16, 2014 at 4:07 PM, Christian Goetze <
>>> christian.goe...@appdynamics.com> wrote:
>>>
 I recently learned that I can use the script console to run groovy
 scripts to modify items in the model.

 Specifically, I would like to add, change and remove slave node labels
 via a script.

 I can make a script like this for example:

 hudson.model.Hudson.instance.slaves.each { slave ->
   out.print("Slave  $slave.nodeName : Labels: $slave.labelString")
   slave.setLabelString(slave.labelString + " " + "operational")
   out.println("   --> New labels: $slave.labelString")}

 Now how do I persist this change to disk?

  --
 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.

>>>
>>>
>>>
>>> --
>>> Richard Lavoie
>>> IT consultant / consultant en informatique
>>>
>>> --
>>> 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/epL30VXvXC4/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.
>
>  --
> 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.