jenkins plugin for sona type repository manager

2012-10-05 Thread Rajagopal, Sampath
Is there a jenkins plug-in available for sona type repository manager
(Maven) ? if not, please advise how the uploads to repository can happen
?

 

Thanks

Sam



Re: Cannot display dependency graph

2012-10-05 Thread domi
Does the user Jenkins runs with see 'dot' on the PATH? ('dot' is the CLI tool 
installed by graphviz)
If not, configure it in the global config of your jenkins installation.
/Domi


On 06.10.2012, at 00:16, hezjing  wrote:

> Hi
> 
> I have installed Jenkins 1.484 and Dependency Graph Viewer Plugin 0.4 on 
> CentOS 5.8.
> I have also successfully installed Graphviz using the command like 'yum 
> install graphviz-gd'.
> 
> Unfortunately the graph is not showing when clicked on the 'Dependency Graph'.
> 
> There is no error in /var/log/jenkins/jenkins.log.
> 
> 
> 
> 
> 
> Do you know what could be the problem?
> 
> 
> -- 
> 
> Hez



Re: Can I use the same job names on many slaves (i.e. in an OO manner)?

2012-10-05 Thread zperry
@DarkRift and @teilo,

Many thanks for you two's hints. I will study up that aspect, try it out, 
and report back my results, if not this coming weekend, definitely early 
next week.

Regards,

--Zack

There are plugins to help you do that.
>
> Mainly there is the matrix job plugin which allows you to run the same job 
> accordin to different axis (the axis you are looking for is node or label)
>
> By default the queueing system of jenkins tend to reuse the same node it 
> executed the job before to prevent the workspace from being recopied over 
> and over, hense saving disk space.
>
> What you want though is the same job run on multiple environment, and 
> mateix build/job should be able to help you in this kind of setup.
>
> The name of the job should really no impact on the job distribution to 
> node. you might just fell in a case where the node executors were linearily 
> executing one after the other once they were available.
>
> Does that help you ?
>
> [...]
>
>

Re: no code analysis showing up with my builds

2012-10-05 Thread Rob Withers

Hi Dirk,

Thanks SO MUCH for your help!  It was indeed the lack of a SCM config for 
the project.  I had to add the git plugin and config the workspace and build 
directories for Jenkins elsewhere than my eclipse workspace.  Then I was 
able to specify the git repo as the eclipse project file path, as you said 
and just the plain pom.xml and it works!  I am also seeing the graphs now 
that I have two builds under my belt.  YAY!


So, it seems that there is an issue when configuring a maven project without 
an SCM, just to point that out.  There is no way to specify where the pom 
resides, other than a file path to the pom.xml and that screws up the 
Jenkins project by burying the analysis stats inside each build (so the URL 
is mangled).


Thanks again, I now have my Jenkins totally squared away,
Rob

-Original Message- 
From: Dirk Weigenand

Sent: Friday, October 05, 2012 4:38 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: no code analysis showing up with my builds

Hi,

i cloned your project from github and created a job for it in my jenkins
instance.

The job is of type maven 2/3, git is configured to a repository location
of file:///tmp/murmur-events.

I left the build configuration at default values (maven 3: a local maven
3 installation) and the default root pom location (pom.xml)

For good measure i configured build publishers for checkstyle, findbugs,
pmd, cpd).

The build runs fine and is successful.

After that i added code that would trigger new findbugs errors and run
the build anew (after checking in my change into the local git repository).

On the projects main page i now have all the diagrams one would expect
after configuring the above publishers.

The maven goals and options used are:

clean package pmd:pmd findbugs:findbugs pmd:cpd

I guess your problem is indeed related to the setup of your eclipse
project and git repository location.

For my projects the git repository corresponds to the eclipse project
folder, i.e.:

When my eclipse project is located in
/home/weigo/workspace/nifty-jenkins-plugin the git repository in jenkins
would be configured as file:///home/weigo/workspace/nifty-jenkins-plugin.

regards

Dirk

On 05.10.2012 04:18, Rob Withers wrote:

Well now, Dirk and Ulli, I have some analysis results in Jenkins, as it
turns out.  It just doesn't fall under my project murmur-events, it is a
level below, which is weird.

Here is my project page:  http://callistosheart:/job/murmur-events/
Here is my project page for the latest build:
http://callistosheart:/job/murmur-events/25/
Here is the page that displays the analysis result links:
http://callistosheart:/job/murmur-events/murmur-events$murmur-events/25/testReport/


