RE: [RFC] any idea for give-aways

2013-01-23 Thread Sandell, Robert
Pin badges aren't that expensive to make if you buy enough of them in bulk, 
like 1500+, depending on manufacturer. Then they should be in the cost range of 
stickers.

Small note blocks, or post it notes?

/B

From: jenkinsci-...@googlegroups.com [mailto:jenkinsci-...@googlegroups.com] On 
Behalf Of Kohsuke Kawaguchi
Sent: den 23 januari 2013 21:09
To: jenkinsci-...@googlegroups.com; eve...@lists.jenkins-ci.org; 
jenkinsci-users@googlegroups.com
Subject: [RFC] any idea for give-aways

In the project meeting today, we had a conversation about what give-aways to 
make for this year.

In the past several years we made 3"x3" stickers, and while those are still 
very popular, I thought it might be fun to see if we can make something else as 
well.

Ideally it'd be not too expensive, and it shouldn't be too bulky nor too heavy. 
Any discounts you can find would be greatly appreciated.

Some of the ideas include a pin badge, although I haven't found any price 
information on it.

If you have any thoughts, please let us know!

--
Kohsuke Kawaguchi


Re: AbstractTestResultAction#getFailedTests()

2013-01-23 Thread Nalin Makar
Thanks Dean. I'll create a pull request deprecating this method and
introducing a new one.


On Wed, Jan 23, 2013 at 10:56 AM, Dean Yu  wrote:

>  Here's the commit where this was added:
>
>
> https://github.com/jenkinsci/jenkins/commit/f9823e39d17debd2e914ce13cdeec3b43581f09e
>
>  I would call this a case of poor abstraction. Seems like the signature
> should return List.
>
>-- Dean
>
>   From: Nalin Makar 
> Reply-To: "jenkinsci-...@googlegroups.com"  >
> Date: Wednesday, January 23, 2013 10:38 AM
> To: jenkinsci-dev , "
> jenkinsci-users@googlegroups.com" 
> Subject: Re: AbstractTestResultAction#getFailedTests()
>
>   Ping! Any information/suggestions would help.
>
>
> On Mon, Jan 21, 2013 at 10:57 PM, Nalin Makar wrote:
>
>> Hi,
>>
>>  I have a question regarding
>> https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/tasks/test/AbstractTestResultAction.java#L191
>>
>>  AbstractTestResultAction is described as:
>>
>>
>> /**
>>  * Common base class for recording test result.
>>  *
>>  * 
>>  * {@link Project} and {@link Build} recognizes {@link Action}s that derive 
>> from this,
>>  * and displays it nicely (regardless of the underlying implementation.)
>>  *
>>  * @author Kohsuke Kawaguchi
>>  */
>>
>> But the method getFailedTests() in this class returns 
>> List
>> instead of something more generic like List
>>
>>  why is it done this way?
>>
>>  I have been updating TestNG plugin for Jenkins to fall in line with
>> other test reporting plugins and have it's BuildAction implement
>> AbstractTestResultAction, but I don't want to change the result classes to
>> also have to implement a Junit specific class 
>> (hudson.tasks.junit.CaseResult).
>> This means I still can't have email-ext plugin report on TestNG results in
>> a generic way.
>>
>>  Thanks!
>> --
>> -nalin
>>
>
>
>
>  --
> -nalin
>
>


-- 
-nalin


Re: Build failure Analyzer Plugin’s odd behaviour

2013-01-23 Thread jhoomsharabi

No ours not matrix project
 
I think my issue is same as JENKINS-15948, icon image url looks to be broken, 
the url getting generated for bulb icon image is
 
http://[host]/jenkins//plugin/build-failure-analyzer/images/16x16/information.png
 
but in actual it should be
 
http://[host]/plugin/build-failure-analyzer/images/16x16/information.png
 
I am using build analyzer plugin v1.3.0



-Original Message-
From: Westling, Tomas 
To: 'jhoomshar...@netscape.net' ; jenkinsci-users 

Cc: Sandell, Robert 
Sent: Wed, Jan 23, 2013 5:30 pm
Subject: RE: Build failure Analyzer Plugin’s odd behaviour



Is your project a matrix project? If so then I’ve found the bug and will upload 
a bug fix.
 
Br Tomas
 

From: jhoomshar...@netscape.net [mailto:jhoomshar...@netscape.net] 
Sent: den 23 januari 2013 09:42
To: Westling, Tomas; jenkinsci-users@googlegroups.com
Cc: Sandell, Robert
Subject: Re: Build failure Analyzer Plugin’s odd behaviour

 
 

Attaching screen shot related to missing bulb icon

 

-Original Message-
From: Westling, Tomas 
To: 'jhoomshar...@netscape.net' ; jenkinsci-users 

Cc: Sandell, Robert 
Sent: Tue, Jan 22, 2013 5:59 pm
Subject: RE: Build failure Analyzer Plugin’s odd behaviour


Hi Jhoom,

 

issue number 3 is a known problem which we are working on. The issue is with

logs that are large enough so that the build log has to be split up and the 
“full log”

is visible. We are going to release a bug fix for this issue soon.

 

As for the other two issues I am not quite sure what you mean, are the bulb 
icons missing for 

builds that have identified the problem? Could you attach a screenshot of the 
problem?

 

Br Tomas

 


From: jhoomshar...@netscape.net [mailto:jhoomshar...@netscape.net] 
Sent: den 22 januari 2013 12:58
To: jenkinsci-users@googlegroups.com
Cc: Sandell, Robert; Westling, Tomas
Subject: Build failure Analyzer Plugin’s odd behaviour


 


Hi 


I am seeing strange problem on my Jenkins 1.496 server running on Solaris box, 


1.  I cannot see Build Failure Analyzer plugin bulb icon under “Build 
History” section instate of icon a text “Identified problems” is visible


2.  When I click on logs under “Build History” for a particular 
failed/unstable build again bulb icon is missing only following messages are 
visible:


 


Identified problems





Unit Test Failure


Contains test case failure


Indication 1 Indication 2


3.  When I click on “Indication” links, it takes me to build logs but did 
not show the problem with red highlight, I need to click on “Full log” link and 
then navigate to build log to look for highlighted error.


 


Anyone faced this problem in their dev environment with Build Failure Analyzer, 
if yes can anyone help me out and resolving this issue.


 


Thanks,


Jhoom


 






Antwort: [RFC] any idea for give-aways

2013-01-23 Thread Andreas Schilling
Hi!

I once got branded beer coasters as a flyer for an event. I liked the idea 
and I still use them as they are nicely designed. Badges are always nice, 
too. Good to stick them to your shoulder bag.

Kind regards,
 
Andreas Schilling
CAE Processes & Data Management
---
Dipl. Inf. Andreas Schilling
Senior Software Architect

TWT GmbH
Science & Innovation
Bernhäuser Str. 40 - 42
73765 Neuhausen
 
Tel: +49.7158.17 15.6 73
Mobil: +49.1 72.6 22 88 70
E-Mail: andreas.schill...@twt-gmbh.de

www.twt-gmbh.de

Geschäftsführung: Dimitrios Vartziotis, Joachim Laicher (Stv.), Frank 
Beutenmüller (Stv.)
Registergericht: Amtsgericht Stuttgart, HRB Nr. 212778
Umsatzsteuer: ID-Nr.: DE147841145




Von:Kohsuke Kawaguchi 
An: "jenkinsci-...@googlegroups.com" , 
"eve...@lists.jenkins-ci.org" , 
jenkinsci-users@googlegroups.com
Datum:  23.01.2013 21:09
Betreff:[RFC] any idea for give-aways
Gesendet von:   jenkinsci-users@googlegroups.com



In the project meeting today, we had a conversation about what give-aways 
to make for this year.

In the past several years we made 3"x3" stickers, and while those are 
still very popular, I thought it might be fun to see if we can make 
something else as well.

Ideally it'd be not too expensive, and it shouldn't be too bulky nor too 
heavy. Any discounts you can find would be greatly appreciated.

Some of the ideas include a pin badge, although I haven't found any price 
information on it.

