Trailing WInstone error message on job configure page

2012-03-27 Thread Didier Durand
Hello,

Since 1.456 (also in 1.457), I get the following error message from 
winstone in the Job configuration page for each job after current 
configuration is displayed

Status Code: nullException: 
Stacktrace: 

(none)


--
*Generated by Winstone Servlet Engine v0.9.10 at Wed Mar 28 08:00:18 CEST 
2012*

Do I have a config issue specific to my machine or is it a new problem for 
those releases for which I should open a JIRA ticket ?

regards

didier


Re: Import people from file

2012-03-27 Thread Breno C. Costa
Thanks..

I found the "user database" in hudson (".hudson/users")

On 27 mar, 12:49, domi  wrote:
> a simple groovy script should do...
>
> On 27.03.2012, at 16:04, Breno C. Costa wrote:
>
>
>
>
>
>
>
> > Hi everyone,
>
> > I would like to import people list (name and email) from a file,
> > because I have many people in my project's svn, and I need to send
> > post build email to him.
>
> > Best regards,
> > Breno C. Costa


Is it possible to distinguish between a job triggered by an SCM trigger/periodic trigger/etc... based on a system property set by Jenkins?

2012-03-27 Thread Omair-Inam Abdul-Matin
Hi all,

Is it possible to distinguish between a job triggered by an SCM
trigger/periodic trigger/etc... based on a system property set by
Jenkins?

The list of properties mentioned here:
http://wiki.hudson-ci.org/display/HUDSON/Building+a+software+project#Buildingasoftwareproject-HudsonSetEnvironmentVariables
does not make any mention of any property that might do this?

Omair


Re: password masking plugin too aggressive

2012-03-27 Thread Maven User
Yeah, it's actually not breaking the dl as expected but the fact that it's 
obfuscating something like foo-8.0-SNAPSHOT is nuts...

On Tuesday, March 27, 2012 4:02:45 PM UTC-4, gboissinot wrote:
>
> Mask passwords plugin tries to mask passwords values line by line of the 
> log file.
> If a line contains a string value matching a mask password value, the 
> value is replaced by ''.
> Therefore, I think you have an another problem.
> Mask-passwords plugin provides here only a display issue.
>
>
> Hi all - 
>>
>> I'm using the password masking plugin but when I use the maven release 
>> plugin, I can see that it's masking out other parameters (that are NOT 
>> checked in the main jenkins config section).
>>
>> My builds end up failing because maven is trying to retrieve a GAV of 
>> something like foo:bar: - quite literally.  Obviously there's no 
>> version "".
>>
>> Anyone else seeing these two being combined to ill effect?
>>
>
>

Re: email-ext - request for another jelly script example

2012-03-27 Thread Slide
You can use the PROJECT_DEFAULT_CONTENT in the triggers for them to use the
same content as you specified in the main area for the content.

On Tue, Mar 27, 2012 at 1:48 PM, dpreilan  wrote:

> Create your groovy script and place in under your $JENKINS_HOME/email-
> templates. Create the email-templates directory if needed.
> Say you call it foo.template.
>
> In your jenkins job(s), configure your "Editable Email Notification"
> Content area, like:
>
> ${SCRIPT,template="foo.template"}
>
> Make sure you set 'Content Type' correctly (hml or text) based on what
> output you are giving.
> Also, if you have configured seperate triggers under advanced for
> failured, fixed, ..., you might need to added the content there as
> well which is what I do.
>
> Doug
>
> On Mar 24, 6:08 am, Chris Withers  wrote:
> > On 24/03/2012 00:48, Slide wrote:
> >
> >
> >
> >
> >
> > > I use something like this in my groovy template
> >
> > > // the goal is to find the top level job which should contain the
> changelist
> > > def upstreamBuild = null
> > > def cause = build.causes.find {
> > >  if(it instanceof hudson.model.Cause.UpstreamCause) {
> > >  return true
> > >  }
> > >  return false
> > > }
> >
> > > while(cause != null) {
> > >  upstreamBuild =
> > >
> hudson.model.Hudson.instance.getItem(cause.upstreamProject).getBuildByNumbe­r(cause.upstreamBuild)
> > >  cause = upstreamBuild.causes.find {
> > >  return (it instanceof hudson.model.Cause.UpstreamCause);
> > >  }
> > > }
> >
> > > Then I check if upstreamBuild is null or not, and if its not, I have
> > > access to its information like this:
> >
> > > def changeSet = upstreamBuild.changeSet
> >
> > > And you can get the info you are looking for from there.
> >
> > Wow, cool, I'm afraid I'm a bit clueless though...
> >
> > Where do I put the code you've written above? File on disk or box in UI?
> > (it either case, where and called what?)
> >
> > Once I've done that, how do I wire it into the email-ext template?
> >
> > cheers,
> >
> > Chris
> >
> > --
> > Simplistix - Content Management, Batch Processing & Python Consulting
> > -http://www.simplistix.co.uk- Hide quoted text -
> >
> > - Show quoted text -




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


Want the status of all forked jobs, failing using Join Plugin

