Re: Copy/Replicate jobs in Hudson - How - Quick question

2012-11-13 Thread Mahesh kalase
Hi,

All you need to do is just follow the below steps.

1. Stop your new Jenkins server  backup the contents your interested in.
2. Copy the contents of conf directory from your current Jenkins server 
to the new server.
3. Copy the contents of jobs directory from your current Jenkins server 
to the new server.
4. Make sure the permissions of all the newly copied files match the 
required criteria on the new Jenkins server.
5. Copy all the required *.xml files(plugin specific) from your current 
Jenkins server to the new server.
6. Start your new jenkins server.

You should be able to see the all the old jobs back on your new Jenkins 
server.
Just need to trigger the jobs once to get them back to life on new Jenkins 
server.

On Thursday, November 8, 2012 6:57:23 PM UTC, zw wrote:

 Hi All 

 We have a long list of jobs that we like to copy/replicate over to a 
 new Hudson server. 
 Are the steps/documents that we could follow to help us accomplish that ? 

 Reconfigure jobs by hand is too prone to mistakes. 

 Thanks 



RE: Problems with Authorization configuration . . .

2012-11-13 Thread Mandeville, Rob
I can't find the issue number or the part of the change log that speaks to it, 
but I've had this problem.  This was fixed in the past couple of months 
(somewhere...), so upgrading Jenkins will fix this, if you're willing to do 
Latest and Greatest rather than long-term support release.

--Rob

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Merrow, Frank
Sent: Monday, November 12, 2012 7:36 PM
To: jenkinsci-users@googlegroups.com
Cc: fmer...@san.rr.com (fmer...@san.rr.com)
Subject: Problems with Authorization configuration . . .

We have a number of Jenkins here and I've seen this issue repeatedly . . .

I have seen this issue BOTH with Logged-in users can do anything and I have 
also seen it with Project-based Matrix Authorization Strategy where 
Anonymous has Overall/Read, Job/Read and View/Read.

The issue is that a logged out user see's broken ICONS (logged in users work 
fine):

[cid:image001.png@01CDC0EF.E85D7C90]

While annoying, the really hard part for user's to deal with is that 
additionally, in this mode, the login button disappears:

[cid:image002.png@01CDC0EF.E85D7C90]

The login button is there and if you blindly stab at it you can bring up the 
login screen . . . but that isn't an obvious choice for first time users.

Ah, but there is more . . . I have a work around, but it makes no sense . . .

Since I didn't see anything like this in the Jenkins JIRA tickets, I figured I 
just had things configured incorrectly, so one day I sat down and started 
turning on Matrix options to Anonymous one-by-one . . . I figured eventually 
I'd find the right combination that would make it work.  I started from the 
right, added a permission, logged out, logged in, then added another 
permission, logged out . . . kept doing this until it worked . . .

This problem was that the ICONs didn't work logged out unless I gave 
Anonymous Admin . . . clearly not a good choice.

HOWEVER, the really odd thing was that once I gave Anonymous Admin, I could 
take AWAY everything except the three Read permissions (the ones I started 
with) and it would continue to work! (???)

So that is what I've done to fix around 10 systems now . . . I give Anonymous 
Admin, log out, log in and take it away . . . from then on it works fine.

The really odd thing is that this solution even works for Logged-in users can 
do anything . . . except in that case I have to convert to Project Matrix . . 
. give Anonymous Admin, take it away and then go back to Logged-in users can 
do anything . . . if fix will remain fixed.

It is nice that I have a work around . . . but I just cannot figure out why is 
happens and since I don't see anything in Jenkins JIRA, why does it only seem 
to happen here?

Any ideas?

Frank

P.S. As a side issue . . . we WANT user's to be able to see the status of jobs 
before they log in if they want too . . . another work around is to just 
remove the three Read Permissions from Anonymous.  In this case, the user sees 
ONLY a login screen and that works fine except it doesn't allow them to see 
anything . . . we WANT them to be able to look at their jobs without logging in.