If you have any thoughts, please let us know!

-- 
Kohsuke Kawaguchi 


Re: infrastructure chef and jenkins integration usage - quick question

2013-01-23 Thread Brad Knowles
On Jan 22, 2013, at 11:33 AM, Brad Knowles  wrote:

>> We new to chef.
> 
> Note that Opscode also has a mailing list for their user base, see 
> .

Ahh, just found this video today: 

--
Brad Knowles 
LinkedIn Profile: 



Help w/ maven release and git

2013-01-23 Thread Jeff
Two questions (from a Git n00b) dealing with Git + Maven in Jenkins:

1) When I do a release, I either want a new branch based on the maven
release version or a "release" branch sync'd w/ the latest "master" code
and tagged with the latest release version so we can pull it if we ever
need to do a hot fix based on release code.  I haven't found the thing that
helps me do this using the Maven Release Plugin and Git.  Can anyone point
me in the right direction?

2) I've configured Jenkins w/ the SSH keys for our Git "service" account to
our internal gitolite repository.  I can successfully pull and it seems
that during the maven release process, the "commit" works when updating the
POM, but it seems pushing the new branch fails with:

MyGitProject: Unable to commit files
Provider message:
The git-push command failed.
Command output:
ssh: svcSCM: no address associated with name
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


The user has the same rights as my personal user and I can do branching and
pushing operations manually with either account on the Jenkins box.  I've
tried leaving the SCM username/password blank when scheduling a maven
release and I've also tried just setting the user name to match the Git
service account user with similar failed results.

I'm sure I'm missing something fundamentally simple, but I'm not seeing it.

Any and all help is much appreciated.

-- 
Jeff Vincent
predato...@gmail.com
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent
I ♥ DropBox  !!


Re: Silently triggering a build using the git plugin

2013-01-23 Thread felix schwitzer
I observed this problem too, but at the end I discovered that the output 
doesn't come
from the git hook, but from the jenkis log, because I started for test 
reasons the

jenkinsserver in the same terminal in background :-(

Are you sure that jenkins has been started as a demon or at least
detached from your console?

On 01/22/2013 12:38 AM, Adam Mercer wrote:

Hi

I'm using the git plugin and trying to write a post-receive hook to
trigger polling of the SCM to see if a new build should be triggered.
I'm using the following to get Jenkins to poll the SCM

/usr/bin/curl $JENKINS/git/notifyCommit?url=$REPO&branches=master

this seems to be working great, i.e. a new build is scheduled if
appropriate. However the post-receive hook outputs:

Scheduled polling of Project

I don't want this information displayed, I'd just like the polling to
be scheduled. If I run the curl command from the terminal prompt I
get:

$ curl $JENKINS/git/notifyCommit?url=$REPO&branches=master
[1] 38610
$ Scheduled polling of Project

[1]+  Donecurl $JENKINS/git/notifyCommit?url=$REPO
$

I have been trying to suppress this output by appending "> /dev/null
2>&1" but hat still results in the output.

Is there a way I can suppress this output and just silently schedule a polling?

Cheers

Adam





Re: Automatically start individuals Tasks in Jenkins

2013-01-23 Thread Bruno Cunha
Hello Hari!

Jenkins is a Continuous Integration Server. It controls a lot of things,
but the tasks are mostly delegated/integrated to other systems.

Please provide more details, so we can help you better.
What are you doing / what's your task?
Is this an Apache Ant project? Or maybe a Maven project??

In Ant you have your targets, as well as Maven, that you have goals/phases.
You can call your project (if it's well built) with the targets/phases you
desire.



Ant: http://ant.apache.org/manual/targets.html
Maven:
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html


Hope this helps.


Best Regards,
Bruno Candido Volpato da Cunha




On Wed, Jan 23, 2013 at 8:38 PM, hari  wrote:

> Hi all,
>
> I'm pretty new to Jenkins and so figuring out some options.
> 1.  Does Jenkins have an option to automatically start individual tasks?
> If so please let me know the procedure? For ex: If there is data already
> loaded into jenkins and want to load some other data on top of exisisting
> one, is there a way to run only individual tasks?
>
> 2. If any of the tasks failed in Jenkins, Is there a way to start the job
> again from the failed step instead of running it from scratch?
>
> Please throw me some light on this. That would be great!
>


Re: Jenkins fails to send email

2013-01-23 Thread Slide
You mean for your jobs? It might still be useful. I understand not being
able to send out your source, so please send what you can and hopefully it
can help figure out the problem.


On Wed, Jan 23, 2013 at 2:32 PM, Chris Jones wrote:

>  Would this still be useful if I remove the source code from the zip file?
>
> Chris
>
>
> On 1/23/2013 2:26 PM, Alex Earl wrote:
>
>  This looks similar to something people are seeing with email-ext with
> the latest as well. If you don't have anything company secret, would you be
> willing to zip up your entire Jenkins home and post it somewhere?
>
> Sent from my Windows Phone
>  --
> From: Chris Jones
> Sent: 1/24/2013 3:46 AM
> To: jenkinsci-users@googlegroups.com
> Subject: Jenkins fails to send email
>
> This same Jenkins installation is acting really weird -- sometimes the
> "Loading" overlay doesn't disappear, covering the configuration screen and
> preventing me from making changes. If I restart Jenkins, sometimes it
> works. It's been acting that way ever since I installed it yesterday.
> System is RedHat 6.1, 64-bit. JVM is OpenJDK 1.6.0_20-b20. Here are the
> installed plugins:
>
> mailer1.4falsefalse
> external-monitor-job1.1falsefalse
> ldap1.2falsetrue
> pam-auth1.0falsefalse
> instant-messaging1.25truefalse
> jabber1.25truefalse
> ant1.1falsefalse
> javadoc1.0falsefalse
> saferestart0.2truefalse
> ssh-slaves0.22falsefalse
> cvs2.7falsetrue
> role-strategy1.1.2truefalse
> translation1.10falsetrue
> subversion1.45truetrue
> active-directory1.30truefalse
> maven-plugin
>
> ERROR: Processing failed due to a bug in the code. Please report this to 
> jenkinsci-us...@googlegroups.comjava.lang.NullPointerException 
> 
> at hudson.tasks.MailSender.createEmptyMail(MailSender.java:312) 
> 
>   at hudson.tasks.MailSender.createUnstableMail(MailSender.java:188) 
> 
>   at hudson.tasks.MailSender.getMail(MailSender.java:159) 
> 
>   at hudson.tasks.MailSender.execute(MailSender.java:100) 
> 
>   at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:55) 
> 
>   at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:103) 
> 
>   at 
> hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:758)
>  
> 
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:592) 
> 
>   at hudson.model.Run.execute(Run.java:1543) 
> 
>   at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) 
> 
>   at hudson.model.ResourceController.execute(ResourceController.java:88) 
> 
>   at hudson.model.Executor.run(Executor.java:236) 
> 
>
> ...and later in the same log:
>
> FATAL: nulljava.lang.NullPointerException 
> 
>   at hudson.tasks.MailSender.createEmptyMail(MailSender.java:312) 
> 
>   at hudson.tasks.MailSender.createUnstableMail(MailSender.java:188) 
> 
>   at hudson.tasks.MailSender.getMail(MailSender.java:159) 
> 
>   at hudson.tasks.MailSender.execute(MailSender.java:100) 
> 
>   at h

Automatically start individuals Tasks in Jenkins

2013-01-23 Thread hari
Hi all,

I'm pretty new to Jenkins and so figuring out some options.
1.  Does Jenkins have an option to automatically start individual tasks? If 
so please let me know the procedure? For ex: If there is data already 
loaded into jenkins and want to load some other data on top of exisisting 
one, is there a way to run only individual tasks? 

2. If any of the tasks failed in Jenkins, Is there a way to start the job 
again from the failed step instead of running it from scratch?

Please throw me some light on this. That would be great! 


Re: Programatically preventing spaces in project names?

2013-01-23 Thread Scott Evans
Will, thanks!  Those should do exactly what we're looking to do.

Scott

On Wed, Jan 23, 2013 at 3:46 PM, William Soula <
william.so...@drillinginfo.com> wrote:

>  In manage Jenkins -> configure system, there is a checkbox for "restrict
> project naming" where you can put a regex to keep spaces out
>
> There is also the create job advanced plugin, which has a checkbox for
> turning spaces into dashes:
> https://wiki.jenkins-ci.org/display/JENKINS/Create+Job+Advanced+Plugin
>
> Will
>
> On 01/23/2013 03:40 PM, Scott Evans wrote:
>
> Does anyone have a suggestion on a way to programatically keep developers
> from creating new projects which have spaces in the names of the projects?
> Somehow, my proposal of just telling them "don't do it" and when they do it
> anyway going an rapping their knuckles with a yardstick doesn't seem to fly
> with management.  :-)
>
> Scott
>
>
>


Re: Programatically preventing spaces in project names?

2013-01-23 Thread William Soula
In manage Jenkins -> configure system, there is a checkbox for "restrict 
project naming" where you can put a regex to keep spaces out

There is also the create job advanced plugin, which has a checkbox for turning 
spaces into dashes:
https://wiki.jenkins-ci.org/display/JENKINS/Create+Job+Advanced+Plugin

Will

On 01/23/2013 03:40 PM, Scott Evans wrote:
Does anyone have a suggestion on a way to programatically keep developers from 
creating new projects which have spaces in the names of the projects?  Somehow, 
my proposal of just telling them "don't do it" and when they do it anyway going 
an rapping their knuckles with a yardstick doesn't seem to fly with management. 
 :-)

Scott



Programatically preventing spaces in project names?

2013-01-23 Thread Scott Evans
Does anyone have a suggestion on a way to programatically keep developers
from creating new projects which have spaces in the names of the projects?
Somehow, my proposal of just telling them "don't do it" and when they do it
anyway going an rapping their knuckles with a yardstick doesn't seem to fly
with management.  :-)

Scott


Re: Jenkins fails to send email

2013-01-23 Thread Chris Jones
Would this still be useful if I remove the source code from the zip file?

Chris

On 1/23/2013 2:26 PM, Alex Earl wrote:
> This looks similar to something people are seeing with email-ext with
> the latest as well. If you don't have anything company secret, would
> you be willing to zip up your entire Jenkins home and post it somewhere?
>
> Sent from my Windows Phone
> 
> From: Chris Jones
> Sent: 1/24/2013 3:46 AM
> To: jenkinsci-users@googlegroups.com
> 
> Subject: Jenkins fails to send email
>
> This same Jenkins installation is acting really weird -- sometimes the
> "Loading" overlay doesn't disappear, covering the configuration screen
> and preventing me from making changes. If I restart Jenkins, sometimes
> it works. It's been acting that way ever since I installed it
> yesterday. System is RedHat 6.1, 64-bit. JVM is OpenJDK 1.6.0_20-b20.
> Here are the installed plugins:
>
> mailer1.4falsefalse
> external-monitor-job1.1falsefalse
> ldap1.2falsetrue
> pam-auth1.0falsefalse
> instant-messaging1.25truefalse
> jabber1.25truefalse
> ant1.1falsefalse
> javadoc1.0falsefalse
> saferestart0.2truefalse
> ssh-slaves0.22falsefalse
> cvs2.7falsetrue
> role-strategy1.1.2truefalse
> translation1.10falsetrue
> subversion1.45truetrue
> active-directory1.30truefalse
> maven-plugin
> ERROR: Processing failed due to a bug in the code. Please report this to 
> jenkinsci-users@googlegroups.com
> java.lang.NullPointerException
>  
> 
>at hudson.tasks.MailSender.createEmptyMail(MailSender.java:312) 
> 
>   at hudson.tasks.MailSender.createUnstableMail(MailSender.java:188) 
> 
>   at hudson.tasks.MailSender.getMail(MailSender.java:159) 
> 
>   at hudson.tasks.MailSender.execute(MailSender.java:100) 
> 
>   at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:55) 
> 
>   at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:103) 
> 
>   at 
> hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:758)
>  
> 
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:592) 
> 
>   at hudson.model.Run.execute(Run.java:1543) 
> 
>   at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) 
> 
>   at hudson.model.ResourceController.execute(ResourceController.java:88) 
> 
>   at hudson.model.Executor.run(Executor.java:236) 
> 
>
> ...and later in the same log:
>
> FATAL: null
> java.lang.NullPointerException
>  
> 
>at hudson.tasks.MailSender.createEmptyMail(MailSender.java:312) 
> 
>   at hudson.tasks.MailSender.createUnstableMail(MailSender.java:188) 
> 
>   at hudson.tasks.MailSender.getMail(MailSender.java:159) 
> 
>   at hudson.tasks.MailSender.execute(MailSender.java:100) 
> 
>   at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:55) 
> 

RE: Jenkins fails to send email

2013-01-23 Thread Alex Earl
This looks similar to something people are seeing with email-ext with the
latest as well. If you don't have anything company secret, would you be
willing to zip up your entire Jenkins home and post it somewhere?

Sent from my Windows Phone
--
From: Chris Jones
Sent: 1/24/2013 3:46 AM
To: jenkinsci-users@googlegroups.com
Subject: Jenkins fails to send email

  This same Jenkins installation is acting really weird -- sometimes the
"Loading" overlay doesn't disappear, covering the configuration screen and
preventing me from making changes. If I restart Jenkins, sometimes it
works. It's been acting that way ever since I installed it yesterday.
System is RedHat 6.1, 64-bit. JVM is OpenJDK 1.6.0_20-b20. Here are the
installed plugins:

mailer1.4falsefalse
external-monitor-job1.1falsefalse
ldap1.2falsetrue
pam-auth1.0falsefalse
instant-messaging1.25truefalse
jabber1.25truefalse
ant1.1falsefalse
javadoc1.0falsefalse
saferestart0.2truefalse
ssh-slaves0.22falsefalse
cvs2.7falsetrue
role-strategy1.1.2truefalse
translation1.10falsetrue
subversion1.45truetrue
active-directory1.30truefalse
maven-plugin


ERROR: Processing failed due to a bug in the code. Please report this
to jenkinsci-us...@googlegroups.comjava.lang.NullPointerException
  
at
hudson.tasks.MailSender.createEmptyMail(MailSender.java:312)

at hudson.tasks.MailSender.createUnstableMail(MailSender.java:188)

at hudson.tasks.MailSender.getMail(MailSender.java:159)

at hudson.tasks.MailSender.execute(MailSender.java:100)

at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:55)

at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:103)

at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:758)

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

at hudson.model.Run.execute(Run.java:1543)

at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)

at hudson.model.ResourceController.execute(ResourceController.java:88)

at hudson.model.Executor.run(Executor.java:236)


...and later in the same log:

FATAL: nulljava.lang.NullPointerException
  
at
hudson.tasks.MailSender.createEmptyMail(MailSender.java:312)

at hudson.tasks.MailSender.createUnstableMail(MailSender.java:188)

at hudson.tasks.MailSender.getMail(MailSender.java:159)

at hudson.tasks.MailSender.execute(MailSender.java:100)

at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:55)

at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:103)

at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:758)


Re: [RFC] any idea for give-aways

2013-01-23 Thread Daniel PETISME
What about a USB Jenkins kit :)
 - an USB stick with a Jenkins logo on it
 - the latest Jenkins version in it (the war or natives)
 - Some docs
  - The Jenkins manual
  - A Jenkins "Quick Win"/cheatsheet

Otherwise, some classics
- A shirt
- A (beer) bottle opener 
- A mug 
 

On Wednesday, January 23, 2013 9:09:08 PM UTC+1, Kohsuke Kawaguchi wrote:
>
> In the project meeting today, we had a conversation about what give-aways 
> to make for this year.
>
> In the past several years we made 3"x3" stickers, and while those are 
> still very popular, I thought it might be fun to see if we can make 
> something else as well.
>
> Ideally it'd be not too expensive, and it shouldn't be too bulky nor too 
> heavy. Any discounts you can find would be greatly appreciated.
>
> Some of the ideas include a pin badge, although I haven't found any price 
> information on it.
>
> If you have any thoughts, please let us know!
>
> -- 
> Kohsuke Kawaguchi 
>


