Jenkins slave is not installed

2013-12-04 Thread srinath0805
Hi I have installed Jenkins as a master on serverA, when I'm trying to 
install slave in ServerB it shows me the message "Ping response time is too 
long or timed out."

when I click on launch button it is downloading slave-agent.jar file then I 
retry it getting below error:

[12/05/13 12:05:27] Launching slave agent
$ java -jar slave.jar -jnlpUrl 
http://localhost:8080/computer/Test_A/slave-agent.jnlp
Error: Unable to access jarfile slave.jar
ERROR: Unable to launch the slave agent for Test_Ajava.io.EOFException 
: 
unexpected stream termination
at 
hudson.remoting.ClassicCommandTransport.create(ClassicCommandTransport.java:159)
 

at hudson.remoting.Channel.(Channel.java:405) 

at hudson.remoting.Channel.(Channel.java:401) 

at hudson.remoting.Channel.(Channel.java:362) 

at hudson.remoting.Channel.(Channel.java:358) 

at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:346) 

at hudson.slaves.CommandLauncher.launch(CommandLauncher.java:122) 

at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:230) 

at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

can any one help out this, its very urgent to me.

-- 
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: Get Build Number in Post Steps System Groovy Script

2013-12-04 Thread Daniel Beck
currentBuild.number is also null?

On 05.12.2013, at 02:04, Bill Wonch  wrote:

> Hi everyone -
> 
> I've got the following code:
> 
> import hudson.model.*;
> import hudson.util.*;
> 
> def thr = Thread.currentThread();
> def currentBuild = thr?.executable;
> 
> def buildNumberField = "BUILD_NUMBER"
> def resolver = currentBuild.buildVariableResolver
> def buildNumber = resolver.resolve(buildNumberField)
> 
> out.println ("Build number is:" + buildNumber)
> 
> def mavenVersion = 
> currentBuild.getParent().getModules().toArray()[0].getVersion();
> def mavenFullName = 
> currentBuild.getParent().getModules().toArray()[0].getName();
> def mavenName = 
> mavenFullName.substring(mavenFullName.indexOf(':')+1,mavenFullName.length());
> def mavenSite = "http://jenkins/sites/"; + mavenName + "/" + mavenVersion + 
> "/" + buildNumber + "/";
> 
> def siteParamAction = new hudson.model.ParametersAction(new 
> hudson.model.StringParameterValue("MAVEN_SITE", mavenSite));
> currentBuild.addAction(siteParamAction);
> 
> For some reason buildNumber results in null.  I've tried doing this a number 
> of ways and still no luck.  Can anyone provide some advice?
> 
> Thanks!
> Bill
> 
> -- 
> 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: Remote API for 'keep forever' flag?

2013-12-04 Thread Daniel Beck
In /job/foo/123/api/xml, it's the 'keepLog' element.

On 05.12.2013, at 01:40, "Canova, Frank"  wrote:

> Is there a REST API to determine if a build is marked as ‘keep forever’? I 
> realize we can change the flag through REST, but I don’t see a query to get 
> its status.
>  
> The background: We have created a custom installation tool that can list & 
> copy builds from Jenkins and install them on remote equipment. Because this 
> tool will be used by a community of novice users that help us test, we would 
> like to highlight build numbers for them using the ‘Keep this build forever’ 
> flag that we feel are the most stable. Our custom install tool currently uses 
> the REST API to reach Jenkins, so we’d love to find a similar way to also get 
> access to the ‘keep forever’ flag. Ideas/suggestions are appreciated.
>  
> Thanks, Frank
>  
> 
> 
> The information contained in this communication is confidential and may be 
> legally privileged. It is intended solely for the use of the individual or 
> entity to whom it is addressed and others authorized to receive it. If you 
> are not the intended recipient you are hereby (a) notified that any 
> disclosure, copying, distribution or taking any action with respect to the 
> content of this information is strictly prohibited and may be unlawful, and 
> (b) kindly requested to inform the sender immediately and delete any copies. 
> Coherent is neither liable for the proper and complete transmission of the 
> information contained in this communication nor for any delay in its receipt.
> 
> -- 
> 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.


Jenkins Build Process with Slaves

2013-12-04 Thread TigolB
Hi all,

Would someone please help me understand how the Master/Slave build process 
works?  Basically I have a build process that compiles four flavors (x86 
retail/debug and amd64 retail/debug).  So essentially I would have four 
builds running on four separate machines simultaneously.  How do I go about 
implementing this through Jenkins?  

- Do I need to create four separate jobs for each flavor to compile then 
assign a specific slave node to each job?

- Or can I create one job using the multi-configuration, passing in 
different compiler flags to my batch file and let Jenkins handle the load 
balancing to the slave nodes?

Please let me know if you need more info and thank you for any input.

-- 
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 Install Jenknis API for Python

2013-12-04 Thread JonathanRRogers


On Tuesday, December 3, 2013 6:37:46 PM UTC-5, joshuam...@gmail.com wrote:
>
> Hello,
>
>   I'm new to Jenkins and use python only to run test scripts on our custom 
> test executive. We use Python 3.2 and we wrote software to allow python to 
> communicate with our test executive. I'm trying to figure out how to 
> install the Jenkins API for python. First I looked into PIP and came across 
> 2 issues: 1) I don't use CPython and 2) It presents me with the same 
> install issues as the Jenkins API. Can I merely unzip the API, and drag the 
> jenkinsapi folder to a specific directory path? Any help would be 
> appreciated.
>

What Python implementation do you use? Does pip not work at all? AFAIK, 
jenkinsapi is pure Python. 

-- 
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.


Get Build Number in Post Steps System Groovy Script

2013-12-04 Thread Bill Wonch
Hi everyone -

I've got the following code:

import hudson.model.*;
import hudson.util.*;

def thr = Thread.currentThread();
def currentBuild = thr?.executable;

def buildNumberField = "BUILD_NUMBER"
def resolver = currentBuild.buildVariableResolver
def buildNumber = resolver.resolve(buildNumberField)