P.S.S. For those who might responsed this is a browser caching issue . . . I've 
tested all of that . . . clearing the cache will NOT fix the issue.


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.
inline: image001.pnginline: image002.png

Re: Why jenkins restart every day?

2012-11-13 Thread Gaetan
Hello

I can confirm it was coming from the thinBackup plugin. Thanks a lot !

-
Gaetan




2012/11/2 Eric Pyle eric.p...@tomtom.com

  I have also seen our Jenkins get stuck in “Jenkins is going to shut
 down” mode, and it appears to be caused by the thin-backup plugin trying to
 begin a backup while a long-running job is running. The best solution seems
 to be to schedule nightly backups to run before starting any long-running
 jobs in the evening or overnight hours.

 ** **

 Regards,

 Eric

 ** **

 *From:* jenkinsci-users@googlegroups.com [mailto:
 jenkinsci-users@googlegroups.com] *On Behalf Of *Gaetan
 *Sent:* Tuesday, October 30, 2012 10:43 AM
 *To:* jenkinsci-users@googlegroups.com
 *Subject:* Re: Why jenkins restart every day?

 ** **

 Hello

 ** **

 Thanks for your quick answsers!

 ** **

 Here are mine :

 - Latest Jenkins, using Linux standalone service (init.d). I'm under
 latest ubuntu 12.10

 - I have the exclusive execution  plugin installed but I don't use it. I'm
 disabling it right now

 - which backup plugin are you talking about? I'm using Backup plugin,
 but since it doesn't seem to do the job, I'm also disabling it.

 ** **

 Regards,

 -
 Gaetan



 

 2012/10/30 Larry Shatzer, Jr. lar...@gmail.com

 Are you running your job with this plugin:
 https://wiki.jenkins-ci.org/display/JENKINS/Exclusive+Execution+Plugin?
 It will prevent other jobs from running, and the way it does that is to put
 it into shutdown mode so no other jobs run at the same time.

 ** **

 On Tue, Oct 30, 2012 at 4:04 AM, Gaetan gae...@xeberon.net wrote:

 Hello

 ** **

 My Jenkins installation want to restart everyday and and i don't find why.
 

 ** **

 I have a nightly test job that run for at least 15 hours, and when it is
 underway, jenkins switch to Jenkins is going to shutdown job, so it
 doesn't accept jobs. If I cancel it, some job can be started but it switch
 back to this shutdown mode.

 ** **

 I don't do jenkins update every day, so I don't see why it always wants to
 restart.

 ** **

 Any idea?

 Many thanks!
 -
 Gaetan

 

 ** **

 ** **



Eamil-ext plugin add text to msg

2012-11-13 Thread Sven Finsterwalder
Hi,

how can add text to the email that will be send.

 msg - the MimeMessage object which can be modified