Re: [Jenkins-events] [RFC] any idea for give-aways

2013-01-23 Thread Lisa Wells
Beer is the first thing that comes to mind, but it's heavy, tough to ship,
and short-lived... maybe keychain beer openers?

Opening your beer is the butler's job...

On Wed, Jan 23, 2013 at 2:09 PM, Kohsuke Kawaguchi  wrote:

> In the project meeting today, we had a conversation about what give-aways
> to make for this year.
>
> In the past several years we made 3"x3" stickers, and while those are
> still very popular, I thought it might be fun to see if we can make
> something else as well.
>
> Ideally it'd be not too expensive, and it shouldn't be too bulky nor too
> heavy. Any discounts you can find would be greatly appreciated.
>
> Some of the ideas include a pin badge, although I haven't found any price
> information on it.
>
> If you have any thoughts, please let us know!
>
> --
> Kohsuke Kawaguchi
>
> ___
> Jenkins-events mailing list
> jenkins-eve...@lists.jenkins-ci.org
> http://lists.jenkins-ci.org/mailman/listinfo/jenkins-events
>
>


-- 

 Lisa Wells
Partner Marketing Bee
www.CloudBees.com  |  Blog.CloudBees.com  | +1 512.751.8423  |
@productprincipl


upgrade jenkins version

2013-01-23 Thread Rafael Martinez
Hi I would like to know how I can upgrade to version jenkins if you clear 
the configuration, that is, as I can run. Believes war without jenkiins 
folder again and delete all 

Thanks 

Re: How to change slave port number on command line to connect to a slave - quick question

2013-01-23 Thread Vincent Latombe
2013/1/23 zw 

> com.youdevise.hudson.slavestatus
>
>
Remove the slave status plugin

Vincent


[RFC] any idea for give-aways

2013-01-23 Thread Kohsuke Kawaguchi
In the project meeting today, we had a conversation about what give-aways
to make for this year.

In the past several years we made 3"x3" stickers, and while those are still
very popular, I thought it might be fun to see if we can make something
else as well.

Ideally it'd be not too expensive, and it shouldn't be too bulky nor too
heavy. Any discounts you can find would be greatly appreciated.

Some of the ideas include a pin badge, although I haven't found any price
information on it.

If you have any thoughts, please let us know!

-- 
Kohsuke Kawaguchi


Re: assignedNode in config.xml

2013-01-23 Thread J Arrizza
Thanks Chris!  Works like a charm.

I am using this set of scripts to migrate 700+ jobs from Hudson to Jenkins,
so this was a show stopper.

John



On Wed, Jan 23, 2013 at 6:08 AM, cjo  wrote:

>
> You will also need to alter the canRoam element from true to false as this
> controls whether project can be built on any node, or just ones matching
> the labels.
>
> true --- use any nodes
> false --- use defined nodes/labels only
>
> Chris
>
> On Tuesday, January 22, 2013 11:13:24 PM UTC, JohnA wrote:
>
>> Richard,
>>
>> Thanks for the reply...
>>
>> I use the "#{@hosturl}/job/#{**jobname}/config.xml" url which does not
>> require a reload of the config file. That is mentioned in the Jenkins doc
>> page and in google hits .
>>
>> And I do have other settings working just fine (for example "Block build
>> when upstream project is building").  Note also that the assignedNode does
>> work fine if the xml element exists and all my script is doing is changing
>> the value.
>>
>> I do this:
>>
>> - I run the script
>> - I go to the Jenkins web page in a browser and refresh the page
>> - the value (or checkbox or whatever) changes to the new value
>>
>> In short, it's unlikely a caching problem or I'd see problems elsewhere.
>> This element is part of native Jenkins so no plugin is involved.
>>
>> Also an update: I fixed my script to always put the newline in there. So
>> when my Jenkins adds the node it looks like this:
>>
>>  > plugin="mercurial@1.42">
>> 
>> http://cm5/hg/sandbox/**v01.0/int
>> 
>> 
>> false
>> 
>>   
>> http://cm5/hg/sandbox/**v01.0/int/
>> 
>> 
>>   
>>   tm9
>>   false
>>
>>
>> and when my script adds the node it looks exactly the same:
>>
>>  > plugin="mercurial@1.42">
>> 
>> http://cm5/hg/sandbox/**v01.0/int
>> 
>> 
>> false
>> 
>>   
>> http://cm5/hg/sandbox/**v01.0/int/
>> 
>> 
>>   
>>   tm9
>>   true
>>
>>
>>
>> Does anyone know what's going on then?
>>
>> John
>>
>>
>> On Tue, Jan 22, 2013 at 3:05 PM, Richard Lavoie wrote:
>>
>>> It might also depends on the caching added lately to prevent reading too
>>> much unnecessary information into memory.
>>>
>>> Note that I'm not in front of my computer so what I'm saying in this
>>> mail and the last one are somewhat speculations, but some hints on where to
>>> look at now to see if you can solve this.
>>>
>>> R.
>>>
>>>
>>> On 2013-01-22, at 17:39, J Arrizza  wrote:
>>>
>>> Update:
>>>
>>> I tried a quick change:
>>>   - find the scm node and
>>>   - insert the assignedNode element after it.
>>>
>>> Still no joy.
>>>
>>> The only thing left that I can see, is there is a missing "\n" after the
>>>  when my script inserts the new node:
>>>
>>>   tm9
>>>
>>> while Jenkins adds the newline:
>>>
>>>   tm9
>>>   
>>>
>>> That would imply something very wrong with the XML parser in Jenkins, so
>>> it seems very unlikely this is the problem... but I thought I'd ask it
>>> anyway.
>>>
>>> John
>>>
>>> On Tue, Jan 22, 2013 at 1:56 PM, J Arrizza  wrote:
>>>
 Hi,

 I'm writing some scripts to keep track of and update the nodes my jobs
 use. I've come across a problem that I can't seem to resolve. This is a
 rather long post, but I want to make sure I give you the info you need.

 If the "Restrict where this project can be run" is checked on the web
 page, a node appears in the config.xml:

   
 
 http://cm5/hg/sandbox/**v01.0/int
 
 
 false
 

 http://cm5/hg/sandbox/**v01.0/int/
 
 
   
   master
   false

 You can see "assignedNode" sandwiched between the scm and canRoam
 elements. When you uncheck "Restrict where this project can be run", the
 element disappears from config.xml.

 So far, so good.

 I created a ruby script that gets the xml via the api/config.xml
 interface. It looks for that node and if it's not found, it adds it (BTW I
 use nokogiri). But my testing is showing that even if I add the node, the
 checkbox in the web page doesn't get checked.

 Here are some notes:
 - If I check the box on the web page and my script just changes the
 value in it (e.g. from 'master' to 'tm9' and back again), it works
 perfectly. I run the script, I refresh the web page, and the new value
 shows up.

 - When the script adds assignedNode, it adds it to the end of the xml
 root element, but no joy:

   
 tm9


 - I tried adding to the front of the xml root element, with no joy:

 
 
   tm9
   desc


 - When I add the assignedNode, it is actually in the config.xml. After
 I add it,  update the job via the api/xml, and then do a retrieve using
 api/xml, th

RE: disabled job and yet able to run - quick question

2013-01-23 Thread Merrow, Frank
I do not have the information to answer your question as you have asked it . . .

However, reading between the lines . . . if you are trying to modify a job from 
a script . . . google "python Jenkins".

That module provides an interface that allows you to do all kinds of things to 
jobs from Python scripts.

Frank

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of zw
Sent: Wednesday, January 23, 2013 11:27 AM
To: jenkinsci-users@googlegroups.com
Subject: disabled job and yet able to run - quick question

Hi All

In a job's config.xml, we modified disabled tag value from false to true.
We "enabled" job from the web UI interface.
We ran the job successfully.
We remodified the config.xml disabled tag to value true.
We went back to the UI web interface.
We can still run the job.

Is this a bug ?
When is config.xml read to update its status ?