2012-03-27 Thread kenstir
My goal is to launch an "all-platforms" job with parameters (SVN rev and 
email addresses) that spawns multiple jobs.  When all jobs are done I would 
prefer a single email with the SVN rev and email addresses and success 
status of all jobs.  Am I dreaming?

So far I tried the Join Plugin and I am not happy.  The only thing that 
works is to have an unparameterized job as the join trigger.

The way I tried to implement it was this:

all-platforms job: ken-all
  - parameterized with SVN_REVISION and MAILTO
  - Trigger parameterized build on other projects: ken-android, ken-ios
  - join trigger
 - Run post-build actions at join:
 Trigger parameterized build on other projects: ken-join
 Trigger when build is: Complete

When I run it, the downstream jobs do not get run and I see this in the 
console:

Started by user anonymous 
Building remotely on buildmac1 
 in workspace 
/Users/jenkins/workspace/ken-all
Project ken-all still waiting for 2 builds to complete
[parameterized-trigger] Downstream builds will not be triggered.
[parameterized-trigger] Downstream builds will not be triggered.
Notifying upstream projects of job completion
Finished: SUCCESS


My Environment:
  jenkins 1.457
  Join Plugin 1.13
  Build Pipeline Plugin 1.2.3
  Parameterized Trigger Plugin 2.13

Suggestions welcome!

Regards,
Ken



Re: email-ext - request for another jelly script example

2012-03-27 Thread dpreilan
Create your groovy script and place in under your $JENKINS_HOME/email-
templates. Create the email-templates directory if needed.
Say you call it foo.template.

In your jenkins job(s), configure your "Editable Email Notification"
Content area, like:

${SCRIPT,template="foo.template"}

Make sure you set 'Content Type' correctly (hml or text) based on what
output you are giving.
Also, if you have configured seperate triggers under advanced for
failured, fixed, ..., you might need to added the content there as
well which is what I do.

Doug

On Mar 24, 6:08 am, Chris Withers  wrote:
> On 24/03/2012 00:48, Slide wrote:
>
>
>
>
>
> > I use something like this in my groovy template
>
> > // the goal is to find the top level job which should contain the changelist
> > def upstreamBuild = null
> > def cause = build.causes.find {
> >      if(it instanceof hudson.model.Cause.UpstreamCause) {
> >          return true
> >      }
> >      return false
> > }
>
> > while(cause != null) {
> >      upstreamBuild =
> > hudson.model.Hudson.instance.getItem(cause.upstreamProject).getBuildByNumbe­r(cause.upstreamBuild)
> >      cause = upstreamBuild.causes.find {
> >          return (it instanceof hudson.model.Cause.UpstreamCause);
> >      }
> > }
>
> > Then I check if upstreamBuild is null or not, and if its not, I have
> > access to its information like this:
>
> > def changeSet = upstreamBuild.changeSet
>
> > And you can get the info you are looking for from there.
>
> Wow, cool, I'm afraid I'm a bit clueless though...
>
> Where do I put the code you've written above? File on disk or box in UI?
> (it either case, where and called what?)
>
> Once I've done that, how do I wire it into the email-ext template?
>
> cheers,
>
> Chris
>
> --
> Simplistix - Content Management, Batch Processing & Python Consulting
>             -http://www.simplistix.co.uk- Hide quoted text -
>
> - Show quoted text -


Re: EnvInject: injecting environment variables from URL

2012-03-27 Thread Grégory Boissinot
Sorry, it was a regression.
Fixed in shared-objects plugin 0.21

On Mon, Mar 26, 2012 at 10:17 PM, John Vacz <
mailing.list.collect...@googlemail.com> wrote:

> **
> Sorry, forgot to say, that the redirection on save button works. The
> errors are only present in log file, no error messages on web pages, but
> the objects are not saved.
>
>
> On 25.03.2012 16:02, Grégory Boissinot wrote:
>
> It should be fix with SharedObjects plugin 0.20.
>
> On Fri, Mar 23, 2012 at 7:13 AM, John Vacz <
> mailing.list.collect...@googlemail.com> wrote:
>
>>  I have form submission problem on the shared objects configure page when
>> I access Jenkins through a local proxy (ssl tunneling). I got  a "server
>> not found" page when I click the "save" button, Jenkins was trying to
>> submit/redirect to https://real-server-name/jenkins//manage, instead of
>> (my guess) https://my-local-proxy/jenkins/manage.
>>
>> Is there any way to get around this? I tried lynx/w3m on the remote
>> server, but they seem to have difficulties dealing with the "drop down
>> button" gadget.
>>
>> On 18.03.2012 22:51, Grégory Boissinot wrote:
>>
>> Thanks for testing EnvInject plugin.
>>
>> EnvInject is aimed at managing environment variables.
>> For your need, you can use the Shared Objects plugin.
>> It's a complement to the EnvInject plugin. It enables you to share
>> objects in your environment (such as in your case a properties files
>> through an URL) and inject its content as environment variables with the
>> EnvInject plugin.
>>
>> You define your shared objects in the global Jenkins configuration
>> (>Manage Jenkins> Shared Objects) and check 'Propagate shared objects' in
>> the 'Prepare an environment for the job run' section.
>> Shared objects will be computed dynamically and the results will be
>> injected as environment variables for each job build.
>>
>> https://wiki.jenkins-ci.org/display/JENKINS/SharedObjects+Plugin
>>
>>
>> On Fri, Mar 16, 2012 at 10:43 AM, John Vacz <
>> mailing.list.collect...@googlemail.com> wrote:
>>
>>> Can EnvInject plugin inject enviroment variables defined in .properties
>>> file from a URL? I tried but it did not work. Have i missed something
>>> obvious?
>>>
>>> Our particular use case is that we need to inject some mail address
>>> lists as environment variables to be used by Email-ext plugin, and it would
>>> be very handy if we can just inject those variables directly from a http
>>> server (or our anonymous SVN in this particular case). Meanwhile I add a
>>> shell script to  download the .properties file and then use EnvInject to
>>> inject them.
>>>
>>> Furthermore, the variables are actually "global", it would be great if
>>> we do not need to inject them in every job, but globally in Jenkins. I
>>> noticed that in Jenkins configure screen, there is a "Prepare jobs
>>> environment" section (provided by EnvInject?), it seems that one can inject
>>> viarables from a file with absolute path. But have some concerns: a) this
>>> injection is rather "static", as the help stated "You must restart the node
>>> (master/slave) for the consideration of this property", that means the
>>> variables cannot be changed on the fly (I did not get a chance to test
>>> this, so I might be wrong); b) I am not sure if this injection is
>>> transparent in a master-slave setting.
>>>
>>> Any suggestion is appreciated.
>>>
>>
>>
>>
>
>


Re: password masking plugin too aggressive

2012-03-27 Thread Grégory Boissinot
Mask passwords plugin tries to mask passwords values line by line of the
log file.
If a line contains a string value matching a mask password value, the value
is replaced by ''.
Therefore, I think you have an another problem.
Mask-passwords plugin provides here only a display issue.

On Tue, Mar 27, 2012 at 8:57 PM, Maven User  wrote:

> Hi all -
>
> I'm using the password masking plugin but when I use the maven release
> plugin, I can see that it's masking out other parameters (that are NOT
> checked in the main jenkins config section).
>
> My builds end up failing because maven is trying to retrieve a GAV of
> something like foo:bar: - quite literally.  Obviously there's no
> version "".
>
> Anyone else seeing these two being combined to ill effect?
>


password masking plugin too aggressive

2012-03-27 Thread Maven User
Hi all - 

I'm using the password masking plugin but when I use the maven release 
plugin, I can see that it's masking out other parameters (that are NOT 
checked in the main jenkins config section).

My builds end up failing because maven is trying to retrieve a GAV of 
something like foo:bar: - quite literally.  Obviously there's no 
version "".

Anyone else seeing these two being combined to ill effect?


Re: Questions about promoted builds plugin, PROMOTED_NUMBER, and deploy to maven repo

2012-03-27 Thread Carter Sanders
I now see this is probably related to 
JENKINS-11766



Re: After 1.451 -> 1.456 upgrade, jobs are not dequeueing

2012-03-27 Thread Cees Bos
We face a similar issue with 1.456.
I reported ticket  https://issues.jenkins-ci.org/browse/JENKINS-13245  for
this.

Regards,
Cees

On Tue, Mar 27, 2012 at 5:22 PM, Vincent Latombe
wrote:

> Hello,
>
> I believe this is caused by
> https://issues.jenkins-ci.org/browse/JENKINS-12994
>
> Vincent
>
>
>
> 2012/3/27 kenstir 
>
>> I see this issue on jenkins 1.457 as well, but only when another build
>> polling SVN is in the "quiet period".  That is, my manual build is queued
>> behind a build in the quiet period, and mine does not dequeue.
>
>
>


Re: Can you recommend a jenkins-friendly C++ code coverage tool?

2012-03-27 Thread Mark Waite
I configured gcc with lcov output to HTML and used a plugin that let me link to 
the lcov HTML output.  It was fast and easy to configure and has worked well 
enough for my needs.

Mark Waite



>
> From: Chris Withers 
>To: jenkinsci-users@googlegroups.com 
>Sent: Tuesday, March 27, 2012 2:40 AM
>Subject: Can you recommend a jenkins-friendly C++ code coverage tool?
> 
>Hi All,
>
>Which C++ code coverage tool would you guys recommend to get a good 
>understanding of how much code is being covered by a Boost-based test of unit 
>tests and which works well with Jenkins?
>
>Commercial tools are fine, provided they're good enough to justify their cost 
>:-)
>
>cheers,
>
>Chris
>
>-- Simplistix - Content Management, Batch Processing & Python Consulting
>            - http://www.simplistix.co.uk
>
>
>

Re: artifactory plugin : simple zip upload