I try it with the pre-send script, but it does not work :-(
Please give me an example code line.

Thanks


Re: Automatic diagram

2012-11-13 Thread Stefan Wolf
Hi all,

I just released a new version of 
the https://wiki.jenkins-ci.org/display/JENKINS/Dependency+Graph+View+Plugin
It includes an experimental visualisation via jsPlumb based on domis work. 
Please give me feedback how to improve the javascript visualisation and the 
plugin in general. Feature and Pull requests are welcome.

Best regards,
Stefan

On Wednesday, September 5, 2012 4:14:20 AM UTC-3, kikou wrote:

 Hi all

 Is there any plugin which draw automatically a diagram showing the job 
 sequence ?
 So that it is more easy to show to some people the 

 i dont like the format of pipeline view and it is more to show the result 
 of last builds than the sequence.


 Rgds
 K.



Re: Eamil-ext plugin add text to msg

2012-11-13 Thread Slide
Please show your code.


On Tue, Nov 13, 2012 at 8:01 AM, Sven Finsterwalder sab...@gmail.comwrote:

 Hi,

 how can add text to the email that will be send.

 msg - the MimeMessage object which can be modified

 I try it with the pre-send script, but it does not work :-(
 Please give me an example code line.

 Thanks




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


New release of Dependency Graph View Plugin with experimental Javascript visualisation

2012-11-13 Thread Stefan Wolf
Hi together,

I just released a new version of 
the https://wiki.jenkins-ci.org/display/JENKINS/Dependency+Graph+View+Plugin.
This version includes an experimental visualisation via jsPlumb based on 
work by domi. Since I am pretty new to javascript it would be very helpful 
to get some feedback on this functionally, both from end-users and from 
developers.
So please send your comments, feature and pull requests!

Best regards,
Stefan


Perforce Plugin - Workspace root folder always overwritten to C:\Program Files (x86)\Jenkins\jobs\JobName\workspace

2012-11-13 Thread Stephen Tunney
In the end, this is just annoying, but I have two separate volumes on my 
build machine.  80GB volume for OS and framework build binaries (VC++ 
runtime, SDKs, etc.) and
a separate volume for source code, build artifacts, etc.

I would like to have Jenkins use a path such as 
L:\jenkins\JobName\workspace and have it properly update the Perforce 
workspace.

L:\Jenkins == Would be some kind of variable set per slave jenkins build 
machine
JobName == Obviously :)
workspace == Could be any variation of a relative path to tack onto the 
end of the former pieces (ex. builds\p4workspace\1\etc\etc\etc)\

Can this easily be done with the Perforce plugin, or am I barking up the 
wrong tree?

Regards,
Stephen


Re: Perforce Plugin - Workspace root folder always overwritten to C:\Program Files (x86)\Jenkins\jobs\JobName\workspace

2012-11-13 Thread cjo
You can easily move the workspace of the jobs,

On slaves, this is just setting the Remote FS root for the slave, and the 
workspaces will be created under that. (yourserver:port
/computer/slave/configure)

On Master you can configure workspace to use a different directory to that 
of Jenkins home. Workspace Root Directory under the Advanced section of 
configure jenkins page yourserver:port/configure

You can also relocate the builds records/artifacts using the other option 
in this section if required.



On Tuesday, November 13, 2012 3:59:58 PM UTC, Stephen Tunney wrote:

 In the end, this is just annoying, but I have two separate volumes on my 
 build machine.  80GB volume for OS and framework build binaries (VC++ 
 runtime, SDKs, etc.) and
 a separate volume for source code, build artifacts, etc.

 I would like to have Jenkins use a path such as 
 L:\jenkins\JobName\workspace and have it properly update the Perforce 
 workspace.

 L:\Jenkins == Would be some kind of variable set per slave jenkins build 
 machine
 JobName == Obviously :)
 workspace == Could be any variation of a relative path to tack onto the 
 end of the former pieces (ex. builds\p4workspace\1\etc\etc\etc)\

 Can this easily be done with the Perforce plugin, or am I barking up the 
 wrong tree?

 Regards,
 Stephen



Re: Jenkins failing to auto install JDK when JENKINS_HOME is pointing to a newly created volume/filesystem

2012-11-13 Thread Fábio Uechi


This is the exception I'm getting:



Building in workspace /jenkins/workspace/teste
Installing JDK jdk-6u34-oth-JPR
Downloading JDK from 
http://download.oracle.com/otn/java/jdk/6u34-b04/jdk-6u34-linux-x64.bin
Downloading 72036348bytes

Installing /jenkins/tools/JDK/1.6.34/jdk.sh
[1.6.34] $ /jenkins/tools/JDK/1.6.34/jdk.sh -noregister
FATAL: command execution failedjava.io.IOException 
http://stacktrace.jenkins-ci.org/search?query=java.io.IOException: Cannot run 
program /jenkins/tools/JDK/1.6.34/jdk.sh (in directory 
/jenkins/tools/JDK/1.6.34): java.io.IOException: error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) 
http://stacktrace.jenkins-ci.org/search/?query=java.lang.ProcessBuilder.startentity=method
at hudson.Proc$LocalProc.init(Proc.java:244) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.Proc$LocalProc.%3Cinit%3Eentity=method
at hudson.Proc$LocalProc.init(Proc.java:216) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.Proc$LocalProc.%3Cinit%3Eentity=method
at hudson.Launcher$LocalLauncher.launch(Launcher.java:763) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.Launcher$LocalLauncher.launchentity=method
at hudson.Launcher$ProcStarter.start(Launcher.java:346) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.Launcher$ProcStarter.startentity=method
at hudson.Launcher$ProcStarter.join(Launcher.java:353) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.Launcher$ProcStarter.joinentity=method
at hudson.tools.JDKInstaller.install(JDKInstaller.java:185) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.tools.JDKInstaller.installentity=method
at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:132) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.tools.JDKInstaller.performInstallationentity=method
at 
hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.tools.InstallerTranslator.getToolHomeentity=method
at 
hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107)
 