out.println ("Build number is:" + buildNumber)

def mavenVersion = 
currentBuild.getParent().getModules().toArray()[0].getVersion();
def mavenFullName = 
currentBuild.getParent().getModules().toArray()[0].getName();
def mavenName = 
mavenFullName.substring(mavenFullName.indexOf(':')+1,mavenFullName.length());
def mavenSite = "http://jenkins/sites/"; + mavenName + "/" + mavenVersion + 
"/" + buildNumber + "/";

def siteParamAction = new hudson.model.ParametersAction(new 
hudson.model.StringParameterValue("MAVEN_SITE", mavenSite));
currentBuild.addAction(siteParamAction);

For some reason buildNumber results in null.  I've tried doing this a 
number of ways and still no luck.  Can anyone provide some advice?

Thanks!
Bill

-- 
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.


Remote API for 'keep forever' flag?

2013-12-04 Thread Canova, Frank
Is there a REST API to determine if a build is marked as 'keep forever'? I 
realize we can change the flag through REST, but I don't see a query to get its 
status.

The background: We have created a custom installation tool that can list & copy 
builds from Jenkins and install them on remote equipment. Because this tool 
will be used by a community of novice users that help us test, we would like to 
highlight build numbers for them using the 'Keep this build forever' flag that 
we feel are the most stable. Our custom install tool currently uses the REST 
API to reach Jenkins, so we'd love to find a similar way to also get access to 
the 'keep forever' flag. Ideas/suggestions are appreciated.

Thanks, Frank




The information contained in this communication is confidential and may be 
legally privileged. It is intended solely for the use of the individual or 
entity to whom it is addressed and others authorized to receive it. If you are 
not the intended recipient you are hereby (a) notified that any disclosure, 
copying, distribution or taking any action with respect to the content of this 
information is strictly prohibited and may be unlawful, and (b) kindly 
requested to inform the sender immediately and delete any copies. Coherent is 
neither liable for the proper and complete transmission of the information 
contained in this communication nor for any delay in its receipt.

-- 
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 inject environment vars just after the master checkout?

2013-12-04 Thread John Cary

Thanks.  Questions embedded.

On 12/4/2013 10:35 AM, Mandeville, Rob wrote:

We do this all the time.

After checking out, run a script builder that generates your environment 
changes in the form of a properties file.  In Unix, you might have lines like:

rm -f env.properties
touch env.properties
echo "BRANCH = `some_command_that_calculates_branch` >> env.properties
echo TIMESTAMP = `date` >> env.properties

The "rm" and "touch" is to make sure that the file exists and is empty.  The >> is 
to append (if you just use '>', you'll clobber all the lines you wrote earlier)


So this would be build step (1), I assume.  How do I get this run on the 
master (and only)?


Your next build step is to inject environment variables from env.properties.


This I understand, I believe.

Thanks...John Cary




--Rob Mandeville
Litle & Co.

-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of JR Cary
Sent: Wednesday, December 04, 2013 11:59 AM
To: jenkinsci-users@googlegroups.com
Subject: How to inject environment vars just after the master checkout?

I would like to run a script on master after the SCM checkout, as the script is 
in the repo, to set an environment var that propagates to all the slaves.

It seems that EnvInject cannot do this?

Or am I missing something?

Thx.JC

FYI, the purpose of this is: I have an svn repo into which I checkout a git 
subrepo that I want to update to the same state across all builds.

--
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.

The information in this message is for the intended recipient(s) only and may be the 
proprietary and/or confidential property of Litle & Co., LLC, and thus protected 
from disclosure. If you are not the intended recipient(s), or an employee or agent 
responsible for delivering this message to the intended recipient, you are hereby 
notified that any use, dissemination, distribution or copying of this communication is 
prohibited. If you have received this communication in error, please notify Litle & 
Co. immediately by replying to this message and then promptly deleting it and your 
reply permanently from your computer.



--
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: [ANN] Buildflow extensions plugin

2013-12-04 Thread James Nord (jnord)
Hi Domi,

Thanks for letting me know, I've update the wiki.

'build-flow-concurrent-extensions' is _currently_ correct.  I was going to 
remove the "build-flow" prefix as it's pretty obvious that you want a build 
flow extension but haven't yet done so :)


/James

From: jenkinsci-...@googlegroups.com [mailto:jenkinsci-...@googlegroups.com] On 
Behalf Of Dominik Bartholdi
Sent: 04 December 2013 17:38
To: Jenkins Developers
Cc: jenkinsci-users@googlegroups.com
Subject: Re: [ANN] Buildflow extensions plugin

Hi James,
the documentation is already inconstant: there arte two different names mention 
to register the extension, which one is correct?
- extension.'build-flow-concurrent-extensions'
or
- extension.'concurrent-extensions'
regards Domi

On 03.12.2013, at 15:02, James Nord (jnord) 
mailto:jn...@cisco.com>> wrote:


Hi all,

As per the Jenkins user conference in Palo Alto - I can now officially announce 
the open sourcing of the build flow extensions 
plugin.

This plugin adds an extension to aid in the co-ordinating of the jobs within in 
a single when the flow is run concurrently and is at different stages. (for 
more details see these slides or 
recording)

Currently you will have to build this from source and it requires an unreleased 
version of 
thebuildflow 
plugin.

Regards

/James


--
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-dev+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 Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-dev+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: How to inject environment vars just after the master checkout?

2013-12-04 Thread Mandeville, Rob
We do this all the time.

After checking out, run a script builder that generates your environment 
changes in the form of a properties file.  In Unix, you might have lines like:

rm -f env.properties
touch env.properties
echo "BRANCH = `some_command_that_calculates_branch` >> env.properties
echo TIMESTAMP = `date` >> env.properties

The "rm" and "touch" is to make sure that the file exists and is empty.  The >> 
is to append (if you just use '>', you'll clobber all the lines you wrote 
earlier)

Your next build step is to inject environment variables from env.properties.

--Rob Mandeville
Litle & Co.

-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of JR Cary
Sent: Wednesday, December 04, 2013 11:59 AM
To: jenkinsci-users@googlegroups.com
Subject: How to inject environment vars just after the master checkout?

I would like to run a script on master after the SCM checkout, as the script is 
in the repo, to set an environment var that propagates to all the slaves.

It seems that EnvInject cannot do this?

Or am I missing something?

Thx.JC

FYI, the purpose of this is: I have an svn repo into which I checkout a git 
subrepo that I want to update to the same state across all builds.

--
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.

The information in this message is for the intended recipient(s) only and may 
be the proprietary and/or confidential property of Litle & Co., LLC, and thus 
protected from disclosure. If you are not the intended recipient(s), or an 
employee or agent responsible for delivering this message to the intended 
recipient, you are hereby notified that any use, dissemination, distribution or 
copying of this communication is prohibited. If you have received this 
communication in error, please notify Litle & Co. immediately by replying to 
this message and then promptly deleting it and your reply permanently from your 
computer.

-- 
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 can I set the build description from a parameter?

2013-12-04 Thread Chris Cooper
Excellent, thank you!

For future reference, my final solution is really simple:

1) In each job I have a string parameter named "Reason" with a default
value of "Manual build".  FYI, for each such job I have a matching
"Nightly" job that is triggered every midnight-ish, all it does is trigger
the main job with the Reason parameter set to "Nightly build", and I also
have a system to accept CVS commit triggers and the details of those
commits also get sent to the main job with the Reason parameter set to
"CVS Change" and the details.