How can I get it to show up in the parent?  Is this related to my
setting the global Jenkins workspace to my eclipse workspace
(c:\rob\comp\workspace), not having a global pom.xml, and having to
specify my project pom.xml as 'murmur-events/pom.xml'?  What to do, what
to do?  I would love this to show up in the parent.

Also, I do not see the duplicate code results (is that PDM?  If so, then
why three settings in the Jenkins project config for FindBugs, PDM AND
duplicate code?).

Thanks,
Rob





RE: Can I use the same job names on many slaves (i.e. in an OO manner)?

2012-10-05 Thread Nord, James
It sounds like you want a multi-configuration project with the node set as one 
of your axis.

/James



From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of zperry
Sent: 05 October 2012 22:22
To: jenkinsci-users@googlegroups.com
Subject: Can I use the same job names on many slaves (i.e. in an OO manner)?

We are POCing a Jenkins build farm that consists of 1 master, 2 slaves.

We use Jenkins mainly to monitor our C++ builds.  Our software targets many 
different Linux and FreeBSD distributions and releases, so we can see that 
Jenkins can help boost our efficiency significantly.

But while testing it out, it seems to me that even for the same build job, I 
have name jobs differently.  I wonder it's because I have misunderstood 
Jenkins' usage or it's a current limitation that I have to live with?

To make it concrete, lets say we have

  *   m0, s0, and s1, where m0 is the master, s0 and s1 are the two slaves.
  *   j0, j1, ... jn as the respective "original" name of our C++ build/test 
jobs (i.e. when these jobs were ran just on the POC master)
Now, to use s0 and s1, it seems that we must rename our jobs to the following:

  *   On m0: m0-j0, m0-j1, ... m0-jn
  *   On s0: s0-j0, s0-j1, ... s0-jn
  *   On s1: s1-j0, s1-j1, ... s1-jn
This seems to be quite cumbersome an requirement.  Can we do it in a more 
Object-Oriented manner - use an attribute somewhere to denote a j0 should be 
run on s0, and another j0 should be run on s1 etc, likewise for other jobs?

Thanks in advance for any hints/tips.

Regards,

-- Zack





**
This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
postmas...@nds.com and delete it from your system as well as any copies. The 
content of e-mails as well as traffic data may be monitored by NDS for 
employment and security purposes. To protect the environment please do not 
print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales. Registered no. 
3080780. VAT no. GB 603 8808 40-00
**


Re: Can I use the same job names on many slaves (i.e. in an OO manner)?

2012-10-05 Thread Richard Lavoie
There are plugins to help you do that.

Mainly there is the matrix job plugin which allows you to run the same job 
accordin to different axis (the axis you are looking for is node or label)

By default the queueing system of jenkins tend to reuse the same node it 
executed the job before to prevent the workspace from being recopied over and 
over, hense saving disk space.

What you want though is the same job run on multiple environment, and mateix 
build/job should be able to help you in this kind of setup.

The name of the job should really no impact on the job distribution to node. 
you might just fell in a case where the node executors were linearily executing 
one after the other once they were available.

Does that help you ?

On 2012-10-05, at 17:21, zperry  wrote:

> We are POCing a Jenkins build farm that consists of 1 master, 2 slaves.
> 
> We use Jenkins mainly to monitor our C++ builds.  Our software targets many 
> different Linux and FreeBSD distributions and releases, so we can see that 
> Jenkins can help boost our efficiency significantly.
> 
> But while testing it out, it seems to me that even for the same build job, I 
> have name jobs differently.  I wonder it's because I have misunderstood 
> Jenkins' usage or it's a current limitation that I have to live with?
> 
> To make it concrete, lets say we have 
> m0, s0, and s1, where m0 is the master, s0 and s1 are the two slaves.
> j0, j1, ... jn as the respective "original" name of our C++ build/test jobs 
> (i.e. when these jobs were ran just on the POC master)
> Now, to use s0 and s1, it seems that we must rename our jobs to the following:
> On m0: m0-j0, m0-j1, ... m0-jn
> On s0: s0-j0, s0-j1, ... s0-jn
> On s1: s1-j0, s1-j1, ... s1-jn
> This seems to be quite cumbersome an requirement.  Can we do it in a more 
> Object-Oriented manner - use an attribute somewhere to denote a j0 should be 
> run on s0, and another j0 should be run on s1 etc, likewise for other jobs?
> 
> Thanks in advance for any hints/tips.
> 
> Regards,
> 
> -- Zack
> 