2012-03-27 Thread Yoav Landman
The latest version of the Jenkins Artifactory plugin (2.0.6) supports generic
deployment from freestyle builds, which is probably what you are after. It
allows you to pick up any custom files for deployment and map them to a
custom deploy path.
See "Configuring Generic (Freestyle) Builds" at
https://wiki.jenkins-ci.org/display/JENKINS/Artifactory+Plugin

--
View this message in context: 
http://jenkins.361315.n4.nabble.com/artifactory-plugin-simple-zip-upload-tp4484660p4500478.html
Sent from the Jenkins users mailing list archive at Nabble.com.


Re: View list of builds organised by branch?

2012-03-27 Thread seanh
On Tue, Mar 27, 2012 at 05:16:11PM +0200, Vincent Latombe wrote:
> Hello,
> 
> that's a good idea, I guess it would require an alternative view of the
> build history that would 'group' the builds by branch.

Yes, exactly. And sort the groups by time of latest build, so that
recently built branches appear near the top of the page.


Re: Switch JDK between build steps

2012-03-27 Thread domi
you could use this plugin: 
https://wiki.jenkins-ci.org/display/JENKINS/Tool+Environment+Plugin
to reuse the JDK definitions (JAVA_HOME) for your scripts - this way you at 
least don't have to hard code JAVA_HOME…
/imod

On 27.03.2012, at 16:25, Andreas wrote:

> Hi,
> 
> my current favorite solution is to define a special ant and maven version as 
> Jenkins tools. Lets say ant-sonar and maven-sonar. Once installed I add to 
> the ant / mvn script of these tool installations:
> 
> ## Special code to get a fix 1.6 jdk to run sonar 2.14
> JAVA_HOME=/usr/share/jdk1.6.0_20
> export JAVA_HOME
> echo \*\*\* Using hardcoded JAVA_HOME in \"`basename $0`\" pointing to 
> \"$JAVA_HOME\". >&2
> 
> It is still kind of a hack but it limits the effort that has to go in the 
> reconfiguration of each job.
> 
> 
> Kind Regards, Andreas.
> 
> Am Montag, 26. März 2012 11:54:15 UTC+2 schrieb Andreas:
> Hi,
> 
> 
> I face the issue that I have to use different JDKs for different build steps. 
> Namely I need to invoke the compile step in ant with a 1.5 JDK and run the 
> sonar ant target with a 1.6 JDK. There is no easy way to split this job, so a 
> multi job setup is no solution here. Also I do not want to fork into a 
> different JDK in ant manually - actually only Jenkins knows where the JDK is 
> installed on the build node. 
> 
> I face a similar requirement for maven goals. 
>  
> I'm thinking about extending the ANT plugin to allow JDK selection in the 
> advanced options and the set JAVA_HOME accordingly. 
> 
> Is there an easy, already existing solution? Any ideas are welcome.
> 
> 
> Kind Regards, Andreas.
> 
> Am Montag, 26. März 2012 11:54:15 UTC+2 schrieb Andreas:
> Hi,
> 
> 
> I face the issue that I have to use different JDKs for different build steps. 
> Namely I need to invoke the compile step in ant with a 1.5 JDK and run the 
> sonar ant target with a 1.6 JDK. There is no easy way to split this job, so a 
> multi job setup is no solution here. Also I do not want to fork into a 
> different JDK in ant manually - actually only Jenkins knows where the JDK is 
> installed on the build node. 
> 
> I face a similar requirement for maven goals. 
>  
> I'm thinking about extending the ANT plugin to allow JDK selection in the 
> advanced options and the set JAVA_HOME accordingly. 
> 
> Is there an easy, already existing solution? Any ideas are welcome.
> 
> 
> Kind Regards, Andreas.
> 
> Am Montag, 26. März 2012 11:54:15 UTC+2 schrieb Andreas:
> Hi,
> 
> 
> I face the issue that I have to use different JDKs for different build steps. 
> Namely I need to invoke the compile step in ant with a 1.5 JDK and run the 
> sonar ant target with a 1.6 JDK. There is no easy way to split this job, so a 
> multi job setup is no solution here. Also I do not want to fork into a 
> different JDK in ant manually - actually only Jenkins knows where the JDK is 
> installed on the build node. 
> 
> I face a similar requirement for maven goals. 
>  
> I'm thinking about extending the ANT plugin to allow JDK selection in the 
> advanced options and the set JAVA_HOME accordingly. 
> 
> Is there an easy, already existing solution? Any ideas are welcome.
> 
> 
> Kind Regards, Andreas.
> 
> Am Montag, 26. März 2012 11:54:15 UTC+2 schrieb Andreas:
> Hi,
> 
> 
> I face the issue that I have to use different JDKs for different build steps. 
> Namely I need to invoke the compile step in ant with a 1.5 JDK and run the 
> sonar ant target with a 1.6 JDK. There is no easy way to split this job, so a 
> multi job setup is no solution here. Also I do not want to fork into a 
> different JDK in ant manually - actually only Jenkins knows where the JDK is 
> installed on the build node. 
> 
> I face a similar requirement for maven goals. 
>  
> I'm thinking about extending the ANT plugin to allow JDK selection in the 
> advanced options and the set JAVA_HOME accordingly. 
> 
> Is there an easy, already existing solution? Any ideas are welcome.
> 
> 
> Kind Regards, Andreas.
> 
> Am Montag, 26. März 2012 11:54:15 UTC+2 schrieb Andreas:
> Hi,
> 
> 
> I face the issue that I have to use different JDKs for different build steps. 
> Namely I need to invoke the compile step in ant with a 1.5 JDK and run the 
> sonar ant target with a 1.6 JDK. There is no easy way to split this job, so a 
> multi job setup is no solution here. Also I do not want to fork into a 
> different JDK in ant manually - actually only Jenkins knows where the JDK is 
> installed on the build node. 
> 
> I face a similar requirement for maven goals. 
>  
> I'm thinking about extending the ANT plugin to allow JDK selection in the 
> advanced options and the set JAVA_HOME accordingly. 
> 
> Is there an easy, already existing solution? Any ideas are welcome.
> 
> 
> Kind Regards, Andreas.



