How to pass custom environment variable between jobs

2013-05-14 Thread Z W
Hi All

In the build section, we selected Use Shell to include our shell scripting
to run on a slave for job A.
This job A triggers Job B after completion.
Job B needs job A's paramterized parameters to run Job B task.
We have been unable to pass the our custom environment variable value to
Job B from A.
We tried using
export variableA
in the shell script box of the build section
and then tried setting
JobBParameter=${variableA}
in the post-action of parameterized parameter
Still it doesnt work.

Is there any other way to do it, to pass custom environment variable value
to Job B ?
We do not have the option of EnvInj plugin.

Thanks
Sincerely

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Access jenkins artifacts

2013-05-14 Thread Zigster
Thanks for the hints...!!

@DarkRift: yep that's what I'm trying to figure out: 

What methods of the Jenkins API to use for accessing the artifacts of a 
previous build (especially clover.xml) and to access a specific node and 
it's attribute...

Thanks again for assistance...

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




UnsupportedOperationException when performing a build step from Groovy

2013-05-14 Thread kormbrek
If I invoke the Copy Artifact plugin from a System Groovy script like this:
copyArtifact.perform(build, launcher, listener)
I get:
java.lang.UnsupportedOperationException
at 
hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:95)
Because Groovy picks the deprecated method taking Build instead of 
AbstractBuild.
Using an AbstractBuild typed reference does not help because Groovy's 
dynamic dispatch algorithm picks what it thinks is the most specific method 
(the deprecated one) and I get the same error.
This *does *work:
def perform = copyArtifact.class.getMethod("perform", AbstractBuild, 
Launcher, BuildListener)
perform.invoke(copyArtifact, build, launcher, listener)
But it feels *so wrong *to do that. I know there was a way to force Groovy 
to use static dispatch to a Groovy method but not to a Java method if I 
understand correctly.
Is there a better way that does not violate OOP concepts so badly?

Thanks,
Kevin

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




AUTO: Andreas Schilling/Twt-Gmbh is out of the office. (Rückkehr am 03.06.2013)

2013-05-14 Thread Andreas Schilling

Ich kehre zurück am 03.06.2013.

Bitte wenden Sie sich in dringenden Fällen an Dr. Thorsten Scheibler (thorsten.scheib...@twt-gmbh.de) oder telefonisch an das TWT Sekretariat Tel: +49-7158/1715-0.


Hinweis: Dies ist eine automatische Antwort auf Ihre Nachricht  "incorrect parameters passed to downstream build with Parameterized Trigger plugin" gesendet am 15.05.2013 01:03:56. 

Diese ist die einzige Benachrichtigung, die Sie empfangen werden, während diese Person abwesend ist.



-- 
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


Re: Problem with database configuration - help appreciated

2013-05-14 Thread Hassan Parthasarathy
I am setting up the DB connections so that I can use them in my jobs.
I am setting the CLASSPATH by setting up the environment variable in
Jenkins Environment configuration.
It is not BUILD that the build I am using or setting.

Thanks
Partha


On Tue, May 14, 2013 at 4:58 PM, Sami Tikka  wrote:

> Are you trying to ste up database connections for DB2 in Jenkins or in a
> build that is executed by Jenkins?
>
> Jave you set the CLASSPATH for Jenkins or in a build that is executed by
> Jenkins?
>
> How did you set the CLASSPATH? If you want to set it in a build, have you
> verified it is there? How?
>
> -- Sami
>
> ifxtechie  kirjoitti 14.5.2013 kello 18.42:
>
> > Hi,
> > I am trying to setup database connections for DB2 in Jenkins; But, I am
> getting the error as below:
> > class not found:com.ibm.db2.jcc.db2driver
> > I have included the environment variable to include the JDBC driver in
> the CLASSPATH .I know this does not make sense to expect the database
> connection to pick up this variable.
> > I have tested this in a standalone program and works fine.
> > I have invoked the similar java program as a job in Jenkins and it works.
> > But, when tried to setup the Database Connections, it fails with the
> above error.
> > Any suggestion/help is much appreciated.
> > Thanks
> > Partha
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Jenkins Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to jenkinsci-users+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/esq3QHSdjyg/unsubscribe?hl=en
> .
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Resend: Publish Over CIFS Plugin fails when used over internet

2013-05-14 Thread Mark Waite
I have seen poor results with CIFS over wide area network (in general, outside 
Jenkins).  My excuse was that CIFS is a file system sharing protocol, which 
makes it less suitable for a wide area network transport.  You might consider 
using a different transport (http, ftp, or scp).

Mark Waite



>
> From: Richard Otter 
>To: jenkinsci-users@googlegroups.com 
>Sent: Tuesday, May 14, 2013 6:28 PM
>Subject: Resend: Publish Over CIFS Plugin  fails when used over internet
> 
>
>
>This is a show stopper for us.  Any ideas?
>Thanks!
> 
> 
>I have started to use the "Publish Over CIFS Plugin" because I have tried to 
>move some of our build machines to Amazon EC2. 
>I formerly just did a file copy to our Windows server file share from the 
>Windows slaves because they were running as users with the correct 
>permissions. 
>Anyway, in the new environment where some builds may be coming from nodes 
>running as non-domain users, I figured I'd use this plugin with the "Always 
>transfer from master" option.
> 
>It works, sort of.
>Local build machines transfer the file reliably. However, from Amazon EC2 the 
>transfers never finish.
> 
>My "build artifact" (the setup.exe file) is about 150 MB. I can't get anything 
>to transfer bigger than 88 MB using the plugin. In the morning, the build 
>progress is bright red. I cancel the job and see:
> 
>18:16:10CIFS: Connecting from host [usherapp42]
>18:16:10CIFS: Connecting with configuration [PT-SoftwareDev] ...
>09:26:03CIFS: Disconnecting configuration [PT-SoftwareDev] ...
>09:26:03ERROR: Exception when publishing, exception message [null]
>09:26:03Build step 'Send build artifacts to a windows share' changed build 
>result to FAILURE
>09:26:03Build step 'Send build artifacts to a windows share' marked build as 
>failure
> 
>The wiki for the plugin talks about parameters like “Retries” that I don’t see 
>in either the Jenkins config or the job config.
>-- 
>You received this message because you are subscribed to a topic in the Google 
>Groups "Jenkins Users" group.
>To unsubscribe from this topic, visit 
>https://groups.google.com/d/topic/jenkinsci-users/dti8k78ysg4/unsubscribe?hl=en.
>To unsubscribe from this group and all its topics, send an email to 
>jenkinsci-users+unsubscr...@googlegroups.com.
>For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
-- 
>You received this message because you are subscribed to the Google Groups 
>"Jenkins Users" group.
>To unsubscribe from this group and stop receiving emails from it, send an 
>email to jenkinsci-users+unsubscr...@googlegroups.com.
>For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Automatic Tool Installation