http://stacktrace.jenkins-ci.org/search/?query=hudson.tools.ToolLocationNodeProperty.getToolHomeentity=method
at 
hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:203) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.tools.ToolInstallation.translateForentity=method
at hudson.model.JDK.forNode(JDK.java:122) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.JDK.forNodeentity=method
at 
hudson.model.AbstractProject.getEnvironment(AbstractProject.java:311) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractProject.getEnvironmententity=method
at hudson.model.Run.getEnvironment(Run.java:1965) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.getEnvironmententity=method
at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:930) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild.getEnvironmententity=method
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:75) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.CommandInterpreter.performentity=method
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:58) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.CommandInterpreter.performentity=method
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.BuildStepMonitor$1.performentity=method
at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.performentity=method
at hudson.model.Build$BuildExecution.build(Build.java:199) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Build$BuildExecution.buildentity=method
at hudson.model.Build$BuildExecution.doRun(Build.java:160) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Build$BuildExecution.doRunentity=method
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.runentity=method
at hudson.model.Run.execute(Run.java:1516) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.executeentity=method
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.runentity=method
at hudson.model.ResourceController.execute(ResourceController.java:88) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.executeentity=method
at hudson.model.Executor.run(Executor.java:236) 

Re: Build Flow Plugin: No signature of method FlowDelegate.parallel()

2012-11-13 Thread r2_
Woops.  Thanks a lot, Nicolas, using the closure fixed my issue.

parallel (
  {build(agile_code, ENVIRONMENT: params[ENVIRONMENT], ACTION: 
params[ACTION])},
  {build(agile_db,   ENVIRONMENT: params[ENVIRONMENT], ACTION: 
params[ACTION])}
)

On Saturday, November 10, 2012 9:28:18 AM UTC-5, Nicolas De loof wrote:

 parallel expect a set of closures, each closure being ran in a separate 
 thread :

 parallel( { build(A) },
 { build(B) } 
 )


 2012/11/9 r2_ rle...@dailyvoice.com javascript:

 Hey, I got a really cool looking error using Build Flow Plugin.  The flow 
 is just 2 parameterized jobs which should run in parallel on different 
 nodes.  Here's the DSL:

 parallel (
   build(agile_code, ENVIRONMENT: params[ENVIRONMENT], ACTION: 
 params[ACTION]),
   build(agile_db,   ENVIRONMENT: params[ENVIRONMENT], ACTION: 
 params[ACTION])
 )

 Unfortunately, the jobs run serially.  Jenkins is v1.487, Build Flow 
 Plugin is v0.5.  Stacktrace is below.  

 Apologies if I'm just plain doing this wrong.  Is there a better way to 
 run parallel jobs or a better way to use this module?  Thanks!

 

 Started by user anonymous https://alpha.n-ws.org/jenkins/user/null
 Building remotely on delta https://alpha.n-ws.org/jenkins/computer/delta 
 in workspace /var/lib/jenkins/workspace/test_create_environment_flow
 Trigger job agile_code 
 https://alpha.n-ws.org/jenkins/job/agile_code/agile_code #11 
 https://alpha.n-ws.org/jenkins/job/agile_code/11/ completed
 Trigger job agile_db https://alpha.n-ws.org/jenkins/job/agile_db/agile_db 
 #7 https://alpha.n-ws.org/jenkins/job/agile_db/7/ completed
 FATAL: No signature of method: 
 com.cloudbees.plugins.flow.FlowDelegate.parallel() is applicable for 
 argument types: (com.cloudbees.plugins.flow.JobInvocation, 
 com.cloudbees.plugins.flow.JobInvocation) values: [running job :agile_code, 
 running job :agile_db]
 Possible solutions: parallel([Lgroovy.lang.Closure;), 
 parallel(java.util.Collection)groovy.lang.MissingMethodException 
 http://stacktrace.jenkins-ci.org/search?query=groovy.lang.MissingMethodException:
  No signature of method: com.cloudbees.plugins.flow.FlowDelegate.parallel() 
 is applicable for argument types: (com.cloudbees.plugins.flow.JobInvocation, 
 com.cloudbees.plugins.flow.JobInvocation) values: [running job :agile_code, 
 running job :agile_db]
 Possible solutions: parallel([Lgroovy.lang.Closure;), 
 parallel(java.util.Collection)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at 
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
  at 
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
  at 
 org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
  at 
 org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)
  at 
 org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:198)
  at 
 com.cloudbees.plugins.flow.FlowDelegate.methodMissing(FlowDSL.groovy:235)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:616)
  at 
 org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
  at groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:811)
  at 
 groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1103)
  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1056)
  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:704)
  at com.cloudbees.plugins.flow.FlowDelegate.invokeMethod(FlowDSL.groovy)
  at 
 org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeOnDelegationObjects(ClosureMetaClass.java:407)
  at 
 org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:348)
  at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
  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:145)
  at Script1$_run_closure1.doCall(Script1.groovy:3)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
 