2) "Prepare an environment for the run" is checked (enabled).

3) "Evaluated Groovy script" contains one line:
currentBuild.setDescription(currentBuild.buildVariableResolver.resolve("Rea
son"))

Voila!

BTW, most of my jobs are matrix jobs, and so the slaves also end up
executing this Groovy script, so I end up setting the description 4 times
(1 master, 3 slaves) which annoys my sensibilities but is otherwise not a
problem.

Chris

On 12/4/13 1:45 AM, "matthew.web...@diamond.ac.uk"
 wrote:

>Here is the Groovy script I use, which gets the description from the log.
>You can modify as required to use an environment variable (I think).
>Matthew Webber
>
>// This Groovy script must be run using a Jenkins "Execute system Groovy
>script" build step
>// A previous step must write a line in the log of the form defined in
>"pattern" below
>
>def currentBuild = Thread.currentThread().executable
>def pattern = /^set-build-description: (.+)$/
>
>// Parsing 20 most recent lines of the build log
>log = currentBuild.getLog(20)
>for (line in log) {
>match = (line =~ pattern)
>   if (match) {
> currentBuild.setDescription(match[0][1])
> out.println "[set-build-description.groovy] Build description was
>set to: " + match[0][1]
> break
>  }
>}
>
>> -Original Message-
>> From: jenkinsci-users@googlegroups.com
>>[mailto:jenkinsci-users@googlegroups.com] On Behalf Of cscooper
>> Sent: 04 December 2013 00:09
>> To: jenkinsci-users@googlegroups.com
>> Subject: How can I set the build description from a parameter?
>> 
>> I've got a parameterized matrix build, one of the parameters is called
>> "Description" and in the "Prepare an environment for the run" section,
>>under
>> "Script Content", I have this:
>> curl -G -s --data-urlencode "Description=$Description"
>> "http://localhost:8080/job/$JOB_NAME/$BUILD_NUMBER/submitDescription";
>> this works great to set the description of the build according to the
>> Description parameter, and do so early on in the build (I'm not as happy
>> with the plugins that set the description at the end of the build).
>> 
>> HOWEVER
>> 
>> when the Matrix part of the job kicks in, this code gets executed again
>>on
>> my Linux box which chokes because it's only a slave so
>>http://localhost:8080
>> doesn't mean anything.
>> 
>> I thought about actually specifying the IP, so the "submitDescription"
>>would
>> go to the actual build server, but in the matrix build $JOB_NAME is now
>> "Job/Matrix=linux" so the URL isn't right anyway.
>> 
>> AND
>> 
>> I've also got a Windows slave, and "curl" just completely confuses him.
>> 
>> I tried writing an "if" statement in the "Script Content" - something
>>like
>> this:
>> 
>> if [[ "$NODE_NAME" = "master" ]]; then
>> curl -G blah blah blah
>> fi
>> 
>> but (1) Jenkins wasn't at all happy with that, and (2) even if Jenkins
>> accepted it, my Windows slave would choke on it.
>> 
>> * Is there a better way to set the build description from a parameter?
>> * Is there a way to have Jenkins prepare the environment differently on
>> different nodes?
>> * Is there a trick to putting a value in "Script File Path" such that it
>> runs correctly on both Windows and Linux slaves?
>> * Is there something clever I can do with a Groovy script here?
>> 
>> Thanks for any and all advice!
>> Chris
>> 
>
>-- 
>This e-mail and any attachments may contain confidential, copyright and
>or privileged material, and are for the use of the intended addressee
>only. If you are not the intended addressee or an authorised recipient of
>the addressee please notify us of receipt by returning the e-mail and do
>not use, copy, retain, distribute or disclose the information in or
>attached to the e-mail.
>Any opinions expressed within this e-mail are those of the individual and
>not necessarily of Diamond Light Source Ltd.
>Diamond Light Source Ltd. cannot guarantee that this e-mail or any
>attachments are free from viruses and we cannot accept liability for any
>damage which you may sustain as a result of software viruses which may be
>transmitted in or with the message.
>Diamond Light Source Limited (company no. 4375679). Registered in England
>and Wales with its registered office at Diamond House, Harwell Science
>and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
> 
>
>
>
>-- 
>You received this message because you are subscribed to the Google Groups
>"Jenkins Users" group.
>To unsubscribe from this group 

How to inject environment vars just after the master checkout?

2013-12-04 Thread JR Cary

I would like to run a script on master after the SCM checkout, as
the script is in the repo, to set an environment var that propagates
to all the slaves.

It seems that EnvInject cannot do this?

Or am I missing something?

Thx.JC

FYI, the purpose of this is: I have an svn repo into which
I checkout a git subrepo
that I want to update to the same state across all builds.

--
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 access a private git repository on BitBucket.com

2013-12-04 Thread Thanos Damn
This is driving me crazy for the pass few days. How can i configure 
Jenksins to connect to my private bitbucket git repo? I think I have 
configured SSH Credentials correctly but Im getting an error




*Failed to connect to repository : Command "ls-remote -h 
g...@bitbucket.org:ThanosFisherman/hudsonexampleproject.git HEAD" returned 
status code 128:stdout: stderr: error: cannot spawn C:\Program Files\Apache 
Software Foundation\Tomcat 7.0\temp\ssh5770504285917902052.exe: No such 
file or directoryfatal: unable to fork*

Can Someone guide me step by step how to solve this issue? 
Iam using windows 7 and running Jenkins via Tomcat

-- 
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: Communication problem with slave is not notified by email

2013-12-04 Thread Les Mikesell
On Wed, Dec 4, 2013 at 7:34 AM, Ginga, Dick  wrote:
>
>
> I had a problem with a MAC slave that went into sleep mode terminating the
> channel. I needed to disable that to keep the slave up.
>

Macs have a command line program called 'caffeinate' that you can use
as a quick-fix for programs that can't disable sleeping themselves.

-- 
   Les Mikesell
 lesmikes...@gmail.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.


Re: Running daemon processes

2013-12-04 Thread andrea crotti
So well I tried renaming the job removing the spaces (after I noticed that 
the other jobs didn't have names in) and now it works fine.
The script is running in the "Execute shell" block yes.
But the thing is that the error comes before my script is executed, when 
Jenkins is still trying to set up the directories to run the job, so I'm a 
bit surprised because it looks like at this point it should handle the 
spaces.

I'm not using any Jenkins variable in my script if that makes a difference..
Anyway it's fine now so problem solved, thanks

On Tuesday, December 3, 2013 10:11:56 PM UTC, JonathanRRogers wrote:
>
> andrea crotti wrote: 
> > 
> > Argh true I missed that, I expected that jenkins would have quoted the 
> > spaces since it lets me enter them, is that a known issue than? 
> > I'll try without tomorrow, thanks 
> > 
>
> First, is the script in question in an "Execute shell" block? Second, is 
> your script doing anything with the Jenkins project (job) name? Third, 
> in what context would you expect the name of the job to be quoted? 
> Without knowing the context, it's impossible to answer the question 
> usefully since many factors can affect how spaces are handled, escaped 
> or quoted, especially when a shell is involved. 
>
> -- 
> Jonathan Rogers 
>
>

-- 
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: Communication problem with slave is not notified by email

2013-12-04 Thread Ginga, Dick

I had a problem with a MAC slave that went into sleep mode terminating the 
channel. I needed to disable that to keep the slave up.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Rui Fernando Hayashi
Sent: Wednesday, December 04, 2013 6:29 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: Communication problem with slave is not notified by email

I've been having this issue quite frequently :( Maybe the best approach in this 
case would be to debug the network problem. But I don't have any idea on how to 
do that.
Any help is appreciated.

Tks

On Tue, Dec 3, 2013 at 9:23 AM, Rui Fernando Hayashi 
mailto:rfhaya...@gmail.com>> wrote:
I've had some exceptions like this lately:

FATAL: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected 
termination of the channel
hudson.remoting.RequestAbortedException: 
hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected 
termination of the channel
at hudson.remoting.Request.call(Request.java:174)
at hudson.remoting.Channel.call(Channel.java:672)
at hudson.FilePath.act(FilePath.java:993)
at 
org.jenkinsci.plugins.envinject.service.EnvironmentVariablesNodeLoader.gatherEnvironmentVariablesNode(EnvironmentVariablesNodeLoader.java:44)
at 
org.jenkinsci.plugins.envinject.EnvInjectListener.loadEnvironmentVariablesNode(EnvInjectListener.java:81)
at 
org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironment(EnvInjectListener.java:39)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:642)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562)
at hudson.model.Run.execute(Run.java:1575)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:237)
Caused by: hudson.remoting.RequestAbortedException: java.io.IOException: 
Unexpected termination of the channel
at hudson.remoting.Request.abort(Request.java:299)
at hudson.remoting.Channel.terminate(Channel.java:732)
at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:69)
Caused by: java.io.IOException: Unexpected termination of the channel
at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50)
Caused by: java.io.EOFException
at 
java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2553)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
at hudson.remoting.Command.readFrom(Command.java:92)
at 
hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59)
at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
It seems to be related to some networking problem between the master and the 
slave. If I try the job again, it runs perfectly 99% of the times.
The issue is that I don't get notified by email that the job failed. As the 
email notification is part of the job, and the master can't reach the slave to 
run the job, the notification part is not executed.