Re: Import people from file

2012-03-27 Thread domi
a simple groovy script should do...

On 27.03.2012, at 16:04, Breno C. Costa wrote:

> Hi everyone,
> 
> I would like to import people list (name and email) from a file,
> because I have many people in my project's svn, and I need to send
> post build email to him.
> 
> Best regards,
> Breno C. Costa



Re: After 1.451 -> 1.456 upgrade, jobs are not dequeueing

2012-03-27 Thread Vincent Latombe
Hello,

I believe this is caused by
https://issues.jenkins-ci.org/browse/JENKINS-12994

Vincent


2012/3/27 kenstir 

> I see this issue on jenkins 1.457 as well, but only when another build
> polling SVN is in the "quiet period".  That is, my manual build is queued
> behind a build in the quiet period, and mine does not dequeue.


Re: After 1.451 -> 1.456 upgrade, jobs are not dequeueing

2012-03-27 Thread kenstir
I see this issue on jenkins 1.457 as well, but only when another build 
polling SVN is in the "quiet period".  That is, my manual build is queued 
behind a build in the quiet period, and mine does not dequeue.

Re: View list of builds organised by branch?

2012-03-27 Thread Vincent Latombe
Hello,

that's a good idea, I guess it would require an alternative view of the
build history that would 'group' the builds by branch. This is
SCM-specific, as the branch information is part of Git Data (and not all
SCM support building several branches on the same job).

I guess the build history layout could be extracted as an extension point,
then a plugin could provide additional views depending on the needs.

Vincent


2012/3/27 seanh 

> Hey, I've setup a Jenkins job for our Python app with the Git and
> GitHub plugins. Whenever someone pushes a new commit to any branch of
> our GitHub project, Jenkins checks out that commit and runs a script
> which runs our unit tests using nose, and if you view the build in
> Jenkins you can see a nice JUnit report of which tests failed. Great!
>
> But the problem is that the Jenkins web interface for the job just
> presents a list of all builds in chronological order.
>
> What we really want is to see a list of all branches that Jenkins has
> built, with the most recently built branches at the top, and for each
> branch a list of links to all the builds for that branch.
>
> As a developer, when you visit the Jenkins page for our job, the
> question you have in mind is: did all the tests pass for the latest
> commit on my branch? With the default interface you'd have to click on
> build after build until you find the latest one corresponding to your
> branch.
>
> Is there a way to get the kind of view we want in Jenkins?
>
> Thanks
>


View list of builds organised by branch?

2012-03-27 Thread seanh
Hey, I've setup a Jenkins job for our Python app with the Git and
GitHub plugins. Whenever someone pushes a new commit to any branch of
our GitHub project, Jenkins checks out that commit and runs a script
which runs our unit tests using nose, and if you view the build in
Jenkins you can see a nice JUnit report of which tests failed. Great!

But the problem is that the Jenkins web interface for the job just
presents a list of all builds in chronological order.

What we really want is to see a list of all branches that Jenkins has
built, with the most recently built branches at the top, and for each
branch a list of links to all the builds for that branch.

As a developer, when you visit the Jenkins page for our job, the
question you have in mind is: did all the tests pass for the latest
commit on my branch? With the default interface you'd have to click on
build after build until you find the latest one corresponding to your
branch.

Is there a way to get the kind of view we want in Jenkins?

Thanks


After 1.451 -> 1.456 upgrade, jobs are not dequeueing

2012-03-27 Thread Paul Weiss
After upgrading I have several jobs in queues that are just not dequeuing.
 If they are tied jobs the tooltip says "Waiting for next executor on
".  If they are untied jobs the tooltip says "Waiting for
next executor".

I have executors available, both for the tied and untied jobs, but they are
not being scheduled.  I've tried disconnecting and reconnecting the slaves,
and adding and removing the executor count. Nothing works.

Sometimes if I delete an unrelated slave, everything will wake up and the
jobs get scheduled.  But right now, my farm is very inefficient.

The only relevant changse that I can see in the logs, that touches queues,
are these:

Fixed a bug in executor/queue filtering for matrix projects. (pull
394
)