Can I use the same job names on many slaves (i.e. in an OO manner)?

2012-10-05 Thread zperry
We are POCing a Jenkins build farm that consists of 1 master, 2 slaves.

We use Jenkins mainly to monitor our C++ builds.  Our software targets many 
different Linux and FreeBSD distributions and releases, so we can see that 
Jenkins can help boost our efficiency significantly.

But while testing it out, it seems to me that even for the same build job, 
I have name jobs differently.  I wonder it's because I have misunderstood 
Jenkins' usage or it's a current limitation that I have to live with?

To make it concrete, lets say we have 

   - m0, s0, and s1, where m0 is the master, s0 and s1 are the two slaves.
   - j0, j1, ... jn as the respective "original" name of our C++ build/test 
   jobs (i.e. when these jobs were ran just on the POC master)

Now, to use s0 and s1, it seems that we must rename our jobs to the 
following:

   - On m0: m0-j0, m0-j1, ... m0-jn
   - On s0: s0-j0, s0-j1, ... s0-jn
   - On s1: s1-j0, s1-j1, ... s1-jn

This seems to be quite cumbersome an requirement.  Can we do it in a more 
Object-Oriented manner - use an attribute somewhere to denote a j0 should 
be run on s0, and another j0 should be run on s1 etc, likewise for other 
jobs?

Thanks in advance for any hints/tips.

Regards,

-- Zack



Do failures mark upstream builds as unstable?

2012-10-05 Thread Todd Greer
Are unstable or failed downstream jobs supposed to automatically mark upstream 
jobs as unstable? My intuition says yes, my testing says no, and what I've read 
online seems to say both yes and no.

I've got a simple chain of two freestyle jobs: "build" and "test". They build 
and test the application, respectively, with "build" automatically triggering 
"test" (except in case of failure). "test" publishes a JUnit report, which 
"build" aggregates. When "test" gets a status of failed or unstable, I want 
"build" to get that same status, but it keeps its happy green ball.

So, am I supposed to write a post-build groovy step to do this, or is it 
supposed to happen automatically?

(I've seen posts trying to figure out how to make this happen, and posts that 
seem to say it's happening, and they want it turned off, hence my confusion.)

Thank you,
Todd


Re: P4TICKET variable use with Jenkins

2012-10-05 Thread Rob Petti
Exactly. P4TICKETS is the variable that should be set to the location
of the ticket file, not P4TICKET.

http://www.perforce.com/perforce/r12.1/manuals/cmdref/env.P4TICKETS.html

On Fri, Oct 5, 2012 at 2:12 PM, Richard J  wrote:
> My understanding is that P4TICKET doesn't point to a file, but instead, is
> defined as the ticket value itself, a 32 char hex string. No?
>


Re: no code analysis showing up with my builds

2012-10-05 Thread Dirk Weigenand
Hi,

i cloned your project from github and created a job for it in my jenkins
instance.

The job is of type maven 2/3, git is configured to a repository location
of file:///tmp/murmur-events.

I left the build configuration at default values (maven 3: a local maven
3 installation) and the default root pom location (pom.xml)

For good measure i configured build publishers for checkstyle, findbugs,
pmd, cpd).

The build runs fine and is successful.

After that i added code that would trigger new findbugs errors and run
the build anew (after checking in my change into the local git repository).

On the projects main page i now have all the diagrams one would expect
after configuring the above publishers.

The maven goals and options used are:

clean package pmd:pmd findbugs:findbugs pmd:cpd

I guess your problem is indeed related to the setup of your eclipse
project and git repository location.

For my projects the git repository corresponds to the eclipse project
folder, i.e.:

When my eclipse project is located in
/home/weigo/workspace/nifty-jenkins-plugin the git repository in jenkins
would be configured as file:///home/weigo/workspace/nifty-jenkins-plugin.

regards

Dirk