Is there any way I can set jenkins to notify me of cases like this?
Btw, in my scenario the slave is specific to that kind of job. So I can't rely 
on a solution that just send the job to another slave.
Tks

Rui

--
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: Issues installing plugins on XP

2013-12-04 Thread shanz
I'm getting a similar problem - when I visit the manage jenkins page, I get 
an oops -
 Could not initialize class hudson.util.jna.Kernel32

Anyone know how to fix this issue?

I'm trying jenkins 1.539 and 1.541 (run as a hudson.war windows service).
Java 1_07_45

-- 
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.


API to know if a plugin is selected in a job configuration

2013-12-04 Thread Bharathi Ramalingam

 I'm just wondering if there is any way to find if a plugin is selected in 
the job configuration. I tried to look through the javadocs and I the 
nearest one I found was JobProperty. But that also don't provide what I'm 
looking for.


Thanks,

-- 
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: Communication problem with slave is not notified by email

2013-12-04 Thread Rui Fernando Hayashi
I've been having this issue quite frequently :( Maybe the best approach in
this case would be to debug the network problem. But I don't have any idea
on how to do that.

Any help is appreciated.

Tks


On Tue, Dec 3, 2013 at 9:23 AM, Rui Fernando Hayashi wrote:

> I've had some exceptions like this lately:
>
> FATAL: hudson.remoting.RequestAbortedException: java.io.IOException:
> Unexpected termination of the channel
> hudson.remoting.RequestAbortedException:
> hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected
> termination of the channel
> at hudson.remoting.Request.call(Request.java:174)
> at hudson.remoting.Channel.call(Channel.java:672)
> at hudson.FilePath.act(FilePath.java:993)
> at
> org.jenkinsci.plugins.envinject.service.EnvironmentVariablesNodeLoader.gatherEnvironmentVariablesNode(EnvironmentVariablesNodeLoader.java:44)
> at
> org.jenkinsci.plugins.envinject.EnvInjectListener.loadEnvironmentVariablesNode(EnvInjectListener.java:81)
> at
> org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironment(EnvInjectListener.java:39)
> at
> hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:642)
> at
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562)
> at hudson.model.Run.execute(Run.java:1575)
> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
> at hudson.model.ResourceController.execute(ResourceController.java:88)
> at hudson.model.Executor.run(Executor.java:237)
> Caused by: hudson.remoting.RequestAbortedException: java.io.IOException:
> Unexpected termination of the channel
> at hudson.remoting.Request.abort(Request.java:299)
> at hudson.remoting.Channel.terminate(Channel.java:732)
> at
> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:69)
> Caused by: java.io.IOException: Unexpected termination of the channel
> at
> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50)
> Caused by: java.io.EOFException
> at
> java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2553)
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296)
> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
> at hudson.remoting.Command.readFrom(Command.java:92)
> at
> hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59)
> at
> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
>
> It seems to be related to some networking problem between the master and
> the slave. If I try the job again, it runs perfectly 99% of the times.
>
> The issue is that I don't get notified by email that the job failed. As
> the email notification is part of the job, and the master can't reach the
> slave to run the job, the notification part is not executed.
>
> Is there any way I can set jenkins to notify me of cases like this?
>
> Btw, in my scenario the slave is specific to that kind of job. So I can't
> rely on a solution that just send the job to another slave.
>
> Tks
>
> Rui
>

