Maven build results don't match Jenkins Build Artifacts

2012-06-07 Thread Lewis, Eric
Hi Since changing from an old Hudson to Jenkins 1.460 I noticed that Maven's build results differ from what Jenkins considers Build Artifacts. Specifically it has to do with renaming and using other results of the Maven assembly plugin. For instance, I have a build which repackages some XML sch

Re: Maven build results don't match Jenkins Build Artifacts

2012-06-07 Thread Stephen Connolly
Those are what maven considers the artifacts, ie those are the names that will end up in the maven repository. You can manually archive the files if the name is that important to you. Of course I never use the maven job type as it does things (which make the users life initially easier) that are

Jenkins Jobs hangs at sending email

2012-06-07 Thread vprasad79
Some of our Jenkins jobs get hanged to the point where it says: Sending email for trigger: Failure Please can you help us. We are using Jenkins ver. 1.458 Following errors observed in Jenkins log WARNING: com.gmail.sikakura.MailCommandTrigger.run() failed for MailC

SEVERE exception while starting jenkins LTS 1.477.1

2012-06-07 Thread Eyal Edri
hi everyone, i'm getting SEVERE exception on jenkins LTS latest version after upgrade: http://pastebin.com/NBvbBPSc i recently added a jnlp slave that sits in a DMZ and connects to this public jenkins instance. i had to set fixed jnlp port in the configure screen. can you help? thanks, ey

RE: SEVERE exception while starting jenkins LTS 1.477.1

2012-06-07 Thread David Aldrich
I guess you mean 1.447.1 ? > -Original Message- > From: jenkinsci-users@googlegroups.com [mailto:jenkinsci- > us...@googlegroups.com] On Behalf Of Eyal Edri > Sent: 07 June 2012 10:14 > To: jenkinsci-users@googlegroups.com > Subject: SEVERE exception while starting jenkins LTS 1.477.1 > >

AW: Maven build results don't match Jenkins Build Artifacts