On 05.10.2012 04:18, Rob Withers wrote:
> Well now, Dirk and Ulli, I have some analysis results in Jenkins, as it
> turns out.  It just doesn't fall under my project murmur-events, it is a
> level below, which is weird.
> 
> Here is my project page:  http://callistosheart:/job/murmur-events/
> Here is my project page for the latest build:
> http://callistosheart:/job/murmur-events/25/
> Here is the page that displays the analysis result links:
> http://callistosheart:/job/murmur-events/murmur-events$murmur-events/25/testReport/
> 
> 
> How can I get it to show up in the parent?  Is this related to my
> setting the global Jenkins workspace to my eclipse workspace
> (c:\rob\comp\workspace), not having a global pom.xml, and having to
> specify my project pom.xml as 'murmur-events/pom.xml'?  What to do, what
> to do?  I would love this to show up in the parent.
> 
> Also, I do not see the duplicate code results (is that PDM?  If so, then
> why three settings in the Jenkins project config for FindBugs, PDM AND
> duplicate code?).
> 
> Thanks,
> Rob
> 



Re: P4TICKET variable use with Jenkins

2012-10-05 Thread Richard J
My understanding is that P4TICKET doesn't point to a file, but instead, is 
defined as the ticket value itself, a 32 char hex string. No?
 


Re: P4TICKET variable use with Jenkins

2012-10-05 Thread Rob Petti
P4TICKET is interpreted by p4 as the actual value of the ticket (which is a 
hex string). The variable you are looking for is called "P4TICKET*S*".

On Friday, 5 October 2012 01:22:33 UTC-6, Raj wrote:
>
> Hi,
>
> I dont want to set the P4PASSWD in jobs instead i want to P4TICKET 
> variable which is set to $HOME/.p4tickets should be used all the time. So 
> i provide only USERNAME/PORT in job configuration.
>
> But i am getting error such as below; (Jenkins is setup in windows)
>
> Started by user anonymous 
> Building in workspace C:\Tools\jenkins1.484\workspace\rajesh
> Using master perforce client: 
> [rajesh] $ p4 workspace -o 
> [rajesh] $ p4 login -p
> [rajesh] $ /usr/bin/p4 login -p
> Caught exception communicating with perforce. Login attempt failed: Password 
> invalid.com.tek42.perforce.PerforceException: Login attempt failed: Password 
> invalid.
>   at 
> com.tek42.perforce.parse.AbstractPerforceTemplate.p4Login(AbstractPerforceTemplate.java:615)
>   at 
> com.tek42.perforce.parse.AbstractPerforceTemplate.login(AbstractPerforceTemplate.java:556)
>   at 
> com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:372)
>   at 
> com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:292)
>   at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:61)
>   at 
> hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1461)
>   at 
> hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1422)
>   at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:793)
>   at hudson.model.AbstractProject.checkout(AbstractProject.java:1256)
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589)
>   at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494)
>   at hudson.model.Run.execute(Run.java:1502)
>   at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
>   at hudson.model.ResourceController.execute(ResourceController.java:88)
>   at hudson.model.Executor.run(Executor.java:236)
> ERROR: Unable to communicate with perforce. Login attempt failed: Password 
> invalid.Finished : 
> FAILURE
>
>
>

Re: Perforce changes since last successful build

2012-10-05 Thread Rob Petti
email-ext is capable of sending changelog information to the list of 
committers.

On Thursday, 4 October 2012 08:28:07 UTC-6, Richard Schoeller wrote:
>
> Does anybody have a recipe for getting the Perforce changelists since the 
> last successful/stable build.  I'd like to include that information in 
> notification emails and perhaps also use it to drive the recipient lists.
>
> It's clear that the plugin is able to get the changelists since the last 
> build.  But I haven't figured out how to get at that either.
>
> Thanks.
>


Re: Jenkins + Email-ext - How to configure per-project settings?

2012-10-05 Thread Marek Gimza
I have noticed the same problem with other plugins on former versions of
Jenkins/Hudson.

With some plugins, the configuration web page may work in Firefox, but not
in IExplorer ... and visa verca.

I have had to un-install and install different versions of Hudson/Jenkins
to get things to properly work in both web browers!

I have not experienced this problem with Jenkins 1.479 and higher.

Kind Regards,
Mgimza


On Fri, Oct 5, 2012 at 10:51 AM, Alex Earl  wrote:

> This issue was that the email-ext couldn't be added to post build actions.
> If you have added it, and you are getting the emails, then you are not
> seeing this issue. The default email content for email-ext is not much
> different from the default mailer, you have to configure it how you want.
>
> Sent from my Windows Phone
> --
> From: Dan
> Sent: 10/5/2012 7:39 AM
> To: jenkinsci-users@googlegroups.com
> Subject: Re: Jenkins + Email-ext - How to configure per-project settings?
>
> Was there ever any resolution here? I'm having similar symptoms: set up
> global settings, checked the per-project checkbox, not getting any extended
> info in the emails. We're running Jenkins 1.447, email-ext 2.24.1.
>
> On Tuesday, May 15, 2012 4:02:54 PM UTC-5, slide wrote:
>>
>> Yes, EVERYONE who upgrades to >1.463 will have this problem.
>>
>> On Tue, May 15, 2012 at 1:49 PM, John Vacz
>>  wrote:
>> > I also have the same problem after we upgraded to Jenkins 1.463 +
>> Email-ext
>> > 2.20.
>> >
>> >
>> > On 13.05.2012 21:09, v0idnull wrote:
>> >
>> > I'm running Jenkins 1.463 and Email Ext 2.20. All post build actions
>> are in
>> > a drop down menu for me, and they all add form elements except for
>> Email Ext
>> >
>> > On Sunday, 13 May 2012 15:06:55 UTC-4, Dan Stine wrote:
>> >>
>> >> Editable Email Notification is checkbox-enabled on my installation,
>> >> not a drop-down.  I'm running Jenkins 1.448 and Email Ext 2.20.
>> >>
>> >> Dan
>> >>
>> >> On May 13, 1:40 pm, v0idnull  wrote:
>> >> > So I want to get emails from successful builds and it seems that I
>> need
>> >> > the
>> >> > email-ext plugin.
>> >> >
>> >> > So I've installed it, set it up to override global settings, set
>> >> > everything
>> >> > correctly.
>> >> >
>> >> > But when I goto the project settings, when I try to select Editable
>> >> > Email
>> >> > Notifications from the post build actions drop down, nothing
>> happens.
>> >> > It's
>> >> > not being added to the post build queue.
>> >> >
>> >> > So Im not sure what else I have to do to enable it, any help would
>> be
>> >> > greatly appreciated, thanks
>> >
>> >
>>
>>
>>
>> --
>> Website: http://earl-of-code.com
>>
>


RE: Jenkins + Email-ext - How to configure per-project settings?

2012-10-05 Thread Alex Earl
This issue was that the email-ext couldn't be added to post build actions.
If you have added it, and you are getting the emails, then you are not
seeing this issue. The default email content for email-ext is not much
different from the default mailer, you have to configure it how you want.

Sent from my Windows Phone
--
From: Dan
Sent: 10/5/2012 7:39 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: Jenkins + Email-ext - How to configure per-project settings?

Was there ever any resolution here? I'm having similar symptoms: set up
global settings, checked the per-project checkbox, not getting any extended
info in the emails. We're running Jenkins 1.447, email-ext 2.24.1.

On Tuesday, May 15, 2012 4:02:54 PM UTC-5, slide wrote:
>
> Yes, EVERYONE who upgrades to >1.463 will have this problem.
>
> On Tue, May 15, 2012 at 1:49 PM, John Vacz
> > wrote:
> > I also have the same problem after we upgraded to Jenkins 1.463 +
> Email-ext
> > 2.20.
> >
> >
> > On 13.05.2012 21:09, v0idnull wrote:
> >
> > I'm running Jenkins 1.463 and Email Ext 2.20. All post build actions are
> in
> > a drop down menu for me, and they all add form elements except for Email
> Ext
> >
> > On Sunday, 13 May 2012 15:06:55 UTC-4, Dan Stine wrote:
> >>
> >> Editable Email Notification is checkbox-enabled on my installation,
> >> not a drop-down.  I'm running Jenkins 1.448 and Email Ext 2.20.
> >>
> >> Dan
> >>
> >> On May 13, 1:40 pm, v0idnull  wrote:
> >> > So I want to get emails from successful builds and it seems that I
> need
> >> > the
> >> > email-ext plugin.
> >> >
> >> > So I've installed it, set it up to override global settings, set
> >> > everything
> >> > correctly.
> >> >
> >> > But when I goto the project settings, when I try to select Editable
> >> > Email
> >> > Notifications from the post build actions drop down, nothing happens.
> >> > It's
> >> > not being added to the post build queue.
> >> >
> >> > So Im not sure what else I have to do to enable it, any help would be
> >> > greatly appreciated, thanks
> >
> >
>
>
>
> --
> Website: http://earl-of-code.com
>


Get the label that choose node to build on

2012-10-05 Thread peter
Hi,