-- 
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 configurations query

2013-12-04 Thread Richard Bywater
I'm guessing the problem is that there is no display available for Firefox
or Chrome to use. I'd suggest using the XVFB plugin to create a virtual
frame buffer which can be used to create a display for Firefox & Chrome to
attach too.

Richard.


On Wed, Dec 4, 2013 at 10:45 PM, Paridhi Mittal <
paridhi.mit...@viithiisys.com> wrote:

> Hello
>
> I am running my selenium webdriver test cases on jenkins using firefox and
> chromedriver. I am using chromedriver of version 31.0.1650.57
> Firefox of versio 25.0 and selenium webdriver version 2.37.0   ,
> httpclient 4.1.1 And jenkins version 1.541.
> Test cases  are unsuccessful on firefox its giving error unable to connect
> to usr/bin/firefox on port 7055 and chrome its chrome failed to start
> exited abnormally.
> My sample test case is
> package com.thecharmworks.selenium;
>
> import static org.junit.Assert.*;
> import java.io.File;
> import java.io.FileInputStream;
> import java.io.InputStream;
> import java.security.CodeSource;
> import java.util.Properties;
> import org.junit.Test;
> import org.openqa.selenium.By;
> import org.openqa.selenium.WebDriver;
> import org.openqa.selenium.chrome.ChromeDriver;
> import org.openqa.selenium.firefox.FirefoxDriver;
> import org.openqa.selenium.firefox.FirefoxProfile;
> import org.openqa.selenium.firefox.internal.ProfilesIni;
>
> public class TestBase {
> private WebDriver driver;
> @Test
> public void FirfoxUp() throws Exception {
>ProfilesIni profile = new ProfilesIni();
>FirefoxProfile myprofile = profile.getProfile("default");
>driver = new FirefoxDriver(myprofile);
>testUntitled();
>  }
> @Test
> public void CRconfiguration() throws Exception{
>CodeSource codeSorce =
> TestBase.class.getProtectionDomain().getCodeSource();
>File file = new File(codeSorce.getLocation().toURI().getPath());
>String path = file.getParentFile().getParent();
>Properties property = new Properties();
>String propertyFilePath = file.getParentFile().getParent() +
> File.separator +"config" + File.separator +
> "GoldenCharmTestCases.properties";
>InputStream inputStream = new FileInputStream(propertyFilePath);
>property.load(inputStream);
>String webDriverPath = property.getProperty("webdriver.chrome");
>webDriverPath = path.concat(webDriverPath);
>System.setProperty("webdriver.chrome.driver", webDriverPath);
>driver = new ChromeDriver();
>testUntitled();
> }
>
>   public void testUntitled() throws Exception {
>   driver.get("http://www.google.com/";);
>   System.out.println("hello jenkins");
> }
>
>   }
>
>
>
> Not getting were I am getting wrong. Can anyone help to trace it  and
> guide me.
>
>
> Regards
> Paridhi Mittal
>
> --
> 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.


jenkins configurations query

2013-12-04 Thread Paridhi Mittal
Hello

I am running my selenium webdriver test cases on jenkins using firefox and
chromedriver. I am using chromedriver of version 31.0.1650.57
Firefox of versio 25.0 and selenium webdriver version 2.37.0   , httpclient
4.1.1 And jenkins version 1.541.
Test cases  are unsuccessful on firefox its giving error unable to connect
to usr/bin/firefox on port 7055 and chrome its chrome failed to start
exited abnormally.
My sample test case is
package com.thecharmworks.selenium;

import static org.junit.Assert.*;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.security.CodeSource;
import java.util.Properties;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;
import org.openqa.selenium.firefox.internal.ProfilesIni;