Re: Jenkins failing to auto install JDK when JENKINS_HOME is pointing to a newly created volume/filesystem

2012-11-13 Thread Fábio Uechi
Found it! 
There was a problem in the fstab entry which was responsible for mounting 
the partition. 
I was using *noexec* instead of *exec.*
Just had to change this:

*/dev/vg0/jenkins /jenkins ext4 defaults,auto,noatime,noexec 0 0*
*
*
for this:
*
*
*/dev/vg0/jenkins /jenkins ext4 defaults,auto,noatime,exec 0 0**
*
*
*
Living and learning!
Thanks for everybody who tried to help!


passing parameters to maven build

2012-11-13 Thread Levin, Ilya
Hello,

I have created a maven build project, in the Goals and Options section I have:
` install  -P some profile -Dproperty=VALUE`

VALUE is something I need to calculate in a shell script, what is the best way 
to pass it to maven (to the Goals and Options line).


Thanks,
ilya


Re: passing parameters to maven build

2012-11-13 Thread Fábio Uechi
I can thing of two ways:

1) property file or
2) environment variable



On Tuesday, November 13, 2012 5:15:55 PM UTC-2, Levin, Ilya wrote:

  Hello,

  

 I have created a maven build project, in the Goals and Options section I 
 have: 

 ` install  -P some profile -Dproperty=VALUE`

  

 VALUE is something I need to calculate in a shell script, what is the best 
 way to pass it to maven (to the Goals and Options line).

  

  

 Thanks,

 ilya
  


Shelve Project - Waiting for next available executor

2012-11-13 Thread VFloyd
Hi All,
I have just installed the Shelve Project Plugin.  Whenever I try to shelve 
a project it just sits in the Build Queue with the msg Waiting for next 
available executor.  There is nothing running on any of the build servers. 
Outside of clicking into the project and choosing Shelve Project from the 
left hand menu and then clicking on the Shelve Project button after that, 
what do I need to do to get this to work?

Any info is appreciated.



Wanted: HOWTO write Dashboard portlets

2012-11-13 Thread Glfk4rt
I tried Googling for a HOWTO without luck. (yes, I did google first :P )

Our development would like more customization on our Dashboard.  Is there a
portlet development FAQ?

Rodney


New project failure

2012-11-13 Thread Amad
Hello all,

I am new to Jenkins. Following the steps in chapter 5 of the manual to 
configure a build. 

I've specified my SVN repo as shown below but Jenkins gives the following 
message when I save the project. The path is valid.