Fixed bug where a queued build could start while the previous build was
still in its post production state.


Re: Switch JDK between build steps

2012-03-27 Thread Andreas
Hi,

my current favorite solution is to define a special ant and maven version 
as Jenkins tools. Lets say ant-sonar and maven-sonar. Once installed I add 
to the ant / mvn script of these tool installations:

## Special code to get a fix 1.6 jdk to run sonar 2.14
JAVA_HOME=/usr/share/jdk1.6.0_20
export JAVA_HOME
echo \*\*\* Using hardcoded JAVA_HOME in \"`basename $0`\" pointing to 
\"$JAVA_HOME\". >&2

It is still kind of a hack but it limits the effort that has to go in the 
reconfiguration of each job.


Kind Regards, Andreas.

Am Montag, 26. März 2012 11:54:15 UTC+2 schrieb Andreas:
>
> Hi,
>
>
> I face the issue that I have to use different JDKs for different build 
> steps. Namely I need to invoke the compile step in ant with a 1.5 JDK and 
> run the sonar ant target with a 1.6 JDK. There is no easy way to split this 
> job, so a multi job setup is no solution here. Also I do not want to fork 
> into a different JDK in ant manually - actually only Jenkins knows where 
> the JDK is installed on the build node. 
>
> I face a similar requirement for maven goals. 
>  
> I'm thinking about extending the ANT plugin to allow JDK selection in the 
> advanced options and the set JAVA_HOME accordingly. 
>
> Is there an easy, already existing solution? Any ideas are welcome.
>
>
> Kind Regards, Andreas.
>

Am Montag, 26. März 2012 11:54:15 UTC+2 schrieb Andreas:
>
> Hi,
>
>
> I face the issue that I have to use different JDKs for different build 
> steps. Namely I need to invoke the compile step in ant with a 1.5 JDK and 
> run the sonar ant target with a 1.6 JDK. There is no easy way to split this 
> job, so a multi job setup is no solution here. Also I do not want to fork 
> into a different JDK in ant manually - actually only Jenkins knows where 
> the JDK is installed on the build node. 
>
> I face a similar requirement for maven goals. 
>  
> I'm thinking about extending the ANT plugin to allow JDK selection in the 
> advanced options and the set JAVA_HOME accordingly. 
>
> Is there an easy, already existing solution? Any ideas are welcome.
>
>
> Kind Regards, Andreas.
>

Am Montag, 26. März 2012 11:54:15 UTC+2 schrieb Andreas:
>
> Hi,
>
>
> I face the issue that I have to use different JDKs for different build 
> steps. Namely I need to invoke the compile step in ant with a 1.5 JDK and 
> run the sonar ant target with a 1.6 JDK. There is no easy way to split this 
> job, so a multi job setup is no solution here. Also I do not want to fork 
> into a different JDK in ant manually - actually only Jenkins knows where 
> the JDK is installed on the build node. 
>
> I face a similar requirement for maven goals. 
>  
> I'm thinking about extending the ANT plugin to allow JDK selection in the 
> advanced options and the set JAVA_HOME accordingly. 
>
> Is there an easy, already existing solution? Any ideas are welcome.
>
>
> Kind Regards, Andreas.
>

Am Montag, 26. März 2012 11:54:15 UTC+2 schrieb Andreas:
>
> Hi,
>
>
> I face the issue that I have to use different JDKs for different build 
> steps. Namely I need to invoke the compile step in ant with a 1.5 JDK and 
> run the sonar ant target with a 1.6 JDK. There is no easy way to split this 
> job, so a multi job setup is no solution here. Also I do not want to fork 
> into a different JDK in ant manually - actually only Jenkins knows where 
> the JDK is installed on the build node. 
>
> I face a similar requirement for maven goals. 
>  
> I'm thinking about extending the ANT plugin to allow JDK selection in the 
> advanced options and the set JAVA_HOME accordingly. 
>
> Is there an easy, already existing solution? Any ideas are welcome.
>
>
> Kind Regards, Andreas.
>

Am Montag, 26. März 2012 11:54:15 UTC+2 schrieb Andreas:
>
> Hi,
>
>
> I face the issue that I have to use different JDKs for different build 
> steps. Namely I need to invoke the compile step in ant with a 1.5 JDK and 
> run the sonar ant target with a 1.6 JDK. There is no easy way to split this 
> job, so a multi job setup is no solution here. Also I do not want to fork 
> into a different JDK in ant manually - actually only Jenkins knows where 
> the JDK is installed on the build node. 
>
> I face a similar requirement for maven goals. 
>  
> I'm thinking about extending the ANT plugin to allow JDK selection in the 
> advanced options and the set JAVA_HOME accordingly. 
>
> Is there an easy, already existing solution? Any ideas are welcome.
>
>
> Kind Regards, Andreas.
>


Re: Import people from file

2012-03-27 Thread Breno C. Costa
Any suggestion about this?

On 27 mar, 11:04, "Breno C. Costa"  wrote:
> Hi everyone,
>
> I would like to import people list (name and email) from a file,
> because I have many people in my project's svn, and I need to send
> post build email to him.
>
> Best regards,
> Breno C. Costa