public class TestBase {
private WebDriver driver;
@Test
public void FirfoxUp() throws Exception {
   ProfilesIni profile = new ProfilesIni();
   FirefoxProfile myprofile = profile.getProfile("default");
   driver = new FirefoxDriver(myprofile);
   testUntitled();
 }
@Test
public void CRconfiguration() throws Exception{
   CodeSource codeSorce =
TestBase.class.getProtectionDomain().getCodeSource();
   File file = new File(codeSorce.getLocation().toURI().getPath());
   String path = file.getParentFile().getParent();
   Properties property = new Properties();
   String propertyFilePath = file.getParentFile().getParent() +
File.separator +"config" + File.separator +
"GoldenCharmTestCases.properties";
   InputStream inputStream = new FileInputStream(propertyFilePath);
   property.load(inputStream);
   String webDriverPath = property.getProperty("webdriver.chrome");
   webDriverPath = path.concat(webDriverPath);
   System.setProperty("webdriver.chrome.driver", webDriverPath);
   driver = new ChromeDriver();
   testUntitled();
}

  public void testUntitled() throws Exception {
  driver.get("http://www.google.com/";);
  System.out.println("hello jenkins");
}

  }



Not getting were I am getting wrong. Can anyone help to trace it  and guide
me.


Regards
Paridhi Mittal

-- 
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: Build Fails with Failed to install JDK. Exit code=1,603

2013-12-04 Thread Michael Martfel
Found the solution:



   1. Go to the URL on your Jenkins master server: 
   http://jenkins-master1:8080/configure#section3
   2. Click on "Configuration" on the upper left side of the screen and 
   choose "JDK"
   3. Delete all JDK installers which are shown in the JDK section --> "JDK 
   installations".


Worked for me.

Good luck.

Michael

בתאריך יום חמישי, 28 בנובמבר 2013 18:18:36 UTC+2, מאת Michael Martfel:
>
>
> Hello,
>
> I am having issues with my first build with Jenkins.
>
> My Master Jenkins is on Ubuntu 12.03 LTS. Jenkins ver. 1.509.4
> Trying to run a build on a Windows 2008 R2 slave.
>
> I am a newbie with Jenkins and your help is much appreciated. 
>
> *This is the error I receive in the Windows Jenkins Slave:*
>
> Product: Java SE Development Kit 7 Update 45 (64-bit) -- Error 1722.There 
> is a problem with this Windows Installer package. A program run as part of 
> the setup did not finish as expected. Contact your support personnel or 
> package vendor.  Action charsets, location: C:\Program 
> Files\Java\jdk1.7.0_45\jre\lib\, command: "C:\Program 
> Files\Java\jdk1.7.0_45\jre\lib\\launcher.exe" "C:\Program 
> Files\Java\jdk1.7.0_45\bin\\unpack200.exe" -r -v -l "" "C:\Program 
> Files\Java\jdk1.7.0_45\\jre\lib\charsets.pack" "C:\Program 
> Files\Java\jdk1.7.0_45\\jre\lib\charsets.jar" 
>
> *This is the error I receive in the Jenkins build log:*
>
> Started by user anonymous
> Building remotely on jenkins-winslave in workspace 
> C:\Jenkins\workspace\Discovery Build and UT
> Installing C:\Jenkins\tools\hudson.model.JDK\JDK7u45\jdk.exe
> [JDK7u45] $ C:\Jenkins\tools\hudson.model.JDK\JDK7u45\jdk.exe /s /v /qn /L 
> "C:\Jenkins\tools\hudson.model.JDK\JDK7u45\jdk.exe.install.log" 
> REBOOT=ReallySuppress INSTALLDIR="C:\Jenkins\tools\hudson.model.JDK\JDK7u45"
> Failed to install JDK. Exit code=1,603
> === Logging started: 28/11/2013  18:02:40 ===
> Action start 18:02:40: INSTALL.
> Action start 18:02:40: AppSearch.
> Action ended 18:02:40: AppSearch. Return value 1.
> Action start 18:02:40: LaunchConditions.
> Action ended 18:02:40: LaunchConditions. Return value 1.
> Action start 18:02:40: FindRelatedProducts.
> Action ended 18:02:40: FindRelatedProducts. Return value 0.
> Action start 18:02:40: ValidateProductID.
> Action ended 18:02:40: ValidateProductID. Return value 1.
> Action start 18:02:40: setUserProfileNT.
> Action ended 18:02:40: setUserProfileNT. Return value 1.
> Action start 18:02:40: setAllUsersProfile2K.
> Action ended 18:02:40: setAllUsersProfile2K. Return value 1.
> Action start 18:02:40: CostInitialize.
> Action ended 18:02:40: CostInitialize. Return value 1.
> Action start 18:02:40: FileCost.
> Action ended 18:02:40: FileCost. Return value 1.
> Action start 18:02:40: IsolateComponents.
> Action ended 18:02:40: IsolateComponents. Return value 1.
> Action start 18:02:40: CostFinalize.
> Action ended 18:02:40: CostFinalize. Return value 1.
> Action start 18:02:40: SetARPReadme.
> Action ended 18:02:40: SetARPReadme. Return value 1.
> Action start 18:02:40: SetODBCFolders.
> Action ended 18:02:40: SetODBCFolders. Return value 1.
> Action start 18:02:40: MigrateFeatureStates.
> Action ended 18:02:40: MigrateFeatureStates. Return value 0.
> Action start 18:02:40: InstallValidate.
> Action ended 18:02:40: InstallValidate. Return value 1.
> Action start 18:02:40: RemoveExistingProducts.
> Action ended 18:02:40: RemoveExistingProducts. Return value 0.
> Action start 18:02:40: InstallInitialize.
> Action ended 18:02:42: InstallInitialize. Return value 1.
> Action start 18:02:42: ProcessComponents.
> Action ended 18:02:42: ProcessComponents. Return value 1.
> Action start 18:02:42: UnpublishComponents.
> Action ended 18:02:42: UnpublishComponents. Return value 1.
> Action start 18:02:42: MsiUnpublishAssemblies.
> Action ended 18:02:42: MsiUnpublishAssemblies. Return value 1.
> Action start 18:02:42: UnpublishFeatures.
> Action ended 18:02:42: UnpublishFeatures. Return value 1.
> Action start 18:02:42: StopServices.
> Action ended 18:02:42: StopServices. Return value 1.
> Action start 18:02:42: DeleteServices.
> Action ended 18:02:42: DeleteServices. Return value 1.
> Action start 18:02:42: UnregisterComPlus.
> Action ended 18:02:42: UnregisterComPlus. Return value 1.
> Action start 18:02:42: SelfUnregModules.
> Action ended 18:02:42: SelfUnregModules. Return value 1.
> Action start 18:02:42: UnregisterTypeLibraries.
> Action ended 18:02:42: UnregisterTypeLibraries. Return value 1.
> Action start 18:02:42: RemoveODBC.
> Action ended 18:02:42: RemoveODBC. Return value 1.
> Action start 18:02:42: RemoveRegistryValues.
> Action ended 18:02:42: RemoveRegistryValues. Return value 1.
> Action start 18:02:42: UnregisterClassInfo.
> Action ended 18:02:42: UnregisterClassInfo. Return value 1.
> Action start 18:02:42: UnregisterExtensionInfo.
> Action ended 18:02:42: UnregisterExtensionInfo. Return value 1.
> Action start 18:02:42: UnregisterProgIdInfo.
> Action ended 18:02:42: UnregisterProg