thanks


Jenkins fails to send email

2013-01-23 Thread Chris Jones
This same Jenkins installation is acting really weird -- sometimes the
"Loading" overlay doesn't disappear, covering the configuration screen
and preventing me from making changes. If I restart Jenkins, sometimes
it works. It's been acting that way ever since I installed it yesterday.
System is RedHat 6.1, 64-bit. JVM is OpenJDK 1.6.0_20-b20. Here are the
installed plugins:

mailer1.4falsefalse
external-monitor-job1.1falsefalse
ldap1.2falsetrue
pam-auth1.0falsefalse
instant-messaging1.25truefalse
jabber1.25truefalse
ant1.1falsefalse
javadoc1.0falsefalse
saferestart0.2truefalse
ssh-slaves0.22falsefalse
cvs2.7falsetrue
role-strategy1.1.2truefalse
translation1.10falsetrue
subversion1.45truetrue
active-directory1.30truefalse
maven-plugin

ERROR: Processing failed due to a bug in the code. Please report this to 
jenkinsci-users@googlegroups.com
java.lang.NullPointerException
  
at hudson.tasks.MailSender.createEmptyMail(MailSender.java:312) 

at hudson.tasks.MailSender.createUnstableMail(MailSender.java:188) 

at hudson.tasks.MailSender.getMail(MailSender.java:159) 

at hudson.tasks.MailSender.execute(MailSender.java:100) 

at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:55) 

at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:103) 

at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:758)
 

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

at hudson.model.Run.execute(Run.java:1543) 

at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) 

at hudson.model.ResourceController.execute(ResourceController.java:88) 

at hudson.model.Executor.run(Executor.java:236) 


...and later in the same log:

FATAL: null
java.lang.NullPointerException
  
at hudson.tasks.MailSender.createEmptyMail(MailSender.java:312) 

at hudson.tasks.MailSender.createUnstableMail(MailSender.java:188) 

at hudson.tasks.MailSender.getMail(MailSender.java:159) 

at hudson.tasks.MailSender.execute(MailSender.java:100) 

at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:55) 

at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:103) 

at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:758)
 

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

at hudson.model.Run.execute(Run.java:1543) 


Re: Error on connecting with a Windows Slave - quick question

2013-01-23 Thread Vincent Latombe
Check the host name in the slave configuration of your slave slave4_windows.
I doubt your machine is named like that.

Vincent


2013/1/23 Chanda Unmack 

> I have this working in my setup but I don't remember changing the jnlp
> port; I have both running as a service on the windows slaves.
>
> I made sure the root fs was different for each instance of Jenkins,
> modified the jenkins-slave.xml on the slave to change the name & id of one
> of the services and manually installed the service.
>
> hth
> chanda
>
>
>
> On Tue, Jan 22, 2013 at 5:13 PM, zw  wrote:
>
>> Hi All
>>
>>  We have 2 Jenkins instances wanting to connect to the same windows box.
>> 1 Jenkins instance connects fine.
>> But the error has this below:
>>
>> Connecting to slave4_windows
>> ERROR: Unexpected error in launching a slave.
>> java.net.UnknownHostException: slave4_windows
>> at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
>>  at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:849)
>> at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1202)
>>  at java.net.InetAddress.getAllByName0(InetAddress.java:1153)
>> at java.net.InetAddress.getAllByName(InetAddress.java:1083)
>>  at java.net.InetAddress.getAllByName(InetAddress.java:1019)
>> at java.net.InetAddress.getByName(InetAddress.java:969)
>>  at
>> hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:122)
>> at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:194)
>>  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)
>>
>>
>> We double checked and we made sure TCP port for JNLP slave agents for
>> each of them is different; one uses  other uses 7778.
>>
>> What are we doing wrong ?
>>
>> Thanks
>>
>
>
>
> --
> *Confidentiality Notice*: This e-mail, including all attachments, is
> confidential information of Lytro, Inc. If the reader of this e-mail is not
> the intended recipient or its authorized agent, the reader is hereby
> notified that any dissemination, distribution or copying of this e-mail is
> prohibited. If you have received this e-mail in error, please notify the
> sender by replying to this message and delete this e-mail immediately.
>


Re:disabled job and yet able to run - quick question

2013-01-23 Thread KEVIN FLEMING (BLOOMBERG/ 731 LEXIN)
It is never automatically read, except on Jenkins startup. Reading it all the 
time would be very expensive. If you need config.xml changes to take effect, 
you'll need to tell Jenkins to reload its configuration from disk (which can be 
done from the Manage Jenkins page).

- Original Message -
From: jenkinsci-users@googlegroups.com
To: jenkinsci-users@googlegroups.com
At: Jan 23 2013 14:27:24

Hi All

In a job's config.xml, we modified disabled tag value from false to true.
We "enabled" job from the web UI interface.
We ran the job successfully.
We remodified the config.xml disabled tag to value true.
We went back to the UI web interface.
We can still run the job.

Is this a bug ?
When is config.xml read to update its status ?

thanks

Hi AllIn a job's config.xml, we modified disabled tag value from false to true.We "enabled" job from the web UI interface.We ran the job successfully.We remodified the config.xml disabled tag to value true.We went back to the UI web interface.We can still run the job.Is this a bug ?When is config.xml read to update its status ?thanks

disabled job and yet able to run - quick question

2013-01-23 Thread zw
Hi All

In a job's config.xml, we modified disabled tag value from false to true.
We "enabled" job from the web UI interface.
We ran the job successfully.
We remodified the config.xml disabled tag to value true.
We went back to the UI web interface.
We can still run the job.

Is this a bug ?
When is config.xml read to update its status ?

thanks


Re: AbstractTestResultAction#getFailedTests()

2013-01-23 Thread Dean Yu
Here's the commit where this was added:

https://github.com/jenkinsci/jenkins/commit/f9823e39d17debd2e914ce13cdeec3b43581f09e

I would call this a case of poor abstraction. Seems like the signature should 
return List.

  -- Dean

From: Nalin Makar mailto:nalin.ma...@gmail.com>>
Reply-To: 
"jenkinsci-...@googlegroups.com" 
mailto:jenkinsci-...@googlegroups.com>>
Date: Wednesday, January 23, 2013 10:38 AM
To: jenkinsci-dev 
mailto:jenkinsci-...@googlegroups.com>>, 
"jenkinsci-users@googlegroups.com" 
mailto:jenkinsci-users@googlegroups.com>>
Subject: Re: AbstractTestResultAction#getFailedTests()

Ping! Any information/suggestions would help.


On Mon, Jan 21, 2013 at 10:57 PM, Nalin Makar 
mailto:nalin.ma...@gmail.com>> wrote:
Hi,

I have a question regarding 
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/tasks/test/AbstractTestResultAction.java#L191

AbstractTestResultAction is described as:

/**
 * Common base class for recording test result.
 *
 * 
 * {@link Project} and {@link Build} recognizes {@link Action}s that derive 
from this,
 * and displays it nicely (regardless of the underlying implementation.)
 *
 * @author Kohsuke Kawaguchi
 */


But the method getFailedTests() in this class returns 
List instead of something more generic like 
List

why is it done this way?

I have been updating TestNG plugin for Jenkins to fall in line with other test 
reporting plugins and have it's BuildAction implement AbstractTestResultAction, 
but I don't want to change the result classes to also have to implement a Junit 
specific class (hudson.tasks.junit.CaseResult). This means I still can't have 
email-ext plugin report on TestNG results in a generic way.

Thanks!
--
-nalin



--
-nalin


Re: AbstractTestResultAction#getFailedTests()

2013-01-23 Thread Nalin Makar
Ping! Any information/suggestions would help.


On Mon, Jan 21, 2013 at 10:57 PM, Nalin Makar  wrote:

> Hi,
>
> I have a question regarding
> https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/tasks/test/AbstractTestResultAction.java#L191
>
> AbstractTestResultAction is described as:
>
>
> /**
>  * Common base class for recording test result.
>  *
>  * 
>  * {@link Project} and {@link Build} recognizes {@link Action}s that derive 
> from this,
>  * and displays it nicely (regardless of the underlying implementation.)
>  *
>  * @author Kohsuke Kawaguchi
>  */
>
> But the method getFailedTests() in this class returns 
> List
> instead of something more generic like List
>
> why is it done this way?
>
> I have been updating TestNG plugin for Jenkins to fall in line with other
> test reporting plugins and have it's BuildAction implement
> AbstractTestResultAction, but I don't want to change the result classes to
> also have to implement a Junit specific class (hudson.tasks.junit.CaseResult).
> This means I still can't have email-ext plugin report on TestNG results in
> a generic way.
>
> Thanks!
> --
> -nalin
>



-- 
-nalin


Re: Error on connecting with a Windows Slave - quick question

2013-01-23 Thread Chanda Unmack
I have this working in my setup but I don't remember changing the jnlp
port; I have both running as a service on the windows slaves.

I made sure the root fs was different for each instance of Jenkins,
modified the jenkins-slave.xml on the slave to change the name & id of one
of the services and manually installed the service.

hth
chanda



On Tue, Jan 22, 2013 at 5:13 PM, zw  wrote:

> Hi All
>
> We have 2 Jenkins instances wanting to connect to the same windows box.
> 1 Jenkins instance connects fine.
> But the error has this below:
>
> Connecting to slave4_windows
> ERROR: Unexpected error in launching a slave.
> java.net.UnknownHostException: slave4_windows
> at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
>  at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:849)
> at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1202)
>  at java.net.InetAddress.getAllByName0(InetAddress.java:1153)
> at java.net.InetAddress.getAllByName(InetAddress.java:1083)
>  at java.net.InetAddress.getAllByName(InetAddress.java:1019)
> at java.net.InetAddress.getByName(InetAddress.java:969)
>  at
> hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:122)
> at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:194)
>  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)
>
>
> We double checked and we made sure TCP port for JNLP slave agents for
> each of them is different; one uses  other uses 7778.
>
> What are we doing wrong ?
>
> Thanks
>



-- 
*Confidentiality Notice*: This e-mail, including all attachments, is
confidential information of Lytro, Inc. If the reader of this e-mail is not
the intended recipient or its authorized agent, the reader is hereby
notified that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.


Poll only one SVN repo

2013-01-23 Thread Baruch Burstein
I have a Jenkins project that pulls from two SVN repos (into two seperate 
directories). I want to poll just one of them , but can't find such an 
option. Is this possible?

Re: assignedNode in config.xml

2013-01-23 Thread cjo

You will also need to alter the canRoam element from true to false as this 
controls whether project can be built on any node, or just ones matching 
the labels.

true --- use any nodes
false --- use defined nodes/labels only

Chris

On Tuesday, January 22, 2013 11:13:24 PM UTC, JohnA wrote:
>
> Richard,
>
> Thanks for the reply...
>
> I use the "#{@hosturl}/job/#{jobname}/config.xml" url which does not 
> require a reload of the config file. That is mentioned in the Jenkins doc 
> page and in google hits .
>
> And I do have other settings working just fine (for example "Block build 
> when upstream project is building").  Note also that the assignedNode does 
> work fine if the xml element exists and all my script is doing is changing 
> the value.
>
> I do this:
>
> - I run the script
> - I go to the Jenkins web page in a browser and refresh the page
> - the value (or checkbox or whatever) changes to the new value
>
> In short, it's unlikely a caching problem or I'd see problems elsewhere.
> This element is part of native Jenkins so no plugin is involved.
>
> Also an update: I fixed my script to always put the newline in there. So 
> when my Jenkins adds the node it looks like this:
>
>   plugin="mercurial@1.42">
> http://cm5/hg/sandbox/v01.0/int
> 
> false
> 
>   http://cm5/hg/sandbox/v01.0/int/
> 
>   
>   tm9
>   false
>
>
> and when my script adds the node it looks exactly the same:
>
>   plugin="mercurial@1.42">
> http://cm5/hg/sandbox/v01.0/int
> 
> false
> 
>   http://cm5/hg/sandbox/v01.0/int/
> 
>   
>   tm9
>   true
>
>
>
> Does anyone know what's going on then?
>
> John
>
>
> On Tue, Jan 22, 2013 at 3:05 PM, Richard Lavoie 
> 
> > wrote:
>
>> It might also depends on the caching added lately to prevent reading too 
>> much unnecessary information into memory.
>>
>> Note that I'm not in front of my computer so what I'm saying in this mail 
>> and the last one are somewhat speculations, but some hints on where to look 
>> at now to see if you can solve this.
>>
>> R.
>>
>> On 2013-01-22, at 17:39, J Arrizza > 
>> wrote:
>>
>> Update:
>>
>> I tried a quick change: 
>>   - find the scm node and 
>>   - insert the assignedNode element after it. 
>>
>> Still no joy.
>>
>> The only thing left that I can see, is there is a missing "\n" after the 
>>  when my script inserts the new node:
>>
>>   tm9
>>
>> while Jenkins adds the newline:
>>
>>   tm9
>>   
>>
>> That would imply something very wrong with the XML parser in Jenkins, so 
>> it seems very unlikely this is the problem... but I thought I'd ask it 
>> anyway.
>>
>> John
>>
>> On Tue, Jan 22, 2013 at 1:56 PM, J Arrizza 
>> > wrote:
>>
>>> Hi,
>>>
>>> I'm writing some scripts to keep track of and update the nodes my jobs 
>>> use. I've come across a problem that I can't seem to resolve. This is a 
>>> rather long post, but I want to make sure I give you the info you need.
>>>
>>> If the "Restrict where this project can be run" is checked on the web 
>>> page, a node appears in the config.xml:
>>>
>>>   
>>> http://cm5/hg/sandbox/v01.0/int
>>> 
>>> false
>>> 
>>>http://cm5/hg/sandbox/v01.0/int/
>>> 
>>>   
>>>   master
>>>   false
>>>
>>> You can see "assignedNode" sandwiched between the scm and canRoam 
>>> elements. When you uncheck "Restrict where this project can be run", the 
>>> element disappears from config.xml. 
>>>
>>> So far, so good.
>>>
>>> I created a ruby script that gets the xml via the api/config.xml 
>>> interface. It looks for that node and if it's not found, it adds it (BTW I 
>>> use nokogiri). But my testing is showing that even if I add the node, the 
>>> checkbox in the web page doesn't get checked.
>>>
>>> Here are some notes:
>>> - If I check the box on the web page and my script just changes the 
>>> value in it (e.g. from 'master' to 'tm9' and back again), it works 
>>> perfectly. I run the script, I refresh the web page, and the new value 
>>> shows up. 
>>>
>>> - When the script adds assignedNode, it adds it to the end of the xml 
>>> root element, but no joy:
>>>
>>>   
>>> tm9
>>>
>>>
>>> - I tried adding to the front of the xml root element, with no joy:
>>>
>>> 
>>> 
>>>   tm9
>>>   desc
>>>
>>>
>>> - When I add the assignedNode, it is actually in the config.xml. After I 
>>> add it,  update the job via the api/xml, and then do a retrieve using 
>>> api/xml, the config.xml has the node in it. So Jenkins isn't erasing it or 
>>> anything like that.
>>>
>>> - If my node is in the config.xml and I check the box on the web page, 
>>> it moves to just under the scm node and it all works correctly again.
>>>
>>> - I have done this for several other nodes, checkboxes, etc. and they 
>>> are working correctly. 
>>>
>>> - I have done this extensively for Hudson and it's working correctly 
>>> too. Note that the assignedNode in Hudson is called appointedNode and has a 
>>> few extra fields in there.
>>>
>>> So, finally, my question: is the assignedN

Re: Is it possible to let the jobs roam in a node cluster?

2013-01-23 Thread Stephen Connolly
Not my call.


On 23 January 2013 12:13, liam.j.bennett  wrote:

> Any chance of open sourcing it?
>
>
> On Tuesday, January 22, 2013 10:57:52 PM UTC, Stephen Connolly wrote:
>>
>> My employers have an enterprise plugin that implements an even load
>> strategy, whereby unused slaves are preferred to slaves where the project
>> previously built.
>>
>>