svn://x.x.x.x/trunk/diamond/src

 /trunk/diamond/src doesn't exist in the repository

SVN 1.7.6
Jenkins 1.484


Re: how to make windows batch command shell continue run after start up another program.

2012-11-13 Thread clintthomas
I am dealing with a similar issue, did you ever get the answer/solution to
this?



--
View this message in context: 
http://jenkins.361315.n4.nabble.com/how-to-make-windows-batch-command-shell-continue-run-after-start-up-another-program-tp4635941p4646041.html
Sent from the Jenkins users mailing list archive at Nabble.com.


Re: Companies using Jenkins?

2012-11-13 Thread John Zhang
I am working in the Oslo office of WesternGeco, Schlumberger. Our project 
has been using Jenkins as our CI system. It is really good!
We don't have a public site for this. But you can access the public site 
http://www.slb.com/westerngeco.aspx. Basically, we are developing a marine 
seismic software system.
 

 Am Sonntag, 4. September 2011 16:57:45 UTC+2 schrieb Christopher Orr: 

 Hi all, 

 I added some hierarchy to the Who's using Jenkins page here, including 
 a Companies section:
 https://wiki.jenkins-ci.org/pages/viewpage.action?pageId=58001258

 However, that section is pretty sparse.  I'm sure we can change that!

 There are a number of big names mentioned in Kohsuke's JavaOne talk in 
 2009.  Any idea how many of these are still accurate?
 http://www.slideshare.net/haochenglee/hudson-ci/8

 So, who out there is using Jenkins?  Let us know!

 The Jenkins instance doesn't need to be publicly visible, but a link to 
 the source would be nice, e.g. a presentation, article, mailing list 
 post etc..

 Anyone with an account can add info to the wiki page, but I will also 
 try to add any info myself if people care to post info/links here :)

 Thanks,
 Chris

   

Re: Memory issues with Jenkins

2012-11-13 Thread Brad Knowles
On Nov 9, 2012, at 7:08 AM, David Weintraub qazw...@gmail.com wrote:

 There's not a lot of jobs running on this. We're just getting Jenkins setup, 
 and maybe get one or two builds per day. The problem seems to stem from the 
 Analytic plugins: Findbugs, PMD, Checkstyle, Warnings, and CPD. The build 
 completes fine, but when it is calculating the issues from the previous build 
 to the present, it runs out of memory (usually during PMD).