2013-05-14 Thread Andrew
How do I tell a job/slave that it needs to install gradle?

I have added Groovy under the system configuration and set it up to install 
automatically.

When I run a job that requires groovy (its attached to Windows slave) I get:
java.IO.Exception: Cannot run program "groovy" (in directory 
"c:\jenkins\workspace\DatabaseBackups-1-List"): CreateProcess error=2, The 
system cannot find the file specified


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Resend: Publish Over CIFS Plugin fails when used over internet

2013-05-14 Thread Richard Otter
This is a show stopper for us.  Any ideas?

Thanks!

 

 

I have started to use the "Publish Over CIFS Plugin" because I have tried to
move some of our build machines to Amazon EC2. 

I formerly just did a file copy to our Windows server file share from the
Windows slaves because they were running as users with the correct
permissions. 

Anyway, in the new environment where some builds may be coming from nodes
running as non-domain users, I figured I'd use this plugin with the "Always
transfer from master" option.

 

It works, sort of.

Local build machines transfer the file reliably. However, from Amazon EC2
the transfers never finish.

 

My "build artifact" (the setup.exe file) is about 150 MB. I can't get
anything to transfer bigger than 88 MB using the plugin. In the morning, the
build progress is bright red. I cancel the job and see:

 

18:16:10 CIFS: Connecting from host [usherapp42]

18:16:10 CIFS: Connecting with configuration [PT-SoftwareDev] ...

09:26:03 CIFS: Disconnecting configuration [PT-SoftwareDev] ...

09:26:03 ERROR: Exception when publishing, exception message [null]

09:26:03 Build step 'Send build artifacts to a windows share' changed build
result to FAILURE

09:26:03 Build step 'Send build artifacts to a windows share' marked build
as failure

 

The wiki for the plugin talks about parameters like "Retries" that I don't
see in either the Jenkins config or the job config.

-- 
You received this message because you are subscribed to a topic in the
Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/jenkinsci-users/dti8k78ysg4/unsubscribe?hl
=en.
To unsubscribe from this group and all its topics, send an email to
jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




A way to loop through a list of "options" set in built-in Choice parameter plugins and kick off a build?

2013-05-14 Thread Sam Xiao
I used the "built-in Choice parameter" for one of the job in my Jenkins.

I would like to know if there's a way or another plugin that does this:


   - loop through each item on the list of the "Choices" under 
   - start a build with the selected choice 
   - keep this cronjob running as a nightly build


I'm just trying to see if this is available or a workaround for this? If 
this doesn't exist, I might need to write a plugin for it.

Thanks,
Sam.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Using JELLY_SCRIPT template with email-ext shows only the literal string, not eht actual email

2013-05-14 Thread Slide
What version of email-ext are you using?


On Tue, May 14, 2013 at 4:39 PM, David Brossard  wrote:

>
> I have tried to add email notifications into Jenkins but I have been
> unable to get anything other than the default variables to work. I have
> tried adding
> $CHANGES
> ${CHANGES}
> and both show nothing in the email.
> I have tried adding the example: ${JELLY_SCRIPT,template=”html”}
> but it just shows literally ${JELLY_SCRIPT,template=”html”} in the email.
> Can someone please help me get the syntax correct? Ihave included a screen
> shot of my config. Here is an example email output from the that config.
> Notice no changes show up and the literal Jelly string.
>
> DEV-Build and Deploy - Build # 208 - Successful: Check console output at
> http://myserver:8080/job/DEV-Build%20and%20Deploy/208/ to view the
> results. ${JELLY_SCRIPT,template=”html”}
>
>
>
>
> 
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



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

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Using JELLY_SCRIPT template with email-ext shows only the literal string, not eht actual email

2013-05-14 Thread David Brossard



I have tried to add email notifications into Jenkins but I have been unable 
to get anything other than the default variables to work. I have tried 
adding 
$CHANGES
${CHANGES}
and both show nothing in the email. 
I have tried adding the example: ${JELLY_SCRIPT,template=”html”} 
but it just shows literally ${JELLY_SCRIPT,template=”html”} in the email. 
Can someone please help me get the syntax correct? Ihave included a screen 
shot of my config. Here is an example email output from the that config. 
Notice no changes show up and the literal Jelly string.

DEV-Build and Deploy - Build # 208 - Successful: Check console output at 
http://myserver:8080/job/DEV-Build%20and%20Deploy/208/ to view the results. 
${JELLY_SCRIPT,template=”html”}





-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




incorrect parameters passed to downstream build with Parameterized Trigger plugin

2013-05-14 Thread Dan Tenenbaum
Hi,

I have two multi-configuration projects, A and B.
Each job is configured to run on the same three nodes: the master (linux) 
and mac and windows slaves.

Project A is set up to trigger a build of B when A builds successfully, 
passing it the following predefined parameters (using the Parameterized 
Trigger plugin):

PREV_WORKSPACE=$WORKSPACE
PREV_JOB_NAME=$JOB_NAME
PREV_BUILD_TAG=$BUILD_TAG
PREV_BUILD_ID=$BUILD_ID
PREV_BUILD_DISPLAY_NAME=$BUILD_DISPLAY_NAME