Just wondered if anyone knew how (via the Jenkins model & groovy) to detect 
why a build built on a certain node.  Not the cause but the label.  I am 
trying to do some load reporting on our build farm and would like to be 
able to report on which labels are responsible for the most builds.  This 
way when we have more machines to add we know which type to add i.e. java 
or .net, etc.  

Thanks for any help,

BB


Re: Jenkins + Email-ext - How to configure per-project settings?

2012-10-05 Thread Dan
Was there ever any resolution here? I'm having similar symptoms: set up 
global settings, checked the per-project checkbox, not getting any extended 
info in the emails. We're running Jenkins 1.447, email-ext 2.24.1.

On Tuesday, May 15, 2012 4:02:54 PM UTC-5, slide wrote:
>
> Yes, EVERYONE who upgrades to >1.463 will have this problem. 
>
> On Tue, May 15, 2012 at 1:49 PM, John Vacz 
> > wrote: 
> > I also have the same problem after we upgraded to Jenkins 1.463 + 
> Email-ext 
> > 2.20. 
> > 
> > 
> > On 13.05.2012 21:09, v0idnull wrote: 
> > 
> > I'm running Jenkins 1.463 and Email Ext 2.20. All post build actions are 
> in 
> > a drop down menu for me, and they all add form elements except for Email 
> Ext 
> > 
> > On Sunday, 13 May 2012 15:06:55 UTC-4, Dan Stine wrote: 
> >> 
> >> Editable Email Notification is checkbox-enabled on my installation, 
> >> not a drop-down.  I'm running Jenkins 1.448 and Email Ext 2.20. 
> >> 
> >> Dan 
> >> 
> >> On May 13, 1:40 pm, v0idnull  wrote: 
> >> > So I want to get emails from successful builds and it seems that I 
> need 
> >> > the 
> >> > email-ext plugin. 
> >> > 
> >> > So I've installed it, set it up to override global settings, set 
> >> > everything 
> >> > correctly. 
> >> > 
> >> > But when I goto the project settings, when I try to select Editable 
> >> > Email 
> >> > Notifications from the post build actions drop down, nothing happens. 
> >> > It's 
> >> > not being added to the post build queue. 
> >> > 
> >> > So Im not sure what else I have to do to enable it, any help would be 
> >> > greatly appreciated, thanks 
> > 
> > 
>
>
>
> -- 
> Website: http://earl-of-code.com 
>


Unable to delete unicode files during workspace cleanup

2012-10-05 Thread grayaii
Hi,
We have a bunch of files with unicode character's in its name.
We use the Perforce plugin (version 1.3.7) to "Clean Workspace Before Each
Build".
The job fails like so (I put the "..." to hide the full path, but you get
the drift): 
java.io.IOException: Unable to delete /.../XmlParseUtilityTestFiles/��ҿ]
at hudson.Util.deleteFile(Util.java:265)
at hudson.Util.deleteRecursive(Util.java:316)
at hudson.Util.deleteContentsRecursive(Util.java:227)
at hudson.Util.deleteRecursive(Util.java:307)
at hudson.Util.deleteContentsRecursive(Util.java:227)
at hudson.Util.deleteRecursive(Util.java:307)
at hudson.Util.deleteContentsRecursive(Util.java:227)
at hudson.Util.deleteRecursive(Util.java:307)
at hudson.FilePath$9.invoke(FilePath.java:853)
at hudson.FilePath$9.invoke(FilePath.java:851)
at hudson.FilePath.act(FilePath.java:785)
at hudson.FilePath.act(FilePath.java:767)
at hudson.FilePath.deleteRecursive(FilePath.java:851)
at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:586)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1193)
at
hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:566)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:454)
at hudson.model.Run.run(Run.java:1389)
at hudson.matrix.MatrixBuild.run(MatrixBuild.java:220)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:230)
at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66)

We use tomcat to launch Jenkins, and in our catalina.sh we have:
export LANG=en_US.UTF-8

and in our server.xml I see in the "Connector" (which is the default):
URIEncoding="UTF-8"

And just to confirm, in our http://jenkins/jenkins/systemInfo page, we see:
file.encoding   UTF-8
java.runtime.version1.6.0_27-b07

Our Jenkins Master is: `uname -a`
Linux jenkins 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64
x86_64 x86_64 GNU/Linux

It's almost identical to:
https://issues.jenkins-ci.org/browse/JENKINS-12610, except that the LANG env
var does not seem to fix this problem.

Any ideas what could be causing this?  It seems to only occur on the Jenkins
Master slave, not the other slaves.