Import people from file

2012-03-27 Thread Breno C. Costa
Hi everyone,

I would like to import people list (name and email) from a file,
because I have many people in my project's svn, and I need to send
post build email to him.

Best regards,
Breno C. Costa


Re: git repository clone once

2012-03-27 Thread Ido Ran
I didn't try to --reference option, I will.
I also understand that the repository will be clone to each job, in my case
it's matrix job so it's even more clones.
I hope someone will find a way.

I'll post here if I'll manage to find a solution.

Ido

On Tue, Mar 27, 2012 at 12:45 PM, Albert Callarisa wrote:

> I asked something similar recently but the reply didn't help me. Did you
> try with the --reference option in git? I tried but didn't help
> I'm still trying to figure out how to make it. I'm fine with a clone in
> each computer, but once is cloned I would like to just pull from the same
> place, but the workspace of the jobs is kind of random so it's fresh new
> always...
>
>
> On Tue, Mar 27, 2012 at 4:57 PM, Ido Ran  wrote:
>
>> Hi,
>> We use Jenkins to build our applications which are stored in git
>> repository.
>> We have several different jobs for building different configuration and
>> deployment of our applications.
>> Currently each project pull it's own clone of the git repository from our
>> central repository which takes about 7 minutes for clean build.
>>
>> We try to have single job that clone the remote repository and have all
>> the other jobs pull from that repository but we fail to do it due to
>> locking problems.
>> Is it possible and should we persevere on that approach or is it better
>> to let each job pull from the remote repository.
>>
>> Ido.
>>
>
>
>
> --
> Albert Callarisa Roca
>


Re: git repository clone once

2012-03-27 Thread Albert Callarisa
I asked something similar recently but the reply didn't help me. Did you
try with the --reference option in git? I tried but didn't help
I'm still trying to figure out how to make it. I'm fine with a clone in
each computer, but once is cloned I would like to just pull from the same
place, but the workspace of the jobs is kind of random so it's fresh new
always...

On Tue, Mar 27, 2012 at 4:57 PM, Ido Ran  wrote:

> Hi,
> We use Jenkins to build our applications which are stored in git
> repository.
> We have several different jobs for building different configuration and
> deployment of our applications.
> Currently each project pull it's own clone of the git repository from our
> central repository which takes about 7 minutes for clean build.
>
> We try to have single job that clone the remote repository and have all
> the other jobs pull from that repository but we fail to do it due to
> locking problems.
> Is it possible and should we persevere on that approach or is it better to
> let each job pull from the remote repository.
>
> Ido.
>



-- 
Albert Callarisa Roca


Re: Jobs triggered only by changes in certain subdirectories?

2012-03-27 Thread B.Latinville
Hi,

Maybe your git plugin is outdated.

Include regions were added in November :

https://github.com/jenkinsci/git-plugin/pull/49

Bertrand.

On Mar 23, 8:47 am, Dave Ohlsson  wrote:
> Hi,
>
> I could not find any "Included Regions" field, but there is an
> "Excluded Regions" field, and that should be just as good.
>
> Thank you for your help.
>
> -- dave
>
> On Mar 22, 3:25 pm, "B.Latinville"  wrote:
>
>
>
>
>
>
>
> > Hi Dave,
>
> > You should be able to do this with the "Included Regions" field from
> > git plugin.
> > You get it by clicking on advanced below "branches to build".
>
> > BR,
>
> > Bertrand.
>
> > On Mar 22, 10:46 am, Dave Ohlsson  wrote:
>
> > > Hi,
>
> > > Suppose we have a git repository that contains these subdirectories:
> > > * common
> > > * module_a
> > > * module_b
>
> > > Both module_a and module_b use code in common.
>
> > > We have two jobs:
> > > * job_a builds and tests module_a,
> > > * job_b builds and tests module_b.
>
> > > With the git plugin, you can configure both jobs to be triggered by
> > > any change in the repository. But then, job_a will be also triggered
> > > by changes in module_b - and job_b will also be triggered by changes
> > > in module_a. We want to avoid such unnecessary triggers.
>
> > > In other words, we would want to configure the jobs as follows:
> > > * job_a is only triggered by changes in common and module_a,
> > > * job_b is only triggered by changes in common and module_b.
>
> > > There must be a way to do this with the git plugin, but I am unable to
> > > find it.
>
> > > Git submodules are not an option here, because we are not prepared to
> > > pay for the extra complexity that they incur.
>
> > > Any help?
>
> > > -- dave


git repository clone once

2012-03-27 Thread Ido Ran
Hi,
We use Jenkins to build our applications which are stored in git repository.
We have several different jobs for building different configuration and 
deployment of our applications.
Currently each project pull it's own clone of the git repository from our 
central repository which takes about 7 minutes for clean build.

We try to have single job that clone the remote repository and have all the 
other jobs pull from that repository but we fail to do it due to locking 
problems.
Is it possible and should we persevere on that approach or is it better to 
let each job pull from the remote repository.