For now, project B just calls a shell script that prints out some of these 
values. 
On the master, B says that $PREV_WORKSPACE is /var/lib/jenkins/workspace/A
which is correct. 
On the other nodes, though, it ALSO gives the same value for 
$PREV_WORKSPACE which is WRONG...the workspace path is different on each 
node.

Is this a bug? Can it be fixed?
Thanks,
Dan



-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Discard Old builds/Artifacts

2013-05-14 Thread teilo
Artifacts/builds will be discarded when any of the conditions are met and the 
job is run.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Manual deploy of the msbuild.zip plugin file into Jenkins

2013-05-14 Thread Adam Westhusing
Do you have direct access to the machine?  You should be able to put the
plugins in the Jenkins/plugins directory and then install the plugin
through the UI.  I believe if you already have it in the plugins directory,
Jenkins will use the local copy.


On Tue, May 14, 2013 at 3:48 PM, Sami Tikka  wrote:

> I believe Jenkins does not have any support for uploading msbuild/mstest
> into your Jenkins server. This is usually the case with build tools.
>
> -- Sami
>
> Matthew Wright  kirjoitti 14.5.2013 kello 22.24:
>
> > Due to firewall restrictions, I have to download plugin packages and
> upload them instead of using the update mechanism Jenkins provides.
> >
> > How to do this for the msbuild.zip and mstest.zip deployment packages is
> the question as I haven't found anything on this after a lengthy search.
> >
> > TIA.
> >
> > MW
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Jenkins Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to jenkinsci-users+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Problem with database configuration - help appreciated

2013-05-14 Thread Sami Tikka
Are you trying to ste up database connections for DB2 in Jenkins or in a build 
that is executed by Jenkins?

Jave you set the CLASSPATH for Jenkins or in a build that is executed by 
Jenkins?

How did you set the CLASSPATH? If you want to set it in a build, have you 
verified it is there? How?

-- Sami

ifxtechie  kirjoitti 14.5.2013 kello 18.42:

> Hi,
> I am trying to setup database connections for DB2 in Jenkins; But, I am 
> getting the error as below:
> class not found:com.ibm.db2.jcc.db2driver
> I have included the environment variable to include the JDBC driver in the 
> CLASSPATH .I know this does not make sense to expect the database connection 
> to pick up this variable.
> I have tested this in a standalone program and works fine.
> I have invoked the similar java program as a job in Jenkins and it works.
> But, when tried to setup the Database Connections, it fails with the above 
> error.
> Any suggestion/help is much appreciated.
> Thanks
> Partha
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Manual deploy of the msbuild.zip plugin file into Jenkins

2013-05-14 Thread Sami Tikka
I believe Jenkins does not have any support for uploading msbuild/mstest into 
your Jenkins server. This is usually the case with build tools.

-- Sami

Matthew Wright  kirjoitti 14.5.2013 kello 22.24:

> Due to firewall restrictions, I have to download plugin packages and upload 
> them instead of using the update mechanism Jenkins provides.
> 
> How to do this for the msbuild.zip and mstest.zip deployment packages is the 
> question as I haven't found anything on this after a lengthy search.
> 
> TIA.
> 
> MW
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Manual deploy of the msbuild.zip plugin file into Jenkins

2013-05-14 Thread Matthew Wright
Due to firewall restrictions, I have to download plugin packages and upload 
them instead of using the update mechanism Jenkins provides.

How to do this for the msbuild.zip and mstest.zip deployment packages is 
the question as I haven't found anything on this after a lengthy search.

TIA.

MW

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: downstream job set by Parameterized Trigger never runs

2013-05-14 Thread Eric Pyle

Hi Dan,

I think the failure to trigger a downstream job with parameters is due 
to a Jenkins bug: https://issues.jenkins-ci.org/browse/JENKINS-10342. So 
you are on the right track to work around it.


Cheers,
Eric

On 5/14/2013 2:27 PM, Dan Tenenbaum wrote:



On Tuesday, May 14, 2013 10:09:23 AM UTC-7, Dan Tenenbaum wrote:

Hi,

I'm using the Parameterized Trigger plugin. I have a
multi-configuration project (project A) which has a post-build
action to "Trigger parameterized build on other projects",
configured to run another multi-configuration project (project B)
when the build is stable, and pass B the current build parameters
from A.

The problem is that the trigger does not seem to work. Project B
never runs even though project A builds successfully. In fact even
if I change the configuration on A to trigger B when the build is
"Complete (always trigger)", it still does not trigger B.

What am I doing wrong?



If I check the "Trigger build without parameters" box, project B is 
indeed run.
However, project B (which is currently just a shell script that prints 
out the current environment with 'env') does not display any of the 
build parameters from project A.


I don't understand what the "Trigger build without parameters" 
checkbox is. The whole reason I am running the Parameterized Trigger 
plugin is to be able to pass A's build parameters to B. If I look at 
the console output of B, I see


originally caused by:
 Started by upstream project "A" build number 50

All I really need is that "A" (in other words, the name of the project 
that triggered B) but I'm not sure how to get it programmatically.


I should mention that A is not a parameterized project in that it does 
not take any special parameters. The parameters I want to pass to B 
are just the ordinary ones that Jenkins sets, like JOB_NAME and so forth.


OK, it looks like maybe what I want to do is write a properties file 
in project A and pass that to project B with the "Parameters from 
properties file" option. But that doesn't seem to work. I can verify 
in project A that the properties file is written out and has the 
correct contents, but in project B I echo out the parameters I'm 
trying to pass and they are not defined.


One clue is that if I check the "Don't trigger if any files are 
missing" box, project B does not run. This tells me that Jenkins 
*thinks* that there is no such properties file in my workspace, but 
there is. In the top level of the workspace I have a file called 
job.properties and I've put 'job.properties' (without the quotes) in 
the "Use properties from file" box.


However, it works if I use "Predefined parameters" like this:
PREV_WORKSPACE=$WORKSPACE

So I guess my question is answered.

Thanks,
Dan


Thanks,
Dan