Re: Build Fails with Failed to install JDK. Exit code=1,603

2013-12-04 Thread Michael Martfel
Found the solution:



   1. Go to the URL on your Jenkins master server: 
   http://jenkins-master1:8080/configure#section3
   2. Click on "Configuration" on the upper left side of the screen and 
   choose "JDK"
   3. Delete all JDK installers which are shown in the JDK section --> "JDK 
   installations".


Worked for me.

Good luck.

Michael

בתאריך יום חמישי, 28 בנובמבר 2013 18:18:36 UTC+2, מאת Michael Martfel:
>
>
> Hello,
>
> I am having issues with my first build with Jenkins.
>
> My Master Jenkins is on Ubuntu 12.03 LTS. Jenkins ver. 1.509.4
> Trying to run a build on a Windows 2008 R2 slave.
>
> I am a newbie with Jenkins and your help is much appreciated. 
>
> *This is the error I receive in the Windows Jenkins Slave:*
>
> Product: Java SE Development Kit 7 Update 45 (64-bit) -- Error 1722.There 
> is a problem with this Windows Installer package. A program run as part of 
> the setup did not finish as expected. Contact your support personnel or 
> package vendor.  Action charsets, location: C:\Program 
> Files\Java\jdk1.7.0_45\jre\lib\, command: "C:\Program 
> Files\Java\jdk1.7.0_45\jre\lib\\launcher.exe" "C:\Program 
> Files\Java\jdk1.7.0_45\bin\\unpack200.exe" -r -v -l "" "C:\Program 
> Files\Java\jdk1.7.0_45\\jre\lib\charsets.pack" "C:\Program 
> Files\Java\jdk1.7.0_45\\jre\lib\charsets.jar" 
>
> *This is the error I receive in the Jenkins build log:*
>
> Started by user anonymous
> Building remotely on jenkins-winslave in workspace 
> C:\Jenkins\workspace\Discovery Build and UT
> Installing C:\Jenkins\tools\hudson.model.JDK\JDK7u45\jdk.exe
> [JDK7u45] $ C:\Jenkins\tools\hudson.model.JDK\JDK7u45\jdk.exe /s /v /qn /L 
> "C:\Jenkins\tools\hudson.model.JDK\JDK7u45\jdk.exe.install.log" 
> REBOOT=ReallySuppress INSTALLDIR="C:\Jenkins\tools\hudson.model.JDK\JDK7u45"
> Failed to install JDK. Exit code=1,603
> === Logging started: 28/11/2013  18:02:40 ===
> Action start 18:02:40: INSTALL.
> Action start 18:02:40: AppSearch.
> Action ended 18:02:40: AppSearch. Return value 1.
> Action start 18:02:40: LaunchConditions.
> Action ended 18:02:40: LaunchConditions. Return value 1.
> Action start 18:02:40: FindRelatedProducts.
> Action ended 18:02:40: FindRelatedProducts. Return value 0.
> Action start 18:02:40: ValidateProductID.
> Action ended 18:02:40: ValidateProductID. Return value 1.
> Action start 18:02:40: setUserProfileNT.
> Action ended 18:02:40: setUserProfileNT. Return value 1.
> Action start 18:02:40: setAllUsersProfile2K.
> Action ended 18:02:40: setAllUsersProfile2K. Return value 1.
> Action start 18:02:40: CostInitialize.
> Action ended 18:02:40: CostInitialize. Return value 1.
> Action start 18:02:40: FileCost.
> Action ended 18:02:40: FileCost. Return value 1.
> Action start 18:02:40: IsolateComponents.
> Action ended 18:02:40: IsolateComponents. Return value 1.
> Action start 18:02:40: CostFinalize.
> Action ended 18:02:40: CostFinalize. Return value 1.
> Action start 18:02:40: SetARPReadme.
> Action ended 18:02:40: SetARPReadme. Return value 1.
> Action start 18:02:40: SetODBCFolders.
> Action ended 18:02:40: SetODBCFolders. Return value 1.
> Action start 18:02:40: MigrateFeatureStates.
> Action ended 18:02:40: MigrateFeatureStates. Return value 0.
> Action start 18:02:40: InstallValidate.
> Action ended 18:02:40: InstallValidate. Return value 1.
> Action start 18:02:40: RemoveExistingProducts.
> Action ended 18:02:40: RemoveExistingProducts. Return value 0.
> Action start 18:02:40: InstallInitialize.
> Action ended 18:02:42: InstallInitialize. Return value 1.
> Action start 18:02:42: ProcessComponents.
> Action ended 18:02:42: ProcessComponents. Return value 1.
> Action start 18:02:42: UnpublishComponents.
> Action ended 18:02:42: UnpublishComponents. Return value 1.
> Action start 18:02:42: MsiUnpublishAssemblies.
> Action ended 18:02:42: MsiUnpublishAssemblies. Return value 1.
> Action start 18:02:42: UnpublishFeatures.
> Action ended 18:02:42: UnpublishFeatures. Return value 1.
> Action start 18:02:42: StopServices.
> Action ended 18:02:42: StopServices. Return value 1.
> Action start 18:02:42: DeleteServices.
> Action ended 18:02:42: DeleteServices. Return value 1.
> Action start 18:02:42: UnregisterComPlus.
> Action ended 18:02:42: UnregisterComPlus. Return value 1.
> Action start 18:02:42: SelfUnregModules.
> Action ended 18:02:42: SelfUnregModules. Return value 1.
> Action start 18:02:42: UnregisterTypeLibraries.
> Action ended 18:02:42: UnregisterTypeLibraries. Return value 1.
> Action start 18:02:42: RemoveODBC.
> Action ended 18:02:42: RemoveODBC. Return value 1.
> Action start 18:02:42: RemoveRegistryValues.
> Action ended 18:02:42: RemoveRegistryValues. Return value 1.
> Action start 18:02:42: UnregisterClassInfo.
> Action ended 18:02:42: UnregisterClassInfo. Return value 1.
> Action start 18:02:42: UnregisterExtensionInfo.
> Action ended 18:02:42: UnregisterExtensionInfo. Return value 1.
> Action start 18:02:42: UnregisterProgIdInfo.
> Action ended 18:02:42: UnregisterProg