Manually rm -rf works fine.

It's driving us nuts.

Thanks!



--
View this message in context: 
http://jenkins.361315.n4.nabble.com/Unable-to-delete-unicode-files-during-workspace-cleanup-tp4642320.html
Sent from the Jenkins users mailing list archive at Nabble.com.


Re: SVN trigger for some builds, poll for others?

2012-10-05 Thread Ari Maniatis
I am resurrecting this old thread, since I don't think this was ever 
settled. I too would like to be able to have two jobs, one which is 
triggered by an SCM hook and the second one which polls the SCM once a day 
for Sonar reporting.

Build trigger options are:
Trigger builds remotely (e.g., from scripts)
Build periodically
Poll SCM

Should I tick none of those options for job 1 and "Poll SCM" for job 2? 
What will prevent job 2 from being triggered by the same SCM hook?


Ari



















Re: Maven Post Action Deploy?

2012-10-05 Thread David Doughty
So after a little googling around, this appears to be a repeatable problem, in 
that the redeploy publisher no longer reverts to the global settings.xml file, 
which is a pain in the arse. WE can resolve this by copying the settings.xml 
into .m2, which isn't really a good as a long term solution.

Anyhow, this brings me to the next problem. We get an ERror: ReturnCode 
401;unauthorised. The login credentials are in the settings.xml, and the pom 
has the correct id reference, does anyone have any suggestions? We;re trying to 
deploy to Nexus, the account in settings.xml exists and password are correct it 
has group deploy privileges, and as far as I can tell everything joins up.

Any thoughts from the group?

Thanks

dD


From: David Doughty mailto:ddoug...@collab.net>>
Reply-To: 
"jenkinsci-users@googlegroups.com" 
mailto:jenkinsci-users@googlegroups.com>>
Date: Wednesday, 3 October 2012 12:08
To: "jenkinsci-users@googlegroups.com" 
mailto:jenkinsci-users@googlegroups.com>>
Subject: Maven Post Action Deploy?

I've got some users who are trying as a post build action to deploy artefacts 
to Nexus

Using the maven goal deploy the build picks up the settings.xml from the maven 
install on the build box.

Using the plugin, it appears to be trying to access the user settings.xml 
(jenkins user in .m2/repository/settings.xml, which doesn't exist).

I've not used the post build action deploy previously, can anyone tell me if 
this is working as expected, or did I miss a config step to get it to pickup 
the installation settings.xml?

Currently we're running 1.482 Jenkins on this linux box

Thanks

dD


how to handle C# project dependencies

2012-10-05 Thread Kenneth
Hi All
 
I've got one job building a dll, that uses a dll that i have stored as an 
artifact, and gotten into the outputfolder for that job.
It still complains about the dependency when compiling though. how should i 
workaround that?
 
 C:\Windows\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets : 
warning : The referenced project '..\LimeUtilities\LimeUtilities.csproj' 
does not exist.
Done building target "ResolveProjectReferences" in project 
"LimeUtilitiesUnitTests.csproj".
Am I using msbuild plugin correct?
 


P4TICKET variable use with Jenkins

2012-10-05 Thread Raj
Hi,

I dont want to set the P4PASSWD in jobs instead i want to P4TICKET variable 
which is set to $HOME/.p4tickets should be used all the time. So i provide 
only USERNAME/PORT in job configuration.

But i am getting error such as below; (Jenkins is setup in windows)

Started by user anonymous 
Building in workspace C:\Tools\jenkins1.484\workspace\rajesh
Using master perforce client: 
[rajesh] $ p4 workspace -o 
[rajesh] $ p4 login -p
[rajesh] $ /usr/bin/p4 login -p
Caught exception communicating with perforce. Login attempt failed: Password 
invalid.com.tek42.perforce.PerforceException: Login attempt failed: Password 
invalid.
at 
com.tek42.perforce.parse.AbstractPerforceTemplate.p4Login(AbstractPerforceTemplate.java:615)
at 
com.tek42.perforce.parse.AbstractPerforceTemplate.login(AbstractPerforceTemplate.java:556)
at 
com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:372)
at 
com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:292)
at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:61)
at 
hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1461)
at 
hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1422)
at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:793)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1256)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494)
at hudson.model.Run.execute(Run.java:1502)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)
ERROR: Unable to communicate with perforce. Login attempt failed: Password 
invalid.Finished : 
FAILURE