--
You received this message because you are subscribed to the Google 
Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to jenkinsci-users+unsubscr...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.




--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: downstream job set by Parameterized Trigger never runs

2013-05-14 Thread Dan Tenenbaum


On Tuesday, May 14, 2013 10:09:23 AM UTC-7, Dan Tenenbaum wrote:
>
> Hi,
>
> I'm using the Parameterized Trigger plugin. I have a multi-configuration 
> project (project A) which has a post-build action to "Trigger parameterized 
> build on other projects", configured to run another multi-configuration 
> project (project B) when the build is stable, and pass B the current build 
> parameters from A.
>
> The problem is that the trigger does not seem to work. Project B never 
> runs even though project A builds successfully. In fact even if I change 
> the configuration on A to trigger B when the build is "Complete (always 
> trigger)", it still does not trigger B.
>
> What am I doing wrong?
>


If I check the "Trigger build without parameters" box, project B is indeed 
run. 
However, project B (which is currently just a shell script that prints out 
the current environment with 'env') does not display any of the build 
parameters from project A.

I don't understand what the "Trigger build without parameters" checkbox is. 
The whole reason I am running the Parameterized Trigger plugin is to be 
able to pass A's build parameters to B. If I look at the console output of 
B, I see 

originally caused by:
 Started by upstream project "A" build number 50

All I really need is that "A" (in other words, the name of the project that 
triggered B) but I'm not sure how to get it programmatically.

I should mention that A is not a parameterized project in that it does not 
take any special parameters. The parameters I want to pass to B are just 
the ordinary ones that Jenkins sets, like JOB_NAME and so forth. 

OK, it looks like maybe what I want to do is write a properties file in 
project A and pass that to project B with the "Parameters from properties 
file" option. But that doesn't seem to work. I can verify in project A that 
the properties file is written out and has the correct contents, but in 
project B I echo out the parameters I'm trying to pass and they are not 
defined. 

One clue is that if I check the "Don't trigger if any files are missing" 
box, project B does not run. This tells me that Jenkins *thinks* that there 
is no such properties file in my workspace, but there is. In the top level 
of the workspace I have a file called job.properties and I've put 
'job.properties' (without the quotes) in the "Use properties from file" 
box. 

However, it works if I use "Predefined parameters" like this:
PREV_WORKSPACE=$WORKSPACE

So I guess my question is answered. 

Thanks,
Dan

 

> Thanks,
> Dan
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: TCP Slave Listener Agent error in Jenkins

2013-05-14 Thread k . thieling


What is the OS?  Is it installed as a Windows service? 



Have you tried downloading the slave.jar file again directly from the master 
server? 



- Original Message -


From: "DGupta"  
To: jenkinsci-users@googlegroups.com 
Sent: Tuesday, May 14, 2013 12:15:00 PM 
Subject: Re: TCP Slave Listener Agent error in Jenkins 

No random port isnt connecting it back again as well. 
 The exact message is " java.lang.exception: 
http://:8080/tcpSlaveAgentListener/ is invalid: -1 null 
at hudson.remoting.Engine.run (Engine.java:169 )." 

On Tuesday, May 14, 2013 5:23:40 AM UTC-7, KT wrote: 





What is the OS of the slave? 

  

If you disabled security, does it end up working again?  If so, what port?  
Maybe something else is using that port already... 








From: "DGupta" < div...@gmail.com > 
To: jenkins...@googlegroups.com 
Sent: Tuesday, May 14, 2013 12:36:49 AM 
Subject: TCP Slave Listener Agent error in Jenkins 

I am trying to connect a Jenkins node to a Server and its throwing an exception 
" Java lang error: TCP Slave agent listener returned NULL". has anyone seen 
this exception? Please help find a solution. I am doing it after enabling 
security on a fixed port and these settings are working fine on all other 
Jenkins set ups but this one. Please help! 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group. 
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-use...@googlegroups.com . 
For more options, visit https://groups.google.com/groups/opt_out . 
  
  




-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group. 
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com. 
For more options, visit https://groups.google.com/groups/opt_out . 
  
  

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: shutting down an apache instance in post-build actions

2013-05-14 Thread Sami Tikka
Try https://wiki.jenkins-ci.org/display/JENKINS/PostBuildScript+Plugin

-- Sami

Chris Withers  kirjoitti 13.5.2013 kello 13.46:

> Hi All,
> 
> How can I shut down an apache instance required for a job is the post-build 
> actions?
> 
> I want this to happen regardless of whether all of the build steps succeeded 
> or not...
> 
> cheers,
> 
> Chris
> 
> -- 
> Simplistix - Content Management, Batch Processing & Python Consulting
>- http://www.simplistix.co.uk
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: TCP Slave Listener Agent error in Jenkins

2013-05-14 Thread DGupta
No random port isnt connecting it back again as well.
 The exact message is "*java.lang.exception: 
http://:8080/tcpSlaveAgentListener/ is invalid: -1 
null at hudson.remoting.Engine.run (Engine.java:169*)."

On Tuesday, May 14, 2013 5:23:40 AM UTC-7, KT wrote:
>
> What is the OS of the slave?
>
>  
>
> If you disabled security, does it end up working again?  If so, what 
> port?  Maybe something else is using that port already...
>
>  --
>
> *From: *"DGupta" >
> *To: *jenkins...@googlegroups.com 
> *Sent: *Tuesday, May 14, 2013 12:36:49 AM
> *Subject: *TCP Slave Listener Agent error in Jenkins
>
> I am trying to connect a Jenkins node to a Server and its throwing an 
> exception " Java lang error: TCP Slave agent listener returned NULL". has 
> anyone seen this exception? Please help find a solution. I am doing it 
> after enabling security on a fixed port and these settings are working fine 
> on all other Jenkins set ups but this one. Please help! 
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-use...@googlegroups.com .
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




downstream job set by Parameterized Trigger never runs

2013-05-14 Thread Dan Tenenbaum
Hi,