2012-06-07 Thread Lewis, Eric
Well, the name is one thing, but the artifacts themselves differ (I create two ZIP files, but only one (and which one?) ends up as Jenkins artifact. I would expect that the Maven job type asks Maven about the job artifacts - but then I'm probably wrong ;-) For the moment I can live with the fa

Re: Maven build results don't match Jenkins Build Artifacts

2012-06-07 Thread Stephen Connolly
I will bet you are not attaching the artifacts to the reactor correctly, i.e. one/both of the zip files do not have a classifier, in which case the last zip file will be the one bound to the reactor and hence picked up by the maven job type's crazy code. There is the ability to manually archive ar

Re: user defined axis

2012-06-07 Thread Arun Kumar
Hi Brian, My requirement is like the variable value i give may differ everytime i execute the job. Like i may give "fruits=apple banana coconut" one time and next time it will be different value. So i want to take that as a variable to inject different values. Next time i may give "fruits=mango

Re: user defined axis

2012-06-07 Thread Brian J. Murrell
On 12-06-07 07:06 AM, Arun Kumar wrote: > Hi Brian, > > My requirement is like the variable value i give may differ everytime i > execute the job. Like i may give "fruits=apple banana coconut" one time and > next time it will be different value. So i want to take that as a variable > to inject

Re: user defined axis

2012-06-07 Thread Arun Kumar
But my problem i am not able to execute the above code step. If i give fruits=banana apple then instead of creating two axis it will run with one axis taking fruits="banana apple". It doesnt branch :( So i have a problem how to pass the parameter exactly. Thanks, Arun On Thursday, 7 June 2012

Re: SVN revision number inconsistency between build page and environment variable

2012-06-07 Thread pmon
That's agreed. But it doesn't mean that Jenkins should be picking up "current revision" for the build env. variable and show "last changed" on the build page. On Jun 6, 5:09 am, wrote: > I think this is a consequence of the way subversion works. > > A subversion checkout of part of the repo (eg

Re: SEVERE exception while starting jenkins LTS 1.477.1

2012-06-07 Thread Eyal Edri
- Original Message - > From: "David Aldrich" > To: jenkinsci-users@googlegroups.com > Sent: Thursday, June 7, 2012 12:26:38 PM > Subject: RE: SEVERE exception while starting jenkins LTS 1.477.1 > > I guess you mean 1.447.1 ? > yes, sorry for the confusion. the latest LTS version. > >

AW: Maven build results don't match Jenkins Build Artifacts

2012-06-07 Thread Lewis, Eric
Well, according to http://maven.apache.org/plugins/maven-assembly-plugin/single-mojo.html the ZIP files are attached automatically ('attach' defaults to true). I'll archive the ZIP files as artifacts (thanks for the hint), but is there any way to check what is actually attached to the Maven bui

refer to jobs by something other than their build number -- like an alias or tag

2012-06-07 Thread Brian J. Murrell
I have a need to be able to refer to build jobs by something other than their build number. To be perfectly clear, I want to be able to access a particular job's artifacts but I might not know the number of the job. I would know a "tag" or "alias" for it though. Given for example a URL on my jen

RE: Jenkins Jobs hangs at sending email

2012-06-07 Thread Alex Earl
Is this with the default mailer? Sent from my Windows Phone -- From: vprasad79 Sent: 6/7/2012 1:56 AM To: jenkinsci-users@googlegroups.com Subject: Jenkins Jobs hangs at sending email Some of our Jenkins jobs get hanged to the point where it says: Sending email for tr

Re: Setting assignedNode and canRoam of a project programmatically

2012-06-07 Thread cjo
Hi Dirk, Looks like you need to use one of the LabelExpression which are the other subclass of Label, in your example case the LabelExpression.Or would be needed. The code would be job.setAssignedLabel( new hudson.model.labels.LabelExpression.Or( new hudson.model.labels.LabelAtom(

Re: ANSI color plugin

2012-06-07 Thread Yi Wen
found out the answer myself: have to do a RSpec.configure do |config| config.tty = true end in spec_helper.rb Now wonder is there is something similar in cucumber On Jun 6, 3:33 pm, Yi Wen wrote: > I use Rspec::RakeTask for making the task. I also tried > the exact rspec command in a termina

Can one cancel a build on an offline node that does not come up?

2012-06-07 Thread John R. Cary
A multi-node build will hang when one of its build nodes does not come up. It seems to hang forever. Is there a way to get this to time out? (So that the master build can complete?) ThxJohn Cary -- Tech-X Corp., 5621 Arapahoe Ave, Boulder CO 80303 p 303-448-0727, f 303-448-7756

Re: Maven build results don't match Jenkins Build Artifacts

2012-06-07 Thread Stephen Connolly
yes but do the assemblies produce different classifiers for the different assemblies? On 7 June 2012 14:37, Lewis, Eric wrote: > Well, according to > http://maven.apache.org/plugins/maven-assembly-plugin/single-mojo.html the > ZIP files are attached automatically ('attach' defaults to true). >

AW: Maven build results don't match Jenkins Build Artifacts

2012-06-07 Thread Lewis, Eric
Well, the 'classifier' property within the Assembly plugin is deprecated. Instead, the assembly's ID should be used, which is what I do. I have three different Assembly descriptors in that project. http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"; xmlns:xsi="http://www.w3

Re: Jenkins Jobs hangs at sending email

2012-06-07 Thread vprasad79
No. we use email-ext plugin. On Thursday, 7 June 2012 22:08:23 UTC+8, slide wrote: > > Is this with the default mailer? > > Sent from my Windows Phone > -- > From: vprasad79 > Sent: 6/7/2012 1:56 AM > To: jenkinsci-users@googlegroups.com > Subject: Jenkins Jobs hangs

Re: user defined axis

2012-06-07 Thread Brian J. Murrell
On 12-06-07 07:59 AM, Arun Kumar wrote: > But my problem i am not able to execute the above code step. Right. I wasn't saying it was possible. I was saying that I have an RFE open to allow the parent job to define the axis combinations to build. Either by build steps (my use-case) or by passing

Re: Jenkins Jobs hangs at sending email

2012-06-07 Thread Slide
It's trying to lookup the user in LDAP and it can't find it, the LDAP plugin is throwing an exception. I have a possible fix for this (at least catching the exception) in the works, but have not released with it yet. On Thu, Jun 7, 2012 at 8:34 AM, vprasad79 wrote: > No. we use email-ext plugin.

Re: New guy questions

2012-06-07 Thread louwho
OK, I have a working VS 2008 MSBuild VB.net job. Now I need to create a new job to handle Vs 2008 C++. The MSbuild plugin will not work because VS 2008 C++ does not have an assembly, so I will need to use Devenv. I guess this will be a windows batch job, are there any examples of doing this

Re: New guy questions

2012-06-07 Thread Slide
It all depends on the exit code of devenv, if it exits with an error code of 0, Jenkins will see it as a SUCCESS, otherwise it is a failure. You probably need to call vcvarsall.bat first to set up all the common paths and so forth, something like this: call "c:\Program Files\Microsoft Visual Studi

Re: SVN revision number inconsistency between build page and environment variable

2012-06-07 Thread Les Mikesell
On Thu, Jun 7, 2012 at 8:05 AM, pmon wrote: > That's agreed. > > But it doesn't mean that Jenkins should be picking up "current > revision" for the build env. variable and show "last changed" on the > build page. In practice there should be no difference in using either number (or anything in bet

Re: Maven build results don't match Jenkins Build Artifacts

2012-06-07 Thread Stephen Connolly
On 7 June 2012 16:33, Lewis, Eric wrote: > Well, the 'classifier' property within the Assembly plugin is deprecated. > Instead, the assembly's ID should be used, which is what I do. That's fine. I wasn't saying to use the classifier property, rather I was checking that you had different classifi

'mvn site' fails on Ubuntu 12.04

2012-06-07 Thread oliver
Hi, does anyone has running Jenkins on Ubuntu 12.04? After upgrading from Ubuntu 10.04 to 12.04 I see the following log on the console: mojoSucceeded org.apache.maven.plugins:maven-site-plugin:3.0(default-site) [JENKINS] Archiving site from /home/jenkins/.jenkins/jobs/patterntesting-reports/work

Re: New guy questions

2012-06-07 Thread louwho
For the VB.Net job, there was only one solution to be built. For the C++ Devenv job that I wish to create now, there are multiple C++ solutions that reside in different sub folders of the SVN repository. Do I have to create individual\multiple Jenkins Jobs for each solution (which to me seems

Re: New guy questions

2012-06-07 Thread Slide
You could have multiple build steps and in each build step just cd to the correct directory (based on the root of the job's workspace). On Thu, Jun 7, 2012 at 1:00 PM, louwho wrote: > For the VB.Net job, there was only one solution to be built.  For the C++ > Devenv job that I wish to create now,

Re: New guy questions

2012-06-07 Thread louwho
OK, that sounds good (is there a downside to putting everything in one batch job, just keep doing a CD)?. When you point to a SVN URL, and it has multiple C++ projects under it, in different solutions folders, Jenkins (through polling), determines if there are any changes (to any of that top U

Re: New guy questions

2012-06-07 Thread Slide
You would need to split into different jobs if you wanted to only build thing when that specific thing changed in SVN. On Thu, Jun 7, 2012 at 1:26 PM, louwho wrote: > OK, that sounds good (is there a downside to putting everything in one batch > job, just keep doing a CD)?.  When you point to a S

Re: SVN revision number inconsistency between build page and environment variable

2012-06-07 Thread pmon
I'm using it in the following way. During the build, the makefile picks up the revision number from the environment variable and creates a cpp macro definition with it, something like this: gcc -DBUILD_REVISION=$(SVN_REVISION) ... In the C code, I'm printing a version string in the binary: printf("

RE: SVN revision number inconsistency between build page and

2012-06-07 Thread Alex Earl
environment variable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Are you expecting that the number of the build will match the SVN revision? Sent from my Windows Phone From: pmon Sent: 6/7/2012 9:21 PM To: Jenkins Users Subject: Re: SVN