Ido.


Re: Can you recommend a jenkins-friendly C++ code coverage tool?

2012-03-27 Thread Jan Seidel
Hi Chris,

we will soon go for Sonar
http://www.sonarsource.org/features/ not sure if that fits your
expectation. I'm even not sure if it fits ours XD
But it seems to be very powerful and versatile not to mention that the
sonar server, that runs separately can be connected to jenkins via a
jenkins plugin

Take care
Jan


On 27 Mrz., 09:54, Chris Withers  wrote:
> On 27/03/2012 08:48, Zoltan Gyarmati wrote:
>
> > well, it depends on your compiler,
>
> We use GCC.
>
> > but you might want to check out gcov,
> > with the gcovr script and the Cobertura plugin. see for example here:
>
> >http://www.semipol.de/archives/320
>
> Cool, looks interesting, what others do people recommend?
>
> cheers,
>
> Chris
>
> --
> Simplistix - Content Management, Batch Processing & Python Consulting
>              -http://www.simplistix.co.uk


Re: Can you recommend a jenkins-friendly C++ code coverage tool?

2012-03-27 Thread Chris Withers

On 27/03/2012 08:48, Zoltan Gyarmati wrote:

well, it depends on your compiler,


We use GCC.


but you might want to check out gcov,
with the gcovr script and the Cobertura plugin. see for example here:

http://www.semipol.de/archives/320


Cool, looks interesting, what others do people recommend?

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk


Re: Can you recommend a jenkins-friendly C++ code coverage tool?

2012-03-27 Thread Zoltan Gyarmati

Hi Chris,

well, it depends on your compiler, but you might want to check out gcov, 
with the gcovr script and the Cobertura plugin. see for example here:


http://www.semipol.de/archives/320

On 03/27/2012 09:40 AM, Chris Withers wrote:

Hi All,

Which C++ code coverage tool would you guys recommend to get a good 
understanding of how much code is being covered by a Boost-based test 
of unit tests and which works well with Jenkins?


Commercial tools are fine, provided they're good enough to justify 
their cost :-)


cheers,

Chris





Can you recommend a jenkins-friendly C++ code coverage tool?

2012-03-27 Thread Chris Withers

Hi All,

Which C++ code coverage tool would you guys recommend to get a good 
understanding of how much code is being covered by a Boost-based test of 
unit tests and which works well with Jenkins?


Commercial tools are fine, provided they're good enough to justify their 
cost :-)


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk


Re: Switch JDK between build steps

2012-03-27 Thread Andreas
Hi,

this sounds like a plan. I still need to convert the build steps into shell 
script steps but it should be possible to find all tools based on the 
environment variables. I would loose the install magic, since there is no 
way for Jenkins to know which JDK the job uses but at least I've a chance 
to switch the JDK. Mid-term I think it would be cleaner to have the joce 
with the ANT/Maven build step. Might be other tools come up with the 
requirement to use a certain special JDK that is different than the one 
needed for the target platform - like Sonar 2.14.

Kind Regards, Andreas.



Am Montag, 26. März 2012 16:18:56 UTC+2 schrieb domi:
>
> Maybe this plugin helps, it lets you expose the different JDK HOMEs as 
> environment variables:
> https://wiki.jenkins-ci.org/display/JENKINS/Tool+Environment+Plugin
> /imod
>
> On 26.03.2012, at 15:55, Andreas wrote:
>
> Hi, 
>
> thanks for the feedback and the idea. Unfortunately I think, this will not 
> work in my setup. I've several builds running in parallel, also I want to 
> have the JDKs auto installed by Jenkins.
>
> Kind Regards, Andreas.
>
> Am Montag, 26. März 2012 13:15:33 UTC+2 schrieb Didier Durand:
>>
>> Hi,
>>
>> To my knowledge Jenkins launches a separate jvm for each step you 
>> configure in the "Build" section of your job configuration
>>
>> So, I would try to alternate your build steps under Ant with shell build 
>> steps and use these shell steps to switch the jvm/jre as you want  (via for 
>> example. the linux "alternatives" command)
>>
>>
>> regards 
>>
>> didier
>>
>>
>> Le lundi 26 mars 2012 11:54:15 UTC+2, Andreas a écrit :
>>>
>>> Hi,
>>>
>>>
>>> I face the issue that I have to use different JDKs for different build 
>>> steps. Namely I need to invoke the compile step in ant with a 1.5 JDK and 
>>> run the sonar ant target with a 1.6 JDK. There is no easy way to split this 
>>> job, so a multi job setup is no solution here. Also I do not want to fork 
>>> into a different JDK in ant manually - actually only Jenkins knows where 
>>> the JDK is installed on the build node. 
>>>
>>> I face a similar requirement for maven goals. 
>>>  
>>> I'm thinking about extending the ANT plugin to allow JDK selection in 
>>> the advanced options and the set JAVA_HOME accordingly. 
>>>
>>> Is there an easy, already existing solution? Any ideas are welcome.
>>>
>>>
>>> Kind Regards, Andreas.
>>>
>>
>