I'm using the Parameterized Trigger plugin. I have a multi-configuration 
project (project A) which has a post-build action to "Trigger parameterized 
build on other projects", configured to run another multi-configuration 
project (project B) when the build is stable, and pass B the current build 
parameters from A.

The problem is that the trigger does not seem to work. Project B never runs 
even though project A builds successfully. In fact even if I change the 
configuration on A to trigger B when the build is "Complete (always 
trigger)", it still does not trigger B.

What am I doing wrong?
Thanks,
Dan

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Jenkins and Jetty

2013-05-14 Thread Alexander Voss
Hi again,

I figured out that the way to create a user account is to leave the 'allow 
users to sign up' box ticked initially, set up an account with all rights, 
the remove the tick. (perhaps that as too obvious for me to see...) 
However, my question about the configuration of Jenkins in Jetty is still 
open - is it right to add the real name to the Jenkins web.xml? It did not 
work before I changed this and now seems to work but before I deploy this 
on a production server I would like to know I am not holding the wrong end 
of the stick.

Cheers,

Alex

On Tuesday, 14 May 2013 07:32:46 UTC+1, Alexander Voss wrote:
>
>
> Dear all,
>
> I have been trying to install Jenkins in a Jetty container. I soon came 
> across the problem that Jenkins requires a login service 
>
>
> http://stackoverflow.com/questions/9111759/http-error-503-accessing-jenkins-reason-service-unavailable
>
> My problem is that the solutions described here do not seem to work. Only 
> when I introduced a realm name into the Jenkins configuration that matched 
> the name provided to the LoginService did Jenkins start up ok. However, now 
> when I access it for the first time I am asked to set up security but not 
> for an admin password, so I am logged out of the system as soon as I turn 
> security on. There does not seem to be a way to provide the admin password. 
> I seem to remember that Jenkins was asking for one in earlier versions. So, 
> I suspect that either my providing a realm name in web.xml was wrong (but 
> what name should I give the LoginSevice?) or there is another problem?
>
> I am using Jenkins 1.514 and Jetty 9.0.3.v20130506.
>
> My Jetty application context configuration (webapps/jenkins.xml) looks 
> like this:
>
> --8<--
> 
>  http://www.eclipse.org/jetty/configure.dtd";>
> 
>default="."/>/webapps/jenkins.war
>   /jenkins
>default="."/>/confs/jenkins-web.xml
> 
> 
>   
> jenkins
>  default="."/>/etc/realm.properties
>   
> 
>   
> 
> --8<--
>
> and my overlay web.xml (confs/jenkins-web.xml) like this:
>
> --8<--
> 
> http://java.sun.com/xml/ns/j2ee";
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
>  version="2.4">
>   
> FORM
> jenkins
> 
>   /login
>   /loginError
> 
>   
> 
> --8<--
>
> Cheers,
>
> Alex
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Sourcing and using XSL to use boost.test with xUnit

2013-05-14 Thread John Dexter
Searching online, I've found no two identical XSLs and no definitive
reference how to get the results of boost.test to work with xUnit/Jenkins -
some versions seem to want stdout, others stdout+stderr, and every version
I've tried has either failed to process my input XML, or produced output
XML that still isn't read.