Re: Job Queue and parallel batch commands

2013-01-23 Thread William Soula
For number one you could also look at the locks and latches plugin and assign 
each job to have the same lock so only one will run at a time.

https://wiki.jenkins-ci.org/display/JENKINS/Locks+and+Latches+plugin

Or the Throttle Concurrent Builds plugin which supposedly replaces the locks 
and latches plugin, but may be overkill to just limit jobs from running:

https://wiki.jenkins-ci.org/display/JENKINS/Throttle+Concurrent+Builds+Plugin


Will

On 01/22/2013 09:30 AM, Eric Pyle wrote:
Hi Fabian,

1. The simplest solution would be to restrict those "similar" jobs to a single 
slave, and set up that slave with only 1 executor.

2. There's no way to do this as far as I know. You could achieve something 
similar if you set up each batch command in a separate job and used the Join 
plugin to manage them from a single job to start all and another single job to 
run after all batch command jobs are done.

Regards,
Eric

On 1/22/2013 8:23 AM, Fabian Birk wrote:
Hello,

I have 2 questions:

1. Is it possible to set up a queue for similar jobs? I want to run many jobs 
parallel except the jobs which are using the same resource.
In CruiseControl.Net you are able to define a queue and the jobs in this queue 
arent allowed to run parallel.

2. Is it possible to run batch commands parallel in a single job?


thank you for reading




irc plugin notification strategies - new use case?

2013-01-23 Thread Tim Pizey
Hi,

I have just started a new job, so have set everything up from scratch:
ubuntu/jenkins and (new to me) jenkins-python and git.

I have installed a local irc server and the irc plugin and everything
is so close to perfect
that I want to scratch the final itch: the irc notification appears to
be exactly wrong:
it prefixes my git commit messages with my name, so I am alerted but does not
prefix the success/failure messages with my username, so I am not notified.

Given that it is just me working against my own git branch
the committer is always going to be me,  what I need to know is not what I said
but the status of the build that I broke/fixed.

cheers
Tim



-- 
Tim Pizey - http://pizey.net/~timp


Re: Is it possible to let the jobs roam in a node cluster?

2013-01-23 Thread liam.j.bennett
Any chance of open sourcing it?

On Tuesday, January 22, 2013 10:57:52 PM UTC, Stephen Connolly wrote:
>
> My employers have an enterprise plugin that implements an even load 
> strategy, whereby unused slaves are preferred to slaves where the project 
> previously built. 
>
>

Windows Slave Error - The handle is invalid.

2013-01-23 Thread Ronan Mulvaney
We are experiencing a complete breakdown of all our master/slave 
connections after the upgrade to 1.499
All slaves are Windows 2008 64bit and are controlled from the Master via "*Let 
Jenkins control this Windows slave as a Windows service*".
 
All are experiencing the error
 
Checking if Java exists
ERROR: Failed to prepare Java
*jcifs.smb.SmbException*:
 
The handle is invalid.
at 
*jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:545)*
at 
*jcifs.smb.SmbTransport.send(SmbTransport.java:646)*
at 
*jcifs.smb.SmbSession.send(SmbSession.java:244)*
at 
*jcifs.smb.SmbTree.send(SmbTree.java:119)*
at 
*jcifs.smb.SmbFile.send(SmbFile.java:770)*
at 
*jcifs.smb.SmbFileOutputStream.writeDirect(SmbFileOutputStream.java:245)*
at 
*jcifs.smb.SmbFileOutputStream.write(SmbFileOutputStream.java:216)*
at *
org.jvnet.hudson.remcom.WindowsRemoteProcessLauncher.copyAndClose(WindowsRemoteProcessLauncher.java:303)
*
at *
org.jvnet.hudson.remcom.WindowsRemoteProcessLauncher.launch(WindowsRemoteProcessLauncher.java:118)
*
at *
hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:233)
*
at 
*hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:204)*
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Would anyone have any experience of this and the appropriate resolution.
 
Thanks,
 
Ronan


PostBuildScript plugin with token-consumer supported?

2013-01-23 Thread intelchen
Hi all,
 May I get some helps from you?
 We are using PostBuildScript plugin, but we find that 
tokens generated by token-producers plugin( such as findbugs/checkstyles ) 
is not OK in this PostBuildScript .
So my questions are
1. how to add token-producers supported in PostBuildScript ?
2. We are running shell scripts/window batch commands by PostBuildScripts, 
Is there any good plugin for us to run those scripts with token-consumer 
supported?


Br
Bill


Re: request on version Jenkins ver. 1.494 upgrade

2013-01-23 Thread bala nageswar Chadalavada
OK Andreas.
Once again i regret the inconvience to all

thanks
bala


On Wed, Jan 23, 2013 at 1:55 PM, Andreas Schilling <
andreas.schill...@twt-gmbh.de> wrote:

> Bala,
>
> I already told you on the Sonar list, now I'll repeat this on the Jenkins
> list as well.
> Mailing lists are not some sort of "dump-your-problems" facility.
> Seriously.
> Usually one should do the following before approaching others:
>
> - get the basics straight. The basics and also advanced topics can be
> found in the respective documentation (you read that, right? if you didn't
> you know what to do the next days)
> - analyze your problem (google is a fantastic tool btw)
> - stuck? analyze it again
> - if you're really stuck, then is the time to search for help from others
>
> All your mails scream, that you neither did read any introductory
> documentation nor did take a closer look into any of your issues. This is
> not how it's meant to be played.
>
> This may sound harsh, but you're generating loads of traffic that nobody
> helps.
>
> regards
>
> Andreas Schilling
> CAE Processes & Data Management
> ---
> Dipl. Inf. Andreas Schilling
> Senior Software Architect
>
> TWT GmbH
> Science & Innovation
> Bernhäuser Str. 40 - 42
> 73765 Neuhausen
>
> Tel: +49.7158.17 15.6 73
> Mobil: +49.1 72.6 22 88 70
> E-Mail: andreas.schill...@twt-gmbh.de
> 
> www.twt-gmbh.de
> 
> Geschäftsführung: Dimitrios Vartziotis, Joachim Laicher (Stv.), Frank
> Beutenmüller (Stv.)
> Registergericht: Amtsgericht Stuttgart, HRB Nr. 212778
> Umsatzsteuer: ID-Nr.: DE147841145
> 
>
>
>
> Von:bala nageswar Chadalavada 
> An:Slide 
> Kopie:"jenkinsci-users@googlegroups.com" <
> jenkinsci-users@googlegroups.com>
> Datum:23.01.2013 09:15
> Betreff:request on version Jenkins ver. 1.494 upgrade
> Gesendet von:jenkinsci-users@googlegroups.com
> --
>
>
>
> Hi Slide
>
> thanks a lot.i will chek on that
>
> now we are planning to move from 1.494 to Latest version of jenkins
>
> we have
> 1) Linux Environment
>
> path located under opt /apachetomcat/webapps
>
> Now if we upgrade it to new version of jenkins
>
> do we need re-configure the LDAP Settings and all
>
> what about the JOB HISTORY Created till
>
> please explain
>
> thanks
> bala
>
> On Wed, Jan 23, 2013 at 1:05 PM, Slide 
> <*slide.o@gmail.com*>
> wrote:
> If they are showing as red, then they failed somehow. You need to paste
> your build log, or look further into it. Jenkins shows a red ball when
> _something_ (not necessarily just your build steps) fail during that
> project's execution. Without further info (build log, etc) no one here can
> help you.
>
>
> On Wed, Jan 23, 2013 at 12:30 AM, bala nageswar Chadalavada <*
> baluch...@gmail.com* > wrote:
> OK i Enabled AUTO Fresh.
> for example...yesterday Nightly builds are scheduled ran successfully
>
> but it has shown as RED
>
> little confused here
>
> thanks
> bala
>
> On Wed, Jan 23, 2013 at 12:55 PM, Slide 
> <*slide.o@gmail.com*>
> wrote:
> I understand your request and I am telling you that something in the
> build, whether it is your stuff or something that happens in post-build is
> failing and making the job be marked as failure. You need to look at your
> build log and find out why. Otherwise, check to make sure that you have
> auto-refresh enabled so that if the build occurs it updates the main page.
>
>
> On Wed, Jan 23, 2013 at 12:23 AM, bala nageswar Chadalavada <*
> baluch...@gmail.com* > wrote:
> My request was..
>
> Even after the SUCCESSFUL BUILD the main jenkins page showing as RED
>
> Actual should be BLUE
>
> On Wed, Jan 23, 2013 at 12:44 PM, Slide 
> <*slide.o@gmail.com*>
> wrote:
> It sounds like your builds are failing at some point, you need to look at
> the build log and find out why its being marked as a failure.
>
>
> On Tue, Jan 22, 2013 at 11:25 PM, bala nageswar Chadalavada <*
> baluch...@gmail.com* > wrote:
> hI
>
> PLEASE let me know why he builds show red after success ful builds
>
> i am using the *Jenkins ver. 1.494* 
>
> please suggest further
> --
> Bala.ch
>
>
>
> --
> Website: *http://earl-of-code.com* 
>
>
>
> --
> Bala.ch
>
>
>
> --
> Website: *http://earl-of-code.com* 
>
>
>
> --
> Bala.ch
>
>
>
> --
> Website: *http://earl-of-code.com* 
>
>
>
> --
> Bala.ch
>