RE: How can I set the build description from a parameter?

2013-12-04 Thread Matthew.Webber
Here is the Groovy script I use, which gets the description from the log. You 
can modify as required to use an environment variable (I think).
Matthew Webber

// This Groovy script must be run using a Jenkins "Execute system Groovy 
script" build step
// A previous step must write a line in the log of the form defined in 
"pattern" below

def currentBuild = Thread.currentThread().executable
def pattern = /^set-build-description: (.+)$/

// Parsing 20 most recent lines of the build log
log = currentBuild.getLog(20)
for (line in log) {
match = (line =~ pattern)
   if (match) {
 currentBuild.setDescription(match[0][1])
 out.println "[set-build-description.groovy] Build description was set to: 
" + match[0][1]
 break
  }
}

> -Original Message-
> From: jenkinsci-users@googlegroups.com 
> [mailto:jenkinsci-users@googlegroups.com] On Behalf Of cscooper
> Sent: 04 December 2013 00:09
> To: jenkinsci-users@googlegroups.com
> Subject: How can I set the build description from a parameter?
> 
> I've got a parameterized matrix build, one of the parameters is called
> "Description" and in the "Prepare an environment for the run" section, under
> "Script Content", I have this:
> curl -G -s --data-urlencode "Description=$Description"
> "http://localhost:8080/job/$JOB_NAME/$BUILD_NUMBER/submitDescription";
> this works great to set the description of the build according to the
> Description parameter, and do so early on in the build (I'm not as happy
> with the plugins that set the description at the end of the build).
> 
> HOWEVER
> 
> when the Matrix part of the job kicks in, this code gets executed again on
> my Linux box which chokes because it's only a slave so http://localhost:8080
> doesn't mean anything.
> 
> I thought about actually specifying the IP, so the "submitDescription" would
> go to the actual build server, but in the matrix build $JOB_NAME is now
> "Job/Matrix=linux" so the URL isn't right anyway.
> 
> AND
> 
> I've also got a Windows slave, and "curl" just completely confuses him.
> 
> I tried writing an "if" statement in the "Script Content" - something like
> this:
> 
> if [[ "$NODE_NAME" = "master" ]]; then
> curl -G blah blah blah
> fi
> 
> but (1) Jenkins wasn't at all happy with that, and (2) even if Jenkins
> accepted it, my Windows slave would choke on it.
> 
> * Is there a better way to set the build description from a parameter?
> * Is there a way to have Jenkins prepare the environment differently on
> different nodes?
> * Is there a trick to putting a value in "Script File Path" such that it
> runs correctly on both Windows and Linux slaves?
> * Is there something clever I can do with a Groovy script here?
> 
> Thanks for any and all advice!
> Chris
> 

-- 
This e-mail and any attachments may contain confidential, copyright and or 
privileged material, and are for the use of the intended addressee only. If you 
are not the intended addressee or an authorised recipient of the addressee 
please notify us of receipt by returning the e-mail and do not use, copy, 
retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not 
necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments 
are free from viruses and we cannot accept liability for any damage which you 
may sustain as a result of software viruses which may be transmitted in or with 
the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and 
Wales with its registered office at Diamond House, Harwell Science and 
Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
 



-- 
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.


Disk usage plugin not working

2013-12-04 Thread David Aldrich
Hi

We are running Jenkins 1.509.4 LTS on Centos 5 or 6.  I have installed the Disk 
Usage plugin but, when I select 'Jenkins > Disk usage' I get an 'Internet 
Explorer cannot display the webpage' error.

The page also does not display in Firefox.

The Disk usage plugin settings are the defaults - I have not changed them.

Any suggestions how to fix this please?

Best regards

David


-- 
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: Readonly job parameters

2013-12-04 Thread Ilamparithi


Hi,

You probably might have found a solution now. Anyway I had similar 
requirement recently and found this thread. Later I came across a plugin 
https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Dynamic+Parameter+Plug-in. 
Using this plugin you can send a dynamic parameter to the build. It also 
has an option to make that parameter read-only. Have fun!

Ilamparithi



On Sunday, July 21, 2013 10:47:27 AM UTC+5:30, Thomas Fields wrote:
>
> Hi there,
>
> In my job configs I've been ticking the "This build is parameterized" box 
> and then using the String parameter option. I can then use my new parameter 
> through most of my job setup and so far this has been working great.
>
> I'm now in a situation where I want my String parameter to be uneditable. 
> So when the user clicks the Build Now link, I want to display what the 
> parameter is set to but not let the user change it. Is it possible to do 
> this?
>
> Cheers,
> Tom
>

-- 
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.