Right now I'm manually transforming XML to check which XSL works, before
trying to install it as described here (
https://wiki.jenkins-ci.org/display/JENKINS/xUnit+Plugin).

Even an XSL from the Jenkins issue tracker (
https://issues.jenkins-ci.org/browse/JENKINS-7039) doesn't work, I'm
wondering if it's because something has changed since 2010 or if I should
be running my unit-tests with specific parameters which are not documented.

I have xUnit 1.58 installed (clean Windows Jenkins install today), and I'm
using boost 1.47 (against visual c++ 2005). I am running my test-cases like
so:

C:\CTS\unit_tests>test123.exe --report_level=detailed --report_format=xml
2> test123.xml

An example output xml looks like this: http://pastebin.com/cQQP2Hxp

I'm new to Jenkins (and not well acquainted with boost.test or XSLT!) so if
I missed something, please ask for more information. Otherwise I hope
someone can help me out.

Any help much appreciated,

John.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Problem with database configuration - help appreciated

2013-05-14 Thread ifxtechie
Hi,
I am trying to setup database connections for DB2 in Jenkins; But, I am 
getting the error as below:

class not found:com.ibm.db2.jcc.db2driver

I have included the environment variable to include the JDBC driver in the 
CLASSPATH .I know this does not make sense to expect the database 
connection to pick up this variable.
I have tested this in a standalone program and works fine.
I have invoked the similar java program as a job in Jenkins and it works.
But, when tried to setup the Database Connections, it fails with the above 
error.
Any suggestion/help is much appreciated.
Thanks
Partha

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Abridged summary of jenkinsci-users@googlegroups.com - 11 Messages in 8 Topics

2013-05-14 Thread Hassan Parthasarathy
Hi,
I am trying to setup database connections for DB2; But, I am getting the
error as below:
class not found:com.ibm.db2.jcc.db2driver
I have included the environment variable to include the JDBC driver in the
CLASSPATH .I know this does not make sense to expect the database
connection to pick up this variable.
I have tested this in a standalone program and works fine.
I have invoked the similar java program as a job in Jenkins and it works.
But, when tried to setup the Database Connections, it fails with the above
error.
Any suggestion/help is much appreciated.
Thanks
Partha


On Mon, May 13, 2013 at 12:44 PM,  wrote:

>   Today's Topic Summary
>
> Group: http://groups.google.com/group/jenkinsci-users/topics
>
>- How to install Windows JNLP service when Jenkins security is 
> on?<#13e9ec7b6261b400_group_thread_0>[2 Updates]
>- windows slave git clone issues <#13e9ec7b6261b400_group_thread_1> [1
>Update]
>- Remove Jenkins Menu <#13e9ec7b6261b400_group_thread_2> [2 Updates]
>- How to add third-party extension to 
> maven-plugin<#13e9ec7b6261b400_group_thread_3>[1 Update]
>- How to access build parameters in pre-setup script of editable email
>notification plugin? <#13e9ec7b6261b400_group_thread_4> [2 Updates]
>- shutting down an apache instance in post-build 
> actions<#13e9ec7b6261b400_group_thread_5>[1 Update]
>- puppet Jenkins LTS install on CentOs 
> 6<#13e9ec7b6261b400_group_thread_6>[1 Update]
>- Run job under different credentials<#13e9ec7b6261b400_group_thread_7>[1 
> Update]
>
>   How to install Windows JNLP service when Jenkins security is 
> on?
>
>Costin Caraivan  May 13 04:29PM +0200
>
>Hello,
>
>After configuring security for the master Jenkins only offers the
>headless
>command as an options. This means that the window which offers the
>service
>installation menu is not available.
>
> ...more
>
>
>Eric Pyle  May 13 12:23PM -0400
>
>How did you configure security? If it is matrix-based or project-based
>matrix, check your user permissions for slaves. Do you have all
>permissions?
>
>Eric
>
>On 5/13/2013 10:29 AM, Costin Caraivan 
> ...more
>
>   windows slave git clone 
> issues
>
>Chanda Unmack  May 13 08:01AM -0700
>
>Our gerrit server was upgraded this weekend and have run into a snag
>on our
>windows slaves. I am able to do a git clone on the slaves as the user
>the
>jenkins service is running as, but as soon as I 
> ...more
>
>   Remove Jenkins 
> Menu
>
>Nikkey  May 13 06:32AM -0700
>
>Is there any way to remove Jenkins menu (People menu- allow only to
>admin
>role) based on ROLEs.
>If not what is the possible way to remove form normal role uses.
>
>
>
>Thanks in advance.
>Nikkey
>
> ...more
>
>
>Stephen Connolly  May 13 02:50PM
>+0100
>
>Aside: You do know that the people menu provides the route for people
>to
>configure their own preferences within Jenkins (for example store
>their own
>credentials for use with credentials plugin aware 
> ...more
>
>   How to add third-party extension to 
> maven-plugin
>
>"Aurélien Bourdon"  May 13 05:36AM -0700
>
>Hi all,
>
>I would like to add a third-party extension (e.g
>https://github.com/johnjcool/and-activation-profile-selector) to my
>Maven
>builds. However, any of my following actions were doomed to 
> ...more
>
>   How to access build parameters in pre-setup script of editable email
> notification 
> plugin?
>
>Romu  May 12 11:54PM -0700
>
>Hi List,
>
>In pre-setup script of editable email notification plugin, the build
>parameters are not available as environment variables as they are with
>build scripts. Is there another way to 
> ...more
>
>
>Slide  May 13 04:14AM -0700
>
>Someone else just asked the same thing a few days ago, you can access
>the
>environment via the build instance. build.getEnvironment(). Take a
>look at
>the javadoc for AbstractBuild and you'll see what 
> ...more
>
>   shutting down an apache instance in p

Re: How to assign JUnit test resolution in Jenkins ?

2013-05-14 Thread Mark Waite
I think the "Claim" plugin does what you want.  It allows a user to claim a 
broken test (in addition to a broken build).

That is slightly different than assigning a broken test to a person, but may be 
worth investigating.

Mark Waite



>
> From: sylvain bourgin 
>To: jenkinsci-users@googlegroups.com 
>Sent: Tuesday, May 14, 2013 3:55 AM
>Subject: How to assign JUnit test resolution in Jenkins ?
> 
>
>
>Hi everyone,
>
>We are a team who develop a software written in Java. We use JUnit for unit 
>tests. We would like to find a plugin for Jenkins to monitor the results of 
>unit tests.
>The aim is to know which test is broken and to be able to assign its 
>resolution to someone.
>
>For exemple you can do it easily with sonar for code review : 
>http://www.sonarsource.org/wp-content/uploads/2011/10/CreatingReview.png
>We are looking for something for Unit tests. We can pay for the 
>software/plugin.
>
>Thanks you for your help
>-- 
>You received this message because you are subscribed to the Google Groups 
>"Jenkins Users" group.
>To unsubscribe from this group and stop receiving emails from it, send an 
>email to jenkinsci-users+unsubscr...@googlegroups.com.
>For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Access jenkins artifacts

2013-05-14 Thread William Soula
The cobertura plugin will fail if the threshold for the code coverage falls 
below a certain level, but I don't think it will automatically adjust as 
metrics get better, that would probably be a manual thing every now and then to 
checkout what to set them too.  I don't know if it would work with clover.

Will

On 05/14/13 06:05, Richard Lavoie wrote:
I believe you would have to use the archive artifact plugin so those files are 
kept affer a build then you should be able to retrieve them from a next build.

I thought there was a plugin already for that use case (to fail if the coverage 
deteriorates )... Or was it someone on the dev/user list ...

On Tuesday, May 14, 2013, Zigster wrote:
Hi Jenkins-Users,

is there a good way to access build artifacts, e.g. the code coverage report in 
the clover.xml of  - for example - the last stable build ?

Background:

In a php project being built by jenkins, I would like to access the code 
coverage ratio of a previous (stable) build and compare it with the recent 
build - and in case the ratio deteriorates, let the recent build become 
unstable.

I know, that the clover.xml contains the "metrics" node with the attributes 
"elements" and "coveredelements" which can be calculated as the coverage 
percentage: (coveredelements/elements) * 100

But how can I access the clover.xml from e.g. the Groovy Postbuild Plugin in 
Jenkins ?

Any suggestions are greatly appreciated!


Zigster


--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




--
Richard Lavoie
IT consultant / consultant en informatique
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Access jenkins artifacts

2013-05-14 Thread Jerry
Have you considered using the Sonar plugin? 
http://docs.codehaus.org/pages/viewpage.action?pageId=116359341
That could do the work for you, as well as lots of additional stuff.




On Tuesday, May 14, 2013 6:46:26 AM UTC-4, Zigster wrote:
>
> Hi Jenkins-Users,
>
> is there a good way to access build artifacts, e.g. the code coverage 
> report in the clover.xml of  - for example - the last stable build ?
>
> Background: 
>
> In a php project being built by jenkins, I would like to access the code 
> coverage ratio of a previous (stable) build and compare it with the recent 
> build - and in case the ratio deteriorates, let the recent build become 
> unstable.
>
> I know, that the clover.xml contains the "metrics" node with the 
> attributes "elements" and "coveredelements" which can be calculated as the 
> coverage percentage: (coveredelements/elements) * 100
>
> But how can I access the clover.xml from e.g. the Groovy Postbuild Plugin 
> in Jenkins ?
>
> Any suggestions are greatly appreciated!
>
>
> Zigster
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Discard Old builds/Artifacts

2013-05-14 Thread k . thieling
Does anyone have any thoughts about this? 

- Original Message -
From: "KT"  
To: jenkinsci-users@googlegroups.com 
Sent: Wednesday, May 8, 2013 10:11:20 AM 
Subject: Discard Old builds/Artifacts 



There is a Discard old builds option in Jenkins jobs with a few different 
options. 

  

Which model does Jenkins use for artifact expiration, Number first or Date 
first? Can both the number of days and number of build artifacts be specified 
and let Jenkins figure out which one happens first? 

  

For example, if I set “Days to keep artifacts” to 15 and “Max # of builds to 
keep with artifacts” to 32, which one takes precedence?  

  

If, in that 15 day period, I have more than 32 builds with artifacts, does it 
remove the older artifacts to stay at 32, or does it keep them for 15 days? 

  

We are trying to set a standard for all of our builds to have the same number, 
however, it is hard to set a solution for projects that do not build as often.  
So, we want to keep up to 32 artifacts, and delete artifacts older than 15 
days, but not for those that do not build as often…may be no way to have all 
the jobs set the same in this case? 

  

Thoughts? 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group. 
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com. 
For more options, visit https://groups.google.com/groups/opt_out . 
  
  

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: TCP Slave Listener Agent error in Jenkins

2013-05-14 Thread k . thieling


What is the OS of the slave? 



If you disabled security, does it end up working again?  If so, what port?  
Maybe something else is using that port already... 



- Original Message -


From: "DGupta"  
To: jenkinsci-users@googlegroups.com 
Sent: Tuesday, May 14, 2013 12:36:49 AM 
Subject: TCP Slave Listener Agent error in Jenkins 

I am trying to connect a Jenkins node to a Server and its throwing an exception 
" Java lang error: TCP Slave agent listener retuned NULL". has anyone seen this 
exception? Please help find a solution. I am doing it after enabling security 
on a fixed port and these settings are working fine on all other Jenkins set 
ups but this one. Please help! 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group. 
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com. 
For more options, visit https://groups.google.com/groups/opt_out . 
  
  

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Access jenkins artifacts

2013-05-14 Thread Richard Lavoie
Then from groovy it's a matter of calling the right method of the jenkins
java api to retrieve the right file.

On Tuesday, May 14, 2013, Zigster wrote:

> Hi Jenkins-Users,
>
> is there a good way to access build artifacts, e.g. the code coverage
> report in the clover.xml of  - for example - the last stable build ?
>
> Background:
>
> In a php project being built by jenkins, I would like to access the code
> coverage ratio of a previous (stable) build and compare it with the recent
> build - and in case the ratio deteriorates, let the recent build become
> unstable.
>
> I know, that the clover.xml contains the "metrics" node with the
> attributes "elements" and "coveredelements" which can be calculated as the
> coverage percentage: (coveredelements/elements) * 100
>
> But how can I access the clover.xml from e.g. the Groovy Postbuild Plugin
> in Jenkins ?
>
> Any suggestions are greatly appreciated!
>
>
> Zigster
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com  'cvml', 'jenkinsci-users%2bunsubscr...@googlegroups.com');>.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


-- 
Richard Lavoie
IT consultant / consultant en informatique

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




RE: Jenkins Plugins: Recommended UI Technology?

2013-05-14 Thread Alex Earl
I'd highly recommend using Groovy instead of Jelly. It is way easier to
work with and debug.

Sent from my Windows Phone
--
From: Jochen Ehret
Sent: 5/14/2013 1:55
To: jenkinsci-users@googlegroups.com
Subject: Jenkins Plugins: Recommended UI Technology?

Hi all,

we are just evaluating which UI technology to use for our Jenkins Plugin.
We have already some experience with Jelly but we are wondering if this is
still the recommended technology (regarding documentation, maintainability
etc.). What about Ruby or Groovy as alternatives? Are there any
recommendations?

Any advice is welcome!

Best Regards,

  Jochen.

-- 
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Access jenkins artifacts

2013-05-14 Thread Richard Lavoie
I believe you would have to use the archive artifact plugin so those files
are kept affer a build then you should be able to retrieve them from a next
build.

I thought there was a plugin already for that use case (to fail if the
coverage deteriorates )... Or was it someone on the dev/user list ...

On Tuesday, May 14, 2013, Zigster wrote:

> Hi Jenkins-Users,
>
> is there a good way to access build artifacts, e.g. the code coverage
> report in the clover.xml of  - for example - the last stable build ?
>
> Background:
>
> In a php project being built by jenkins, I would like to access the code
> coverage ratio of a previous (stable) build and compare it with the recent
> build - and in case the ratio deteriorates, let the recent build become
> unstable.
>
> I know, that the clover.xml contains the "metrics" node with the
> attributes "elements" and "coveredelements" which can be calculated as the
> coverage percentage: (coveredelements/elements) * 100
>
> But how can I access the clover.xml from e.g. the Groovy Postbuild Plugin
> in Jenkins ?
>
> Any suggestions are greatly appreciated!
>
>
> Zigster
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com  'cvml', 'jenkinsci-users%2bunsubscr...@googlegroups.com');>.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