-- 
Bala.ch


Antwort: request on version Jenkins ver. 1.494 upgrade

2013-01-23 Thread Andreas Schilling
Bala,

I already told you on the Sonar list, now I'll repeat this on the Jenkins 
list as well.
Mailing lists are not some sort of "dump-your-problems" facility. 
Seriously.
Usually one should do the following before approaching others:

- get the basics straight. The basics and also advanced topics can be 
found in the respective documentation (you read that, right? if you didn't 
you know what to do the next days)
- analyze your problem (google is a fantastic tool btw)
- stuck? analyze it again
- if you're really stuck, then is the time to search for help from others

All your mails scream, that you neither did read any introductory 
documentation nor did take a closer look into any of your issues. This is 
not how it's meant to be played.

This may sound harsh, but you're generating loads of traffic that nobody 
helps.

regards
 
Andreas Schilling
CAE Processes & Data Management
---
Dipl. Inf. Andreas Schilling
Senior Software Architect

TWT GmbH
Science & Innovation
Bernhäuser Str. 40 - 42
73765 Neuhausen
 
Tel: +49.7158.17 15.6 73
Mobil: +49.1 72.6 22 88 70
E-Mail: andreas.schill...@twt-gmbh.de

www.twt-gmbh.de

Geschäftsführung: Dimitrios Vartziotis, Joachim Laicher (Stv.), Frank 
Beutenmüller (Stv.)
Registergericht: Amtsgericht Stuttgart, HRB Nr. 212778
Umsatzsteuer: ID-Nr.: DE147841145




Von:bala nageswar Chadalavada 
An: Slide 
Kopie:  "jenkinsci-users@googlegroups.com" 

Datum:  23.01.2013 09:15
Betreff:request on version Jenkins ver. 1.494 upgrade
Gesendet von:   jenkinsci-users@googlegroups.com



Hi Slide
 
thanks a lot.i will chek on that
 
now we are planning to move from 1.494 to Latest version of jenkins 
 
we have
1) Linux Environment
 
path located under opt /apachetomcat/webapps
 
Now if we upgrade it to new version of jenkins
 
do we need re-configure the LDAP Settings and all
 
what about the JOB HISTORY Created till
 
please explain
 
thanks
bala

On Wed, Jan 23, 2013 at 1:05 PM, Slide  wrote:
If they are showing as red, then they failed somehow. You need to paste 
your build log, or look further into it. Jenkins shows a red ball when 
_something_ (not necessarily just your build steps) fail during that 
project's execution. Without further info (build log, etc) no one here can 
help you.


On Wed, Jan 23, 2013 at 12:30 AM, bala nageswar Chadalavada <
baluch...@gmail.com> wrote:
OK i Enabled AUTO Fresh.
for example...yesterday Nightly builds are scheduled ran successfully
 
but it has shown as RED
 
little confused here
 
thanks
bala

On Wed, Jan 23, 2013 at 12:55 PM, Slide  wrote:
I understand your request and I am telling you that something in the 
build, whether it is your stuff or something that happens in post-build is 
failing and making the job be marked as failure. You need to look at your 
build log and find out why. Otherwise, check to make sure that you have 
auto-refresh enabled so that if the build occurs it updates the main page.


On Wed, Jan 23, 2013 at 12:23 AM, bala nageswar Chadalavada <
baluch...@gmail.com> wrote:
My request was..
 
Even after the SUCCESSFUL BUILD the main jenkins page showing as RED
 
Actual should be BLUE

On Wed, Jan 23, 2013 at 12:44 PM, Slide  wrote:
It sounds like your builds are failing at some point, you need to look at 
the build log and find out why its being marked as a failure.


On Tue, Jan 22, 2013 at 11:25 PM, bala nageswar Chadalavada <
baluch...@gmail.com> wrote:
hI
 
PLEASE let me know why he builds show red after success ful builds
 
i am using the Jenkins ver. 1.494
 
please suggest further
-- 
Bala.ch 



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



-- 
Bala.ch 



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



-- 
Bala.ch 



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



-- 
Bala.ch 


request on version Jenkins ver. 1.494 upgrade

2013-01-23 Thread bala nageswar Chadalavada
Hi Slide

thanks a lot.i will chek on that

now we are planning to move from 1.494 to Latest version of jenkins

we have
1) Linux Environment

path located under opt /apachetomcat/webapps

Now if we upgrade it to new version of jenkins

do we need re-configure the LDAP Settings and all

what about the JOB HISTORY Created till

please explain

thanks
bala

On Wed, Jan 23, 2013 at 1:05 PM, Slide  wrote:

> If they are showing as red, then they failed somehow. You need to paste
> your build log, or look further into it. Jenkins shows a red ball when
> _something_ (not necessarily just your build steps) fail during that
> project's execution. Without further info (build log, etc) no one here can
> help you.
>
>
> On Wed, Jan 23, 2013 at 12:30 AM, bala nageswar Chadalavada <
> baluch...@gmail.com> wrote:
>
>> OK i Enabled AUTO Fresh.
>> for example...yesterday Nightly builds are scheduled ran successfully
>>
>> but it has shown as RED
>>
>> little confused here
>>
>> thanks
>> bala
>>
>> On Wed, Jan 23, 2013 at 12:55 PM, Slide  wrote:
>>
>>> I understand your request and I am telling you that something in the
>>> build, whether it is your stuff or something that happens in post-build is
>>> failing and making the job be marked as failure. You need to look at your
>>> build log and find out why. Otherwise, check to make sure that you have
>>> auto-refresh enabled so that if the build occurs it updates the main page.
>>>
>>>
>>> On Wed, Jan 23, 2013 at 12:23 AM, bala nageswar Chadalavada <
>>> baluch...@gmail.com> wrote:
>>>
 My request was..

 Even after the SUCCESSFUL BUILD the main jenkins page showing as RED

 Actual should be BLUE

 On Wed, Jan 23, 2013 at 12:44 PM, Slide  wrote:

> It sounds like your builds are failing at some point, you need to look
> at the build log and find out why its being marked as a failure.
>
>
> On Tue, Jan 22, 2013 at 11:25 PM, bala nageswar Chadalavada <
> baluch...@gmail.com> wrote:
>
>> hI
>>
>> PLEASE let me know why he builds show red after success ful builds
>>
>> i am using the Jenkins ver. 1.494 
>>
>> please suggest further
>> --
>> Bala.ch
>>
>
>
>
> --
> Website: http://earl-of-code.com
>



 --
 Bala.ch
>>>
>>>
>>>
>>>
>>> --
>>> Website: http://earl-of-code.com
>>>
>>
>>
>>
>> --
>> Bala.ch
>
>
>
>
> --
> Website: http://earl-of-code.com
>



-- 
Bala.ch