I recently found the Monitoring plugin (see 
https://wiki.jenkins-ci.org/display/JENKINS/Monitoring)) which uses 
JavaMelody to generate system reports on-demand for your Jenkins server(s).  
Lots of good monitoring and system debugging facilities there.

I can't promise it will actually solve your problems, but I can say that I 
think it might be very useful.

--
Brad Knowles b...@shub-internet.org
LinkedIn Profile: http://tinyurl.com/y8kpxu



Re: Wanted: HOWTO write Dashboard portlets

2012-11-13 Thread Mark Waite
How about https://wiki.jenkins-ci.org/display/JENKINS/Extend+Jenkins ?

Mark Waite

On Tuesday, November 13, 2012 1:52:14 PM UTC-7, Rodney Stanton wrote:

 I tried Googling for a HOWTO without luck. (yes, I did google first :P )

 Our development would like more customization on our Dashboard.  Is there 
 a portlet development FAQ?

 Rodney



RE: how to make windows batch command shell continue run after start up another program.

2012-11-13 Thread ZHANG Xinchun A
I used to have the same need as you.
What I do is in batch file, set BUILD_ID to some other value and use start 
command to start your another program.
Then this another program would continue to run without blocking the batch 
file execution.
there is a webpage on Jenkins related website, but I can't find it at the 
moment talking about this. 
you could google it.


Br,
Tony Zhang, Tz

GSM Team @ Beijing, China

-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of clintthomas
Sent: Wednesday, November 14, 2012 5:33 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: how to make windows batch command shell continue run after start 
up another program.

I am dealing with a similar issue, did you ever get the answer/solution to
this?



--
View this message in context: 
http://jenkins.361315.n4.nabble.com/how-to-make-windows-batch-command-shell-continue-run-after-start-up-another-program-tp4635941p4646041.html
Sent from the Jenkins users mailing list archive at Nabble.com.


Wasted Minutes plugin -- stats available per build?

2012-11-13 Thread Jerry
Is there a way to retrieve wasted minutes on a per-job, per-build basis? 
The aggregate total is available through the CloudBees free plugin, but 
per-build numbers are not in the Rest API.

Thanks,
Jerry




parallel builds on single Hudson possible - quick question

2012-11-13 Thread Z W
Hi All

We have a single Hudson server and we like to perform parallel builds
for multiple different builds.
Can Hudson support that, meaning one job starts at 815am and another
at 820am so in the build queue there would be 2 paralllel builds ?
If not, what's the usual practice to support multiple concurrent
builds ? Is that using a single Hudson or multiple Hudson servers ?

Thanks


Re: parallel builds on single Hudson possible - quick question

2012-11-13 Thread Mark Waite
In the Jenkins job configuration screen, there is a check box Execute 
concurrent builds if necessary.  I don't know if that feature is available in 
Hudson or not.  It may have been added after most of the developers switched 
from Hudson to Jenkins.

Mark Waite




 From: Z W mpc8...@gmail.com
To: jenkinsci-users@googlegroups.com 
Sent: Tuesday, November 13, 2012 8:03 PM
Subject: parallel builds on single Hudson possible - quick question
 
Hi All

We have a single Hudson server and we like to perform parallel builds
for multiple different builds.
Can Hudson support that, meaning one job starts at 815am and another
at 820am so in the build queue there would be 2 paralllel builds ?
If not, what's the usual practice to support multiple concurrent
builds ? Is that using a single Hudson or multiple Hudson servers ?

Thanks




Re: Wanted: HOWTO write Dashboard portlets

2012-11-13 Thread Glfk4rt
Certainly covers the ground.

I thought that all of the portlets went through the dashboard view and was
hoping there would be something more specific.

Thanks,
Rodney


On Tue, Nov 13, 2012 at 4:49 PM, Mark Waite markwa...@yahoo.com wrote:

 How about https://wiki.jenkins-ci.org/display/JENKINS/Extend+Jenkins ?

 Mark Waite


 On Tuesday, November 13, 2012 1:52:14 PM UTC-7, Rodney Stanton wrote:

 I tried Googling for a HOWTO without luck. (yes, I did google first :P )

 Our development would like more customization on our Dashboard.  Is there
 a portlet development FAQ?

 Rodney




Re: Eamil-ext plugin add text to msg

2012-11-13 Thread Sven Finsterwalder
Ok here it is:
That code is the pre-send script area:

def deploymentJob = 
Jenkins.getInstance().getItemByFullName(deployment-universal)
def colorDeployment = deploymentJob.getIconColor()
def testJob = 
Jenkins.getInstance().getItemByFullName(selenium2-portalservices-Smoketests-windows-Chrome-2.2)
def colorTestJob = testJob.getIconColor()
 
if(colorDeployment == hudson.model.BallColor.BLUE  colorTestJob != 
hudson.model.BallColor.BLUE){
   
   def lastbuild = testJob.getLastBuild()   
   def build = testJob.getBuildByNumber(lastbuild.getNumber())
   def logFilePath = build.getLogFile().getPath()  
   String logContent = new File(logFilePath).text

   def i = logContent.indexOf(Running TestSuite)  
   def size = logContent.size()
   def selOutput = logContent.substring(i,size)
 
   logger.log(selOutput)
   msg.setText(selOutput)
}


Am Dienstag, 13. November 2012 16:14:13 UTC+1 schrieb slide:

 Please show your code.


 On Tue, Nov 13, 2012 at 8:01 AM, Sven Finsterwalder 
 sab...@gmail.comjavascript:
  wrote:

 Hi,

 how can add text to the email that will be send.

 msg - the MimeMessage object which can be modified

 I try it with the pre-send script, but it does not work :-(
 Please give me an example code line.

 Thanks




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