-- 
Richard Lavoie
IT consultant / consultant en informatique

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Access jenkins artifacts

2013-05-14 Thread Zigster
Hi Jenkins-Users,

is there a good way to access build artifacts, e.g. the code coverage 
report in the clover.xml of  - for example - the last stable build ?

Background: 

In a php project being built by jenkins, I would like to access the code 
coverage ratio of a previous (stable) build and compare it with the recent 
build - and in case the ratio deteriorates, let the recent build become 
unstable.

I know, that the clover.xml contains the "metrics" node with the attributes 
"elements" and "coveredelements" which can be calculated as the coverage 
percentage: (coveredelements/elements) * 100

But how can I access the clover.xml from e.g. the Groovy Postbuild Plugin 
in Jenkins ?

Any suggestions are greatly appreciated!


Zigster


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




How to assign JUnit test resolution in Jenkins ?

2013-05-14 Thread sylvain bourgin
Hi everyone,

We are a team who develop a software written in Java. We use JUnit for unit 
tests. We would like to find a plugin for Jenkins to monitor the results of 
unit tests.
The aim is to know which test is broken and to be able to assign its 
resolution to someone.

For exemple you can do it easily with sonar for code review : 
http://www.sonarsource.org/wp-content/uploads/2011/10/CreatingReview.png
We are looking for something for Unit tests. We can pay for the 
software/plugin.

Thanks you for your help

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to add third-party extension to maven-plugin

2013-05-14 Thread Aurélien Bourdon
Solved in adding the ${MAVEN_HOME}/lib/ext directory to the original 
maven3-agent's classworlds.conf file and in adding -Dclassworlds.conf= to the MAVEN_OPTS variable.

My classworlds.conf file looks like (note the optionally add of 
${maven.home}/lib/ext/*.jar):

#
# mostly copied as-is from $MAVEN_HOME/bin/m2.conf
#
main is org.jvnet.hudson.maven3.launcher.Maven3Launcher from plexus.core

set maven.home default ${user.home}/m2

[plexus.core]
load${maven3.interceptor}
optionally  ${maven.home}/lib/ext/*.jar
load${maven.home}/lib/*.jar


Le lundi 13 mai 2013 14:36:12 UTC+2, Aurélien Bourdon a écrit :
>
> Hi all,
>
> I would like to add a third-party extension (e.g 
> https://github.com/johnjcool/and-activation-profile-selector) to my Maven 
> builds. However, any of my following actions were doomed to failure...
>
> 1. Add the extension .jar to my $MAVEN_HOME/lib/ext directory
> 2. Add the extension .jar to my $MAVEN_HOME/lib directory
> 3. Add the extension .jar to 
> my .jenkins/plugins/maven-plugin/WEB-INF/lib directory
> 4. Create the .jenkins/plugins/maven-plugin/WEB-INF/lib/ext directory and 
> add the extension .jar to it
>
> Is anyone has a clue?
>
> Note that when I directly use my Maven installation it just fine. It seems 
> to be related to the Jenkins maven-plugin and the way to add a third-party 
> extension to it.
>
> Regards,
> Aurelien
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




archive artifacts hangs "forever"

2013-05-14 Thread Cristina Aiftimiei
Hi,

I have installed (and after a while downgraded to 1.513) Jenkins 1.514 on a 
master - Unix node (SL 6.4) and configure it with 3 slaves (SL5, SL6 and 
Deb). All VM (virtual).  
I continuosly have issues with the "Archive artifacts" step that is hanging 
"forever", until I kill the build. Yesterday was happening only on the SL5 
node, while builds on SL6 nodes where able to finish successfully, doing 
also the archive artifacts step. Now the same "hanging" happens also for 
the jobs started on SL6 slave.

How can I debug further?
Any help is highly appreciated,
Cristina

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Jenkins Plugins: Recommended UI Technology?

2013-05-14 Thread Jochen Ehret
Hi all,

we are just evaluating which UI technology to use for our Jenkins Plugin. 
We have already some experience with Jelly but we are wondering if this is 
still the recommended technology (regarding documentation, maintainability 
etc.). What about Ruby or Groovy as alternatives? Are there any 
recommendations?

Any advice is welcome!

Best Regards,

  Jochen.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Jenkins and Jetty

2013-05-14 Thread Alexander Voss

Hi again,

sorry, I should have mentioned that I am trying to use the Jenkins built-in 
user database and per-project matrix authentication.

Cheers,

Alex

On Tuesday, 14 May 2013 07:32:46 UTC+1, Alexander Voss wrote:
>
>
> Dear all,
>
> I have been trying to install Jenkins in a Jetty container. I soon came 
> across the problem that Jenkins requires a login service 
>
>
> http://stackoverflow.com/questions/9111759/http-error-503-accessing-jenkins-reason-service-unavailable
>
> My problem is that the solutions described here do not seem to work. Only 
> when I introduced a realm name into the Jenkins configuration that matched 
> the name provided to the LoginService did Jenkins start up ok. However, now 
> when I access it for the first time I am asked to set up security but not 
> for an admin password, so I am logged out of the system as soon as I turn 
> security on. There does not seem to be a way to provide the admin password. 
> I seem to remember that Jenkins was asking for one in earlier versions. So, 
> I suspect that either my providing a realm name in web.xml was wrong (but 
> what name should I give the LoginSevice?) or there is another problem?
>
> I am using Jenkins 1.514 and Jetty 9.0.3.v20130506.
>
> My Jetty application context configuration (webapps/jenkins.xml) looks 
> like this:
>
> --8<--
> 
>  http://www.eclipse.org/jetty/configure.dtd";>
> 
>default="."/>/webapps/jenkins.war
>   /jenkins
>default="."/>/confs/jenkins-web.xml
> 
> 
>   
> jenkins
>  default="."/>/etc/realm.properties
>   
> 
>   
> 
> --8<--
>
> and my overlay web.xml (confs/jenkins-web.xml) like this:
>
> --8<--
> 
> http://java.sun.com/xml/ns/j2ee";
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
>  version="2.4">
>   
> FORM
> jenkins
> 
>   /login
>   /loginError
> 
>   
> 
> --8<--
>
> Cheers,
>
> Alex
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.