Re: Jenkins as a Windows service

2012-06-18 Thread blaz
So if I understand correctly you can access Jenkins web interface locally 
but not remotely?!
Did you remember to open port 8088 on firewall?
Does your Jenkins server listen for connections on all interfaces or just 
loopback interface?

IE message "Internet Explorer cannot display the web page" is really vague. 
It could mean that site address cannot be resolved, it could be connect 
timeout, connection could be rejected, ...
Which is it?

In any case you are most likely experiencing general network related 
problems nothing specific to Jenkins. 

On Monday, June 18, 2012 5:04:36 PM UTC+2, louwho wrote:
>
> As I mentioned in my previous posting, (using Internet Explorer), I could 
> not connect.
>
> On Thursday, June 14, 2012 5:50:55 PM UTC-4, louwho wrote:
>
>> Is there (or should there be), a seperate forum\group\whatever for those 
>> who have questions regarding Jenkins installed as a windows Service?  Also, 
>> is there a plugin (to be installed on a windows system) for monitoring 
>> Jenkins jobs?  I understand that CCTray can be used, but it only monitors 
>> (cannot kick off a build).
>
>

Cannot get javascript to work in the Project description

2012-06-18 Thread Kamal Ahmed
Hi,
I am using Jenkins ver. 1.470 on ubuntu, and Javascipt suddenly stopped working.
Any workarounds ? or is this just me experiencing it
Thanks,
-Kamal.

Re: troubles with svn on jenkins slave

2012-06-18 Thread phil swenson
an upgrade to the svn plugin solved the prob

On Mon, Jun 18, 2012 at 2:36 PM, phil swenson  wrote:
> I tried to bring my windows 2008 server slave online and get this in
> the build console output:
>
> Caused by: java.lang.NoClassDefFoundError: Could not initialize class
> hudson.scm.SubversionSCM
>   at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:758)
>
> ideas?


Re: Simple Execute Shell fails to execute, Jenkins reports success

2012-06-18 Thread Chris Mitchell
It looks like it was an issue with defaulting to using C Shell.  I don't 
entirely understand why this worked, but specifying to use Bash resolved 
the issues.  This is what my Execute Shell prompt looks like now and it 
executes great.

#!/bin/sh -xe 
echo "Hello" > ~/tmp.txt

Thanks for the help!
Chris

On Monday, June 18, 2012 3:34:02 PM UTC-6, slide wrote:
>
> Do you mean cat ~/tmp.txt? 
>
> slide 
>
> On Mon, Jun 18, 2012 at 2:23 PM, Chris Mitchell  
> wrote: 
> > This is the Console Output for the Execute Shell of "echo ~/tmp.txt". 
>  Is 
> > there any way to get more details about what exactly is going on? Any 
> > debugging output possibly? 
> > 
> > Started by user auser 
> > Building remotely on node in workspace 
> /u/auser/jenkins_bc/workspace/testing 
> > [testing] $ /bin/csh -xe /var/tmp/hudson118559907961626984.sh 
> > Finished: SUCCESS 
> > 
> > 
> > On Monday, June 18, 2012 3:08:06 PM UTC-6, Andrew Melo wrote: 
> >> 
> >> On Mon, Jun 18, 2012 at 4:05 PM, Chris Mitchell  
>
> >> wrote: 
> >> > I believe so.  When I log in via SSH using the same account which has 
> >> > been 
> >> > configured for Jenkins and run the command, I get the desired output. 
> >> 
> >> Ah, but the environment for the slave is different than your 
> >> interactive environment. Try doing an echo ~/tmp.txt to see what the 
> >> shell is expanding it to 
> >> 
> >> > 
> >> > 
> >> > On Monday, June 18, 2012 2:42:09 PM UTC-6, LesMikesell wrote: 
> >> >> 
> >> >> On Mon, Jun 18, 2012 at 2:40 PM, Stanley, Jason 
> >> >>  wrote: 
> >> >> > Silly question. 
> >> >> > 
> >> >> > 
> >> >> > 
> >> >> > Are you looking on the correct node that ran the job for the 
> tmp.txt 
> >> >> > file? 
> >> >> 
> >> >> Also, are you sure you know how ~/tmp.txt will expand when run under 
> >> >> the jenkins slave? 
> >> >> 
> >> >> -- 
> >> >>Les Mikesell 
> >> >>   lesmikes...@gmail.com 
> >> 
> >> 
> >> 
> >> -- 
> >> -- 
> >> Andrew Melo 
>
>
>
> -- 
> Website: http://earl-of-code.com 
>


Re: Simple Execute Shell fails to execute, Jenkins reports success

2012-06-18 Thread Slide
Do you mean cat ~/tmp.txt?

slide

On Mon, Jun 18, 2012 at 2:23 PM, Chris Mitchell  wrote:
> This is the Console Output for the Execute Shell of "echo ~/tmp.txt".  Is
> there any way to get more details about what exactly is going on? Any
> debugging output possibly?
>
> Started by user auser
> Building remotely on node in workspace /u/auser/jenkins_bc/workspace/testing
> [testing] $ /bin/csh -xe /var/tmp/hudson118559907961626984.sh
> Finished: SUCCESS
>
>
> On Monday, June 18, 2012 3:08:06 PM UTC-6, Andrew Melo wrote:
>>
>> On Mon, Jun 18, 2012 at 4:05 PM, Chris Mitchell 
>> wrote:
>> > I believe so.  When I log in via SSH using the same account which has
>> > been
>> > configured for Jenkins and run the command, I get the desired output.
>>
>> Ah, but the environment for the slave is different than your
>> interactive environment. Try doing an echo ~/tmp.txt to see what the
>> shell is expanding it to
>>
>> >
>> >
>> > On Monday, June 18, 2012 2:42:09 PM UTC-6, LesMikesell wrote:
>> >>
>> >> On Mon, Jun 18, 2012 at 2:40 PM, Stanley, Jason
>> >>  wrote:
>> >> > Silly question.
>> >> >
>> >> >
>> >> >
>> >> > Are you looking on the correct node that ran the job for the tmp.txt
>> >> > file?
>> >>
>> >> Also, are you sure you know how ~/tmp.txt will expand when run under
>> >> the jenkins slave?
>> >>
>> >> --
>> >>    Les Mikesell
>> >>       lesmikes...@gmail.com
>>
>>
>>
>> --
>> --
>> Andrew Melo



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


Re: Simple Execute Shell fails to execute, Jenkins reports success

2012-06-18 Thread Chris Mitchell
This is the Console Output for the Execute Shell of "echo ~/tmp.txt".  Is 
there any way to get more details about what exactly is going on? Any 
debugging output possibly?

Started by user auser
Building remotely on node in workspace /u/auser/jenkins_bc/workspace/testing
[testing] $ /bin/csh -xe /var/tmp/hudson118559907961626984.sh
Finished: SUCCESS


On Monday, June 18, 2012 3:08:06 PM UTC-6, Andrew Melo wrote:
>
> On Mon, Jun 18, 2012 at 4:05 PM, Chris Mitchell  
> wrote: 
> > I believe so.  When I log in via SSH using the same account which has 
> been 
> > configured for Jenkins and run the command, I get the desired output. 
>
> Ah, but the environment for the slave is different than your 
> interactive environment. Try doing an echo ~/tmp.txt to see what the 
> shell is expanding it to 
>
> > 
> > 
> > On Monday, June 18, 2012 2:42:09 PM UTC-6, LesMikesell wrote: 
> >> 
> >> On Mon, Jun 18, 2012 at 2:40 PM, Stanley, Jason 
> >>  wrote: 
> >> > Silly question. 
> >> > 
> >> > 
> >> > 
> >> > Are you looking on the correct node that ran the job for the tmp.txt 
> >> > file? 
> >> 
> >> Also, are you sure you know how ~/tmp.txt will expand when run under 
> >> the jenkins slave? 
> >> 
> >> -- 
> >>Les Mikesell 
> >>   lesmikes...@gmail.com 
>
>
>
> -- 
> -- 
> Andrew Melo 
>


Re: Simple Execute Shell fails to execute, Jenkins reports success

2012-06-18 Thread Andrew Melo
On Mon, Jun 18, 2012 at 4:05 PM, Chris Mitchell  wrote:
> I believe so.  When I log in via SSH using the same account which has been
> configured for Jenkins and run the command, I get the desired output.

Ah, but the environment for the slave is different than your
interactive environment. Try doing an echo ~/tmp.txt to see what the
shell is expanding it to

>
>
> On Monday, June 18, 2012 2:42:09 PM UTC-6, LesMikesell wrote:
>>
>> On Mon, Jun 18, 2012 at 2:40 PM, Stanley, Jason
>>  wrote:
>> > Silly question.
>> >
>> >
>> >
>> > Are you looking on the correct node that ran the job for the tmp.txt
>> > file?
>>
>> Also, are you sure you know how ~/tmp.txt will expand when run under
>> the jenkins slave?
>>
>> --
>>    Les Mikesell
>>       lesmikes...@gmail.com



-- 
--
Andrew Melo


Re: Simple Execute Shell fails to execute, Jenkins reports success

2012-06-18 Thread Chris Mitchell
I believe so.  When I log in via SSH using the same account which has been 
configured for Jenkins and run the command, I get the desired output.  

On Monday, June 18, 2012 2:42:09 PM UTC-6, LesMikesell wrote:
>
> On Mon, Jun 18, 2012 at 2:40 PM, Stanley, Jason 
>  wrote: 
> > Silly question. 
> > 
> > 
> > 
> > Are you looking on the correct node that ran the job for the tmp.txt 
> file? 
>
> Also, are you sure you know how ~/tmp.txt will expand when run under 
> the jenkins slave? 
>
> -- 
>Les Mikesell 
>   lesmikes...@gmail.com 
>


Re: Simple Execute Shell fails to execute, Jenkins reports success

2012-06-18 Thread Chris Mitchell
That's a perfectly reasonable question, I've made many mistakes like that 
before :)

I am looking on the correct node, and I've tried with multiple nodes with 
the same results. 

On Monday, June 18, 2012 1:40:02 PM UTC-6, Stanley, Jason wrote:
>
> Silly question.
>
>  
>
> Are you looking on the correct node that ran the job for the tmp.txt file?
>
>  
>
>  
>
>  
>
> *From:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *On Behalf Of *Chris Mitchell
> *Sent:* Monday, June 18, 2012 3:30 PM
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: Simple Execute Shell fails to execute, Jenkins reports 
> success
>
>  
>
> Hi Jason,
>
> I've tried that with no success.  Permissions are not an issue.  It 
> appears it is not executing any of the shell command and claiming it does. 
>  If it was executing the shell script, I would expect the console log 
> output to look something like this:
>
>  
>
> Started by timer
>
> Building remotely on node in workspace /u/auser/jenkins_bc/workspace/Test 
> Job
>
> [Test Job] $ /bin/csh -xe /var/tmp/hudson59733.sh
>
> + echo "hello" > /var/tmp/tmp.txt
>
> Finished: SUCCESS
>
>
> On Monday, June 18, 2012 1:23:40 PM UTC-6, Stanley, Jason wrote:
>
> Try running the echo command but define the actual path to the tmp.txt 
> file.
>
>  
>
> Example:
>
> echo "Hello" > /var/tmp/tmp.txt
>
>  
>
>  
>
> *From:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *On Behalf Of *Chris Mitchell
> *Sent:* Monday, June 18, 2012 3:18 PM
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Simple Execute Shell fails to execute, Jenkins reports success
>
>  
>
> Hi, 
>
> I am having getting Jenkins to communicate with the nodes.  I am using 
> Jenkins 1.466 on a linux machine. It is capable of logging in (notes from 
> the web gui, as well as monitoring the connection via another SSH session), 
> but when I try to execute the following shell script:
>
> echo "Hello" > ~/tmp.txt
>
>  
>
> Jenkins reports it is as a success:
>
> Started by timer
>
> Building remotely on node in workspace /u/auser/jenkins_bc/workspace/Test 
> Job
>
> [Test Job] $ /bin/csh -xe /var/tmp/hudson59733.sh
>
> Finished: SUCCESS
>
>  
>
> But when I check, ~/tmp.txt does not exist, nor do any other simple Linux 
> commands (echo "Hello"; ls -l, etc) print any output to the console.  They 
> simply don't appear to be being executed.  
>
>  
>
> Is there any place I can look to find more information about why this test 
> is not being executed or what exactly is going on?
>
>  
>
> Thanks for the help,
>
> Chris
>


Re: Simple Execute Shell fails to execute, Jenkins reports success

2012-06-18 Thread Les Mikesell
On Mon, Jun 18, 2012 at 2:40 PM, Stanley, Jason
 wrote:
> Silly question.
>
>
>
> Are you looking on the correct node that ran the job for the tmp.txt file?

Also, are you sure you know how ~/tmp.txt will expand when run under
the jenkins slave?

-- 
   Les Mikesell
  lesmikes...@gmail.com


RE: EnvInject plugin doesn't set empty variable

2012-06-18 Thread Mandeville, Rob
That might be intentionally not supported.  Jenkins is a class-platform 
product, and if some platforms don't allow environment variables with empty 
values, this could cause inconsistent behavior.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Grégory Boissinot
Sent: Monday, June 18, 2012 3:53 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: EnvInject plugin doesn't set empty variable

There is no way to do this feature into the EnvInject plugin for now.
It is often considered as an issue to have empty values for environment 
variables.
Which is exactly your use case?
On Fri, Jun 15, 2012 at 1:12 PM, 
mailto:matthew.web...@diamond.ac.uk>> wrote:
I am using the EnvInject plugin, and my job has "Inject environment variables 
to the build process" set.

My "Properties Content" section looks like this:
materialize_version=v1.0
keyring_location=
workspace_build_type=clean

I want the keyring_location variable set, but empty (null). In bash, these are 
two different conditions. However, it looks as though the plugin is not setting 
the variable at all, rather than setting it to null. This feels like a bug. If 
I put the "keyring_location=" in the build section shell commands, it correct 
sets it to null as I require.

Is there a way to do this in the "Properties Content" section?

Thanks


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




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.


Re: EnvInject plugin doesn't set empty variable

2012-06-18 Thread Grégory Boissinot
There is no way to do this feature into the EnvInject plugin for now.
It is often considered as an issue to have empty values for environment
variables.
Which is exactly your use case?

On Fri, Jun 15, 2012 at 1:12 PM,  wrote:

> I am using the EnvInject plugin, and my job has "Inject environment
> variables to the build process" set.
>
> My "Properties Content" section looks like this:
> materialize_version=v1.0
> keyring_location=
> workspace_build_type=clean
>
> I want the keyring_location variable set, but empty (null). In bash, these
> are two different conditions. However, it looks as though the plugin is not
> setting the variable at all, rather than setting it to null. This feels
> like a bug. If I put the "keyring_location=" in the build section shell
> commands, it correct sets it to null as I require.
>
> Is there a way to do this in the "Properties Content" section?
>
> Thanks
>
>
> --
> 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
>
>
>
>
>


RE: Simple Execute Shell fails to execute, Jenkins reports success

2012-06-18 Thread Stanley, Jason
Silly question.

Are you looking on the correct node that ran the job for the tmp.txt file?



From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Chris Mitchell
Sent: Monday, June 18, 2012 3:30 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: Simple Execute Shell fails to execute, Jenkins reports success

Hi Jason,
I've tried that with no success.  Permissions are not an issue.  It appears it 
is not executing any of the shell command and claiming it does.  If it was 
executing the shell script, I would expect the console log output to look 
something like this:

Started by timer
Building remotely on node in workspace /u/auser/jenkins_bc/workspace/Test Job
[Test Job] $ /bin/csh -xe /var/tmp/hudson59733.sh
+ echo "hello" > /var/tmp/tmp.txt
Finished: SUCCESS

On Monday, June 18, 2012 1:23:40 PM UTC-6, Stanley, Jason wrote:
Try running the echo command but define the actual path to the tmp.txt file.

Example:
echo "Hello" > /var/tmp/tmp.txt


From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com]
 On Behalf Of Chris Mitchell
Sent: Monday, June 18, 2012 3:18 PM
To: jenkinsci-users@googlegroups.com
Subject: Simple Execute Shell fails to execute, Jenkins reports success

Hi,
I am having getting Jenkins to communicate with the nodes.  I am using Jenkins 
1.466 on a linux machine. It is capable of logging in (notes from the web gui, 
as well as monitoring the connection via another SSH session), but when I try 
to execute the following shell script:
echo "Hello" > ~/tmp.txt

Jenkins reports it is as a success:
Started by timer
Building remotely on node in workspace /u/auser/jenkins_bc/workspace/Test Job
[Test Job] $ /bin/csh -xe /var/tmp/hudson59733.sh
Finished: SUCCESS

But when I check, ~/tmp.txt does not exist, nor do any other simple Linux 
commands (echo "Hello"; ls -l, etc) print any output to the console.  They 
simply don't appear to be being executed.

Is there any place I can look to find more information about why this test is 
not being executed or what exactly is going on?

Thanks for the help,
Chris


Re: Simple Execute Shell fails to execute, Jenkins reports success

2012-06-18 Thread Chris Mitchell
Hi Jason,
I've tried that with no success.  Permissions are not an issue.  It appears 
it is not executing any of the shell command and claiming it does.  If it 
was executing the shell script, I would expect the console log output to 
look something like this:

Started by timer
Building remotely on node in workspace /u/auser/jenkins_bc/workspace/Test 
Job
[Test Job] $ /bin/csh -xe /var/tmp/hudson59733.sh
+ echo "hello" > /var/tmp/tmp.txt
Finished: SUCCESS

On Monday, June 18, 2012 1:23:40 PM UTC-6, Stanley, Jason wrote:
>
> Try running the echo command but define the actual path to the tmp.txt 
> file.
>
>  
>
> Example:
>
> echo "Hello" > /var/tmp/tmp.txt
>
>  
>
>  
>
> *From:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *On Behalf Of *Chris Mitchell
> *Sent:* Monday, June 18, 2012 3:18 PM
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Simple Execute Shell fails to execute, Jenkins reports success
>
>  
>
> Hi, 
>
> I am having getting Jenkins to communicate with the nodes.  I am using 
> Jenkins 1.466 on a linux machine. It is capable of logging in (notes from 
> the web gui, as well as monitoring the connection via another SSH session), 
> but when I try to execute the following shell script:
>
> echo "Hello" > ~/tmp.txt
>
>  
>
> Jenkins reports it is as a success:
>
> Started by timer
>
> Building remotely on node in workspace /u/auser/jenkins_bc/workspace/Test 
> Job
>
> [Test Job] $ /bin/csh -xe /var/tmp/hudson59733.sh
>
> Finished: SUCCESS
>
>  
>
> But when I check, ~/tmp.txt does not exist, nor do any other simple Linux 
> commands (echo "Hello"; ls -l, etc) print any output to the console.  They 
> simply don't appear to be being executed.  
>
>  
>
> Is there any place I can look to find more information about why this test 
> is not being executed or what exactly is going on?
>
>  
>
> Thanks for the help,
>
> Chris
>


RE: Simple Execute Shell fails to execute, Jenkins reports success

2012-06-18 Thread Stanley, Jason
Try running the echo command but define the actual path to the tmp.txt file.

Example:
echo "Hello" > /var/tmp/tmp.txt


From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Chris Mitchell
Sent: Monday, June 18, 2012 3:18 PM
To: jenkinsci-users@googlegroups.com
Subject: Simple Execute Shell fails to execute, Jenkins reports success

Hi,
I am having getting Jenkins to communicate with the nodes.  I am using Jenkins 
1.466 on a linux machine. It is capable of logging in (notes from the web gui, 
as well as monitoring the connection via another SSH session), but when I try 
to execute the following shell script:
echo "Hello" > ~/tmp.txt

Jenkins reports it is as a success:
Started by timer
Building remotely on node in workspace /u/auser/jenkins_bc/workspace/Test Job
[Test Job] $ /bin/csh -xe /var/tmp/hudson59733.sh
Finished: SUCCESS

But when I check, ~/tmp.txt does not exist, nor do any other simple Linux 
commands (echo "Hello"; ls -l, etc) print any output to the console.  They 
simply don't appear to be being executed.

Is there any place I can look to find more information about why this test is 
not being executed or what exactly is going on?

Thanks for the help,
Chris


Simple Execute Shell fails to execute, Jenkins reports success

2012-06-18 Thread Chris Mitchell
Hi, 
I am having getting Jenkins to communicate with the nodes.  I am using 
Jenkins 1.466 on a linux machine. It is capable of logging in (notes from 
the web gui, as well as monitoring the connection via another SSH session), 
but when I try to execute the following shell script:
echo "Hello" > ~/tmp.txt

Jenkins reports it is as a success:
Started by timer
Building remotely on node in workspace /u/auser/jenkins_bc/workspace/Test 
Job
[Test Job] $ /bin/csh -xe /var/tmp/hudson59733.sh
Finished: SUCCESS

But when I check, ~/tmp.txt does not exist, nor do any other simple Linux 
commands (echo "Hello"; ls -l, etc) print any output to the console.  They 
simply don't appear to be being executed.  

Is there any place I can look to find more information about why this test 
is not being executed or what exactly is going on?

Thanks for the help,
Chris


Re: Which container to use for Jenkins on production?

2012-06-18 Thread Nicky Ramone
Thank you, Les.

On Mon, Jun 18, 2012 at 2:00 PM, Les Mikesell  wrote:

> On Mon, Jun 18, 2012 at 8:34 AM, Nicky Ramone  wrote:
> >
> > We have been using Tomcat for some time now to deploy Jenkins. We will
> > probably put this behind an Apache Httpd so that we can redirect from a
> URL
> > with no port.
> > Example: We would forward http://jenkins.ourinstance.com/ to
> > http://jenkins.ourinstance.com:8080/jenkins
> >
> > I was wondering if there are other suggestions for the deployment. The
> > instructions seems to use the embedded Winstone that comes with Jenkins.
> > What other deployment schemes do you have/suggest, especially for port
> > redirect?
> >
>
> I think it works nicely with winstone and the apache ajp proxy.   I
> have other things being proxied by the same apache front end so I set
> both the jenkins url path and the ajp port for jenkins.  With the
> RHEL/Centos rpm package you can do this in /etc/sysconfig/jenkins with
> a line like:
>  JENKINS_ARGS="--prefix=/jenkins --ajp13Port=8010"
> and then add this to /etc/httpd/conf.d/proxy_ajp.conf:
>  ProxyPass /jenkins/ ajp://localhost:8010/jenkins/
>
> Other distos may put the config changes in different places.
> Also, I made an empty directory /var/www/html/jenkins as a quick fix
> so the default apache settings would send a redirect if you omit the
> trailing slash on /jenkins/.   There is probably a cleaner way to
> accomplish that...
>
> --
>   Les Mikesell
>  lesmikes...@gmail.com
>


RE: Restricting builds from running at certain times of the day

2012-06-18 Thread Mandeville, Rob
You are correct that this might need multiple slaves per host to do that.  This 
isn’t a big deal to do, just make sure that they have different root 
directories.  At my shop, where a build and test cycle takes up an entire Unix 
account, we have several slaves per host, each one on a different account.

The ‘Trigger builds remotely’ feature sets up a URL so that you can trigger a 
build with an HTTP request.  That means that a script can use something like 
wget or curl to launch a Jenkins build.  Even without this feature, you can 
launch builds using the Jenkins CLI (running a JAR file that you can get from 
your Jenkins server); see 
https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+CLI for details.  I’m not 
sure if this relates to triggering builds at certain times.

--Rob

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Ari Maniatis
Sent: Saturday, June 16, 2012 2:40 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: Restricting builds from running at certain times of the day

Thanks for that idea. Unfortunately in my case I don't have enough slaves to 
set it up like that (I guess unless I create two slaves on the same physical 
machine)...

I don't really understand what "[ ] Trigger builds remotely (e.g., from 
scripts)" is supposed to do. Why can't I switch off subversion hooks using 
this? Is this a bug I should file or was that intended for something else?

Ari


On Wednesday, June 13, 2012 11:23:10 PM UTC+10, Mandeville, Rob wrote:
Let the jobs trigger when they will.  But force the jobs to run only on certain 
nodes (such as by using a label).  Then, when configuring  the nodes, set the 
availability to “Take this slave on-line according to a schedule”.  Now, when 
you don’t want the jobs to be running, they’ll queue up waiting for a node they 
can run on to fire up.

--Rob

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com]
 On Behalf Of Ari Maniatis
Sent: Wednesday, June 13, 2012 6:15 AM
To: jenkinsci-users@googlegroups.com
Subject: Restricting builds from running at certain times of the day

I have a Jenkins server which is triggered by the usual svn hooks on every 
commit. However I also have some very long running jobs which I only want to 
run overnight, when we have spare CPU capacity.

For those jobs I have unticked the option:

[ ] Trigger builds remotely (e.g., from scripts)

But it would appear that that option does not apply to the subversion trigger 
URL (
/server/subversion/${UUID}/notifyCommit?rev=$REV ). How do I ensure that some 
jobs are NOT triggered by the subversion hook along with all the others? I want 
them to run on a timed schedule or polling instead.
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.


Re: Invite and meeting (in danish): Short Jenkins intro meeting in the Copenhagen area, Denmark

2012-06-18 Thread R. Tyler Croy

On Mon, 18 Jun 2012, Bue Petersen wrote:

> Just posting an invite below (in danish) if anyone might be interested.
> Meeting and presentation will also be in danish...

Would this be something good to post on the jenkins-ci.org blog?

- R. Tyler Croy
--
Code: http://github.com/rtyler
 Chatter: http://twitter.com/agentdero
  rty...@jabber.org


pgprKP73IlVdD.pgp
Description: PGP signature


Re: Which container to use for Jenkins on production?

2012-06-18 Thread Les Mikesell
On Mon, Jun 18, 2012 at 8:34 AM, Nicky Ramone  wrote:
>
> We have been using Tomcat for some time now to deploy Jenkins. We will
> probably put this behind an Apache Httpd so that we can redirect from a URL
> with no port.
> Example: We would forward http://jenkins.ourinstance.com/ to
> http://jenkins.ourinstance.com:8080/jenkins
>
> I was wondering if there are other suggestions for the deployment. The
> instructions seems to use the embedded Winstone that comes with Jenkins.
> What other deployment schemes do you have/suggest, especially for port
> redirect?
>

I think it works nicely with winstone and the apache ajp proxy.   I
have other things being proxied by the same apache front end so I set
both the jenkins url path and the ajp port for jenkins.  With the
RHEL/Centos rpm package you can do this in /etc/sysconfig/jenkins with
a line like:
  JENKINS_ARGS="--prefix=/jenkins --ajp13Port=8010"
and then add this to /etc/httpd/conf.d/proxy_ajp.conf:
  ProxyPass /jenkins/ ajp://localhost:8010/jenkins/

Other distos may put the config changes in different places.
Also, I made an empty directory /var/www/html/jenkins as a quick fix
so the default apache settings would send a redirect if you omit the
trailing slash on /jenkins/.   There is probably a cleaner way to
accomplish that...

-- 
   Les Mikesell
  lesmikes...@gmail.com


Re: Bullseye Coverage

2012-06-18 Thread Kohsuke Kawaguchi


The users list would be more appropriate for questions like this.

I'm not the domain expert for bullseye coverage, but I wonder if you are 
running everything from a single shell (or else your environment 
variables you set won't be exposed to later separate invocations of the 
shell.)


On 06/15/2012 07:14 AM, yagodka.yu...@gmail.com wrote:

Hi Kohsuke,
I am trying to build bullseye instrumented build from Jenkins (without 
covselect command)

1. I define the envrionment variables to use:

SET MY_LOCAL_COV_FILE=T:\%BUILD_NUMBER%.cov
SET COVFILE=%MY_LOCAL_COV_FILE%
SET COVBUILDZONE=%BUILD_NUMBER%

2. Enable Coverage Build
cov01 --on

3. Start devenv command to build c++ project

But Bullseye doesn't create *.cov file.

I think Jenkins doesn't enable coverage build without covselect command





--
Kohsuke Kawaguchi  http://kohsuke.org/


Re: Copy Artifact Plugin

2012-06-18 Thread lata
oops, sorry, i just discovered we can copy from workspace as well.

On Monday, June 18, 2012 8:27:11 PM UTC+5:30, lata wrote:
>
> Alan, I'm trying to use this plugin to copy a tar.gz file from a nightly 
> build to a test job workspace. the .tar.gz in the nightly build is not an 
> archived artifact, but it's available in the ws, with it's node online. It 
> seems like i can't use the copy artifact unless it's archived, is that 
> right? or is there a way i can copy any file from another Jenkins job's 
> ws, 
> without having to archive it. Because i really don't want to archive the 
> huge nightly build, making a copy from the node to the master. thank you! 
> Maybe that's what Les was looking for, too, copy from the slave and not 
> master. 
>
> -- 
> View this message in context: 
> http://jenkins.361315.n4.nabble.com/Copy-Artifact-Plugin-tp1584761p4631891.html
>  
> Sent from the Jenkins users mailing list archive at Nabble.com. 
>


Re: Jenkins as a Windows service

2012-06-18 Thread Slide
The web UI is THE way to interact with Jenkins, if the machine is not
available, then there is no way to manage Jenkins remotely. The build
server running Jenkins needs to be accessible. You could set it up
such that only the Jenkins server is accessible and all builds are
done on slaves within another network, but the Jenkins server would
need to be part of both the external network and the internal one.

slide

On Mon, Jun 18, 2012 at 8:04 AM, louwho  wrote:
> As I mentioned in my previous posting, (using Internet Explorer), I could
> not connect.
>
> On Thursday, June 14, 2012 5:50:55 PM UTC-4, louwho wrote:
>>
>> Is there (or should there be), a seperate forum\group\whatever for those
>> who have questions regarding Jenkins installed as a windows Service?  Also,
>> is there a plugin (to be installed on a windows system) for monitoring
>> Jenkins jobs?  I understand that CCTray can be used, but it only monitors
>> (cannot kick off a build).



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


Re: Jenkins - Defining users

2012-06-18 Thread Sara Silva
I think i solved it, doing this:

Select:
Jenkins's own user database
Anyone can do anything

then i go to the people and select the user, now the password field is
available, defined it and then log in.

But now i have another issue. I went to the VisualSVN Server and
created a new user. I stop the jenkins service and start again, but
when i go to the people page i have only one user, the first one.

How to update new users?



On Jun 18, 3:06 pm, Sara Silva  wrote:
> Hello,
>
> i just installed jenkins in my pc. It is a Windows 7 and i used the
> *.exe file.
>
> Now i just run the msbuild using the targets: clean, init, compile,
> test and coverage. And i have a windows batch command for run fxCop.
>
> Now i want to configur security and users.
>
> I'm using VisualSVN Server that has one user, sarasilva, and i think
> the best configuration in jenkins is to use the same users (?).
>
> In the configuration i'm doing this:
>
> http://s14.postimage.org/gvu930udd/security.png
>
> In the people>sarasilva configuration i have this:
>
> http://s15.postimage.org/y134g5q0b/security_sarasilva_config.png
>
> If i save this configuration, when i try to log in with sarasilva user
> this fails, i'm using the same password from the svn server.
>
> What i'm doing wrong?
>
> Thanks
> Sara Silva


Re: Jenkins as a Windows service

2012-06-18 Thread louwho
As I mentioned in my previous posting, (using Internet Explorer), I could 
not connect.

On Thursday, June 14, 2012 5:50:55 PM UTC-4, louwho wrote:

> Is there (or should there be), a seperate forum\group\whatever for those 
> who have questions regarding Jenkins installed as a windows Service?  Also, 
> is there a plugin (to be installed on a windows system) for monitoring 
> Jenkins jobs?  I understand that CCTray can be used, but it only monitors 
> (cannot kick off a build).



Re: Jenkins as a Windows service

2012-06-18 Thread Andrew Melo
On Mon, Jun 18, 2012 at 9:58 AM, louwho  wrote:
> On Windows server 'A', I have Jenkins installed as a windows Service, and I
> have a few builds jobs created and scheduled.  Developers (in different
> sites, on windows systems), check things into SVN, and will want to see that
> their checkins have not broken the system, and\or, they might want to kick
> off one of the build jobs rather wait for it's scheduled time.  They do not
> have access to system 'A'.  From their own systems, how can they do this
> without being logged onto system 'A'?

Can they not connect to the web UI?

>
>
> On Thursday, June 14, 2012 5:50:55 PM UTC-4, louwho wrote:
>>
>> Is there (or should there be), a seperate forum\group\whatever for those
>> who have questions regarding Jenkins installed as a windows Service?  Also,
>> is there a plugin (to be installed on a windows system) for monitoring
>> Jenkins jobs?  I understand that CCTray can be used, but it only monitors
>> (cannot kick off a build).



-- 
--
Andrew Melo


Re: Jenkins as a Windows service

2012-06-18 Thread louwho
On Windows server 'A', I have Jenkins installed as a windows Service, and I 
have a few builds jobs created and scheduled.  Developers (in different 
sites, on windows systems), check things into SVN, and will want to see 
that their checkins have not broken the system, and\or, they might want to 
kick off one of the build jobs rather wait for it's scheduled time.  They 
do not have access to system 'A'.  From their own systems, how can they do 
this without being logged onto system 'A'?
 

On Thursday, June 14, 2012 5:50:55 PM UTC-4, louwho wrote:

> Is there (or should there be), a seperate forum\group\whatever for those 
> who have questions regarding Jenkins installed as a windows Service?  Also, 
> is there a plugin (to be installed on a windows system) for monitoring 
> Jenkins jobs?  I understand that CCTray can be used, but it only monitors 
> (cannot kick off a build).



Re: Copy Artifact Plugin

2012-06-18 Thread lata
Alan, I'm trying to use this plugin to copy a tar.gz file from a nightly
build to a test job workspace. the .tar.gz in the nightly build is not an
archived artifact, but it's available in the ws, with it's node online. It
seems like i can't use the copy artifact unless it's archived, is that
right? or is there a way i can copy any file from another Jenkins job's ws,
without having to archive it. Because i really don't want to archive the
huge nightly build, making a copy from the node to the master. thank you!
Maybe that's what Les was looking for, too, copy from the slave and not
master.

--
View this message in context: 
http://jenkins.361315.n4.nabble.com/Copy-Artifact-Plugin-tp1584761p4631891.html
Sent from the Jenkins users mailing list archive at Nabble.com.


Re: Jenkins as a Windows service

2012-06-18 Thread Slide
I'm not sure what you mean by "monitor" the web GUI allows you to
control pretty much everything about Jenkins. What are you really
trying to do?

slide

On Mon, Jun 18, 2012 at 7:34 AM, louwho  wrote:
> Is there no way to monitor Jenkins from another Windows system?
>
> On Thursday, June 14, 2012 5:50:55 PM UTC-4, louwho wrote:
>>
>> Is there (or should there be), a seperate forum\group\whatever for those
>> who have questions regarding Jenkins installed as a windows Service?  Also,
>> is there a plugin (to be installed on a windows system) for monitoring
>> Jenkins jobs?  I understand that CCTray can be used, but it only monitors
>> (cannot kick off a build).



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


Re: Jenkins as a Windows service

2012-06-18 Thread louwho
Is there no way to monitor Jenkins from another Windows system?

On Thursday, June 14, 2012 5:50:55 PM UTC-4, louwho wrote:

> Is there (or should there be), a seperate forum\group\whatever for those 
> who have questions regarding Jenkins installed as a windows Service?  Also, 
> is there a plugin (to be installed on a windows system) for monitoring 
> Jenkins jobs?  I understand that CCTray can be used, but it only monitors 
> (cannot kick off a build).



Jenkins - Defining users

2012-06-18 Thread Sara Silva
Hello,

i just installed jenkins in my pc. It is a Windows 7 and i used the
*.exe file.

Now i just run the msbuild using the targets: clean, init, compile,
test and coverage. And i have a windows batch command for run fxCop.

Now i want to configur security and users.

I'm using VisualSVN Server that has one user, sarasilva, and i think
the best configuration in jenkins is to use the same users (?).

In the configuration i'm doing this:

http://s14.postimage.org/gvu930udd/security.png

In the people>sarasilva configuration i have this:

http://s15.postimage.org/y134g5q0b/security_sarasilva_config.png

If i save this configuration, when i try to log in with sarasilva user
this fails, i'm using the same password from the svn server.

What i'm doing wrong?



Thanks
Sara Silva


Invite and meeting (in danish): Short Jenkins intro meeting in the Copenhagen area, Denmark

2012-06-18 Thread Bue Petersen
Just posting an invite below (in danish) if anyone might be interested.
Meeting and presentation will also be in danish...



Introduktion til Jenkins Continuous Integration Server

Continuous Integration – er et princip der dikterer, at alle ændringer
skal integreres, i det øjeblik de er skabt – kontinuerligt og
automatisk. Continous Software Validation går skridtet videre - alle
ændringer skal valideres, i det øjeblik de er skabt.

Jenkins Continuous Integration Server hurtigt blevet de facto standard
for Continuous Integration. Og den er hjørnestenen i build- og
softwarevaliderings-systemet og bindeledet mellem samtlige tools i
hele den tool-chain, man ønsker at indføre eller udbygge.

På Jenkins konfigureres jobs, som udover at bygge og eksekvere
unittests også kan tage ansvar for valideringer som statisk
kodeanalyse, rapportering af warnings, coverage-målinger af unittests,
automatisk generering af dokumentation, eksekvering af funktionelle
tests etc.

Vi holder et uformelt gå-hjem-møde med pizza, øl og sodavand, hvor vi
præsenterer Jenkins Continuous Integration og viser dig, hvordan du
nemt kommer i gang, så du allerede dagen efter kan høste synlige
fordele på dine projekter.

Du kan få helt ny viden og indsigt i din kodebase, og du kan skabe
grundlag for ændring af arbejdsgange i udviklingen.

Onsdag 27. juni 2012  kl. 17.00 - 18.30

Praqma A/S
Allerød Stationsvej 4
3450 Allerød
Denmark

Tilmelding: https://sites.google.com/a/praqma.net/www/seminar



Bue Petersen
Praqma A/S (www.praqma.net)


Which container to use for Jenkins on production?

2012-06-18 Thread Nicky Ramone
Hi

We have been using Tomcat for some time now to deploy Jenkins. We will
probably put this behind an Apache Httpd so that we can redirect from a URL
with no port.
Example: We would forward http://jenkins.ourinstance.com/ to
http://jenkins.ourinstance.com:8080/jenkins

I was wondering if there are other suggestions for the deployment. The
instructions seems to use the embedded Winstone that comes with Jenkins.
What other deployment schemes do you have/suggest, especially for port
redirect?

Thanks.
Regards.


CVS Bugfix

2012-06-18 Thread Knuplesch , Jürgen
Hello,

 

i just upgraded Jenkins but found out that

https://issues.jenkins-ci.org/browse/JENKINS-13789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#issue-tabs

is affecting me.

 

The problem seems to be fixed, but not released.

When will the Bugfix be released?

 

Is there testversion or a workaround, I can use, because we are working a lot 
with CVS Branches.

 

Juergen

 

-- 

Jürgen Knupleschwww.icongmbh.de  

icon Systemhaus GmbHTel. +49 711 806098-275

Sophienstraße 40juergen.knuple...@icongmbh.de

D-70178 Stuttgart   Fax. +49 711 806098-299

 

Geschäftsführer: Uwe Seltmann

HRB Stuttgart 17655

USt-IdNr.: DE 811944121 

 

 



Re: Userbility on when starting build with parameters

2012-06-18 Thread Jesper Terkelsen
Thank you daniel this was really useful for me. 

I think this is enough for me to be able to send the user directly to the 
build now, and still get the user to read the documentation before starting 
the job.

Best regards
Jesper

On Saturday, June 16, 2012 3:32:45 PM UTC+2, Daniel Beck wrote:
>
> If it's just the job description on the build page, you could add the 
> following JS snippet to any of your job's parameter descriptions: 
>
>  
> if(document.URL == "http://jenkins/job/jobname/build?delay=0sec";) { 
>   new Ajax.Request('http://jenkins/job/jobname/api/json', { 
> onSuccess: function(transport) { 
>   var data = transport.responseText.evalJSON(); 
>   var target = $$("p").first(); 
>   if (target != null) target.update(data.description); 
> } 
>   }); 
> } 
>
> This will change the "This build requires parameters" text to the job 
> description when viewing the Build Now page. 
>
> On pages like a past build's parameters, it'll run and immediately quit. 
> It seems to work with authentication as well. I have not used this 
> productively. One possible issue is the accumulation of JS in your builds' 
> parameter data. 
>
> Regards, 
> Daniel 
>
>
> On 16.06.2012, at 13:04, Jesper Terkelsen wrote: 
>
> > Hi Andrey 
> > 
> > Thank you for the feedback. I think this is also the way to go for me. 
> > 
> > But i will have to re-implement some of the features i already have now, 
> most specifically the login part. 
> > And i have to find a way to preserve the user credentials when doing the 
> REST call. 
> > 
> > Also i use some really nice plugins for generating drop downs for 
> parameters, for some of the scripts. Those i will have to implement myself 
> also. 
> > 
> > Perhaps it is easier to patch jenkins itself instead. 
> > 
> > I will try different approaches, but i would prefer not to create a 
> complete new system because of this :-) 
> > 
> > I might also just live with the current solution, and try to educate my 
> users better. 
> > 
> > Best regards 
> > Jesper 
> > 
> > On 16 June 2012 00:05, Andrey Myatlyuk wrote: 
> > Hi Jesper, 
> > 
> > It seems that you need to add more information to jobs pages and make 
> the interaction with Jenkins more user-friendly and foolproof. To make it 
> happen I would suggest to add a layer of abstraction on top of Jenkins. 
> > 
> > Using simple interface and communicating with Jenkins through REST 
> interface you will accomplish the following: 
> > - description of jobs and parameters in any way you find suitable 
> > - exposed just the right amount of information and/or configuration 
> parameters 
> > - any types of validations on input parameters 
> > - make it in the form of wizard, where the first page will have 
> job/parameters description and the next page will ask for values and 
> perform validation 
> > - any types of notifications 
> > - better access control 
> > - any specific area can have it's own page/tab and it is not necessarily 
> the same hierarchy as on Jenkins build server 
> > - Jenkins can change the home, yet your web interface will be intact 
> > 
> > Yes, it will involve some coding on your side, but it will be simple and 
> beautiful solution :-) Just my 2 cents. 
> > 
> > Thank you, 
> > Andrey 
> > 
> > On Fri, Jun 15, 2012 at 3:24 AM, Jesper Terkelsen wrote: 
> > Hi all 
> > 
> > I am using Jenkins as a system that monitors cron jobs, and allows users 
> to start various shell scripts on servers with parameters. 
> > 
> > Jenkins serves this purpose really well, because you can: 
> > • Use the company LDAB server for login 
> > • Control who has access to what 
> > • Monitor the success of the job. 
> > • Log the output of the scripts, for debugging. 
> > • And it is fairly easy for non technical people to start jobs 
> via a web GUI, allowing the development and operations teams to outsource 
> some trivial tasks to other departments. 
> > I have the following problems with the last point though. 
> > • If i send the user to the job page, where i can put a 
> description on what the job does. 
> > • Pro: The users can read the documentation on how to do 
> the job, which will make them more likely to put in the correct parameters, 
> and not run the job if it is not the correct one. 
> > • Con: The users cannot always easy find the build 
> button to the left, and it will require them an ekstra click to start the 
> job. 
> > • If i send the user directly to the build now 
> (/build?delay=0sec). The page will include the following: Job name, the 
> text "This build requires parameters:" the parameters, and a build button. 
> > • Pro: It is far more easy for the users to understand 
> what to do, you put in arguments, and hit the build button. 
> > 

Re: Jenkins-Eclipse-Plugin Available to download?

2012-06-18 Thread Manuel Doninger
On Mon, Jun 18, 2012 at 7:36 AM, Lakshmi  wrote:
> Hi,
>
> I am searching for an update site/zip to install an eclipse plugin for
> Jenkins as available for Hudson. But I'm not able to find
>
> any for both Eclipse v3.6 & v3.7. I would like to know from which path I can
> download the Jenkins eclipse plugin for both
>
> Helios & Indigo. Please suggest me.
>
> Thanks,
> Lakshmi

The connector is available in the update site for Mylyn:
http://download.eclipse.org/mylyn/releases/latest
More infos (weekly builds etc): http://www.eclipse.org/mylyn/downloads/

Regards,
Manuel


Re: Jenkins-Eclipse-Plugin Available to download?

2012-06-18 Thread Jesse Farinacci
Greetings,

On Mon, Jun 18, 2012 at 1:36 AM, Lakshmi  wrote:
> I am searching for an update site/zip to install an eclipse plugin for
> Jenkins as available for Hudson. But I'm not able to find

http://tasktop.com/connectors/hudson-jenkins.php

-Jesse

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.


RE: Jenkins Jobs hangs at sending email

2012-06-18 Thread Alex Earl
I thought there was a separate setting for it let me look.

Sent from my Windows Phone
--
From: vprasad79
Sent: 6/17/2012 11:01 PM
To: jenkinsci-users@googlegroups.com
Cc: vprasad79
Subject: Re: Jenkins Jobs hangs at sending email

Hello Slide,

Please can I know how to turn off LDAP email?
Does it means Disable LDAP security configuration?

Thanks,
Venkat

On Friday, 15 June 2012 22:54:18 UTC+8, slide wrote:
>
> You can try turning off the LDAP email, though I think the core
> Mailresolver will still use the LDAP email resolver.
>
> On Fri, Jun 15, 2012 at 7:49 AM, vprasad79 wrote:
>
>> Thanks for response.
>> But not sure why it getting hanged for one+ hour at this stage.
>>
>> We need URGENT help on this issue many jobs fails due to email trigger
>> errors though build is successful.
>>
>>
>> 
>>
>> Email was triggered for: Failure
>> Email was triggered for: Still Failing
>> Trigger Failure was overridden by another trigger and will not send an email.
>> Sending email for trigger: Still Failing
>> Sending email to: xxx-l...@xxx.com x...@xxx.com x...@xxx.com x...@.com 
>> x...@.com x...@x.com
>> Notifying upstream projects of job completion
>> Notifying upstream of completion: FLO-x #382
>> All downstream projects complete!
>> Minimum result threshold not met for join project
>> Finished: FAILURE
>>
>>
>>
>>
>>
>> On Thursday, 7 June 2012 23:53:15 UTC+8, slide wrote:
>>>
>>> It's trying to lookup the user in LDAP and it can't find it, the LDAP
>>> plugin is throwing an exception. I have a possible fix for this (at
>>> least catching the exception) in the works, but have not released with
>>> it yet.
>>>
>>> On Thu, Jun 7, 2012 at 8:34 AM, vprasad79 
>>> wrote:
>>> > No. we use email-ext plugin.
>>> >
>>> >
>>> >
>>> > On Thursday, 7 June 2012 22:08:23 UTC+8, slide wrote:
>>> >>
>>> >> Is this with the default mailer?
>>> >>
>>> >> Sent from my Windows Phone
>>> >> __**__
>>> >> From: vprasad79
>>> >> Sent: 6/7/2012 1:56 AM
>>> >> To: jenkinsci-users@googlegroups.**com
>>> >> Subject: Jenkins Jobs hangs at sending email
>>> >>
>>> >> Some of our Jenkins jobs get hanged to the point where it says:
>>> >>
>>> >> Sending email for trigger: Failure
>>> >>
>>> >> Please can you help us.
>>> >>
>>> >>
>>> >> We are using  Jenkins ver. 1.458
>>> >> Following errors observed in Jenkins log
>>> >>
>>> >> WARNING: com.gmail.sikakura.**MailCommandTrigger.run() failed for
>>> >> MailCommander
>>> >>
>>> >> java.lang.NullPointerException
>>> >>
>>> >> at
>>> >> com.gmail.sikakura.**MailCommandTrigger.run(**MailCommandTrigger.java:104)
>>>
>>> >>
>>> >> at hudson.triggers.Trigger.**checkTriggers(Trigger.java:**259)
>>>
>>> >>
>>> >> at hudson.triggers.Trigger$Cron.**doRun(Trigger.java:207)
>>> >>
>>> >> at hudson.triggers.SafeTimerTask.**run(SafeTimerTask.java:54)
>>>
>>> >>
>>> >> at java.util.TimerThread.**mainLoop(Timer.java:512)
>>> >>
>>> >> at java.util.TimerThread.run(**Timer.java:462)
>>> >>
>>> >> Jun 6, 2012 8:56:30 PM
>>> >> hudson.security.**LDAPSecurityRealm$**LDAPUserDetailsService
>>> loadUserByUsername
>>> >>
>>> >> WARNING: Failed to search LDAP for username=USERx
>>> >>
>>> >> org.acegisecurity.ldap.**LdapDataAccessException: Failed to obtain
>>> >> InitialDirContext due to unexpected exception; nested exception is
>>> >> javax.naming.**InterruptedNamingException: Interrupted during LDAP
>>> operation
>>> >>
>>> >> at
>>> >> org.acegisecurity.ldap.**DefaultInitialDirContextFactor**y.connect(**
>>> DefaultInitialDirContextFactor**y.java:193)
>>> >>
>>> >> at
>>> >> org.acegisecurity.ldap.**DefaultInitialDirContextFactor**
>>> y.newInitialDirContext(**DefaultInitialDirContextFactor**y.java:261)
>>> >>
>>> >> at
>>> >> org.acegisecurity.ldap.**DefaultInitialDirContextFactor**
>>> y.newInitialDirContext(**DefaultInitialDirContextFactor**y.java:241)
>>> >>
>>> >> at
>>> >> org.acegisecurity.ldap.**LdapTemplate.execute(**LdapTemplate.java:123)
>>>
>>> >>
>>> >>
>>> >
>>>
>>>
>>>
>>> --
>>> Website: http://earl-of-code.**com 
>>>
>>
>
>
> --
> Website: http://earl-of-code.com
>


RE: Jenkins Jobs hangs at sending email

2012-06-18 Thread Alex Earl
This would be a change in the specific plugin that is trying to resolve, in
this case either LDAP or Active Directory.

Sent from my Windows Phone
--
From: vprasad79
Sent: 6/17/2012 10:49 PM
To: jenkinsci-users@googlegroups.com
Cc: vprasad79
Subject: Re: Jenkins Jobs hangs at sending email


I believe email-ext plugin uses jenkins default mail resolver?
Can we have timeout set to 10seconds for mail resolver?

Thank-you,
Venkat

On Friday, 15 June 2012 22:54:18 UTC+8, slide wrote:
>
> You can try turning off the LDAP email, though I think the core
> Mailresolver will still use the LDAP email resolver.
>
> On Fri, Jun 15, 2012 at 7:49 AM, vprasad79 wrote:
>
>> Thanks for response.
>> But not sure why it getting hanged for one+ hour at this stage.
>>
>>
>>
>> 
>>
>> Email was triggered for: Failure
>> Email was triggered for: Still Failing
>> Trigger Failure was overridden by another trigger and will not send an email.
>> Sending email for trigger: Still Failing
>> Sending email to: xxx-l...@xxx.com x...@xxx.com x...@xxx.com x...@.com 
>> x...@.com x...@x.com
>> Notifying upstream projects of job completion
>> Notifying upstream of completion: FLO-x #382
>> All downstream projects complete!
>> Minimum result threshold not met for join project
>> Finished: FAILURE
>>
>>
>>
>>
>>
>> On Thursday, 7 June 2012 23:53:15 UTC+8, slide wrote:
>>>
>>> It's trying to lookup the user in LDAP and it can't find it, the LDAP
>>> plugin is throwing an exception. I have a possible fix for this (at
>>> least catching the exception) in the works, but have not released with
>>> it yet.
>>>
>>> On Thu, Jun 7, 2012 at 8:34 AM, vprasad79 
>>> wrote:
>>> > No. we use email-ext plugin.
>>> >
>>> >
>>> >
>>> > On Thursday, 7 June 2012 22:08:23 UTC+8, slide wrote:
>>> >>
>>> >> Is this with the default mailer?
>>> >>
>>> >> Sent from my Windows Phone
>>> >> __**__
>>> >> From: vprasad79
>>> >> Sent: 6/7/2012 1:56 AM
>>> >> To: jenkinsci-users@googlegroups.**com
>>> >> Subject: Jenkins Jobs hangs at sending email
>>> >>
>>> >> Some of our Jenkins jobs get hanged to the point where it says:
>>> >>
>>> >> Sending email for trigger: Failure
>>> >>
>>> >> Please can you help us.
>>> >>
>>> >>
>>> >> We are using  Jenkins ver. 1.458
>>> >> Following errors observed in Jenkins log
>>> >>
>>> >> WARNING: com.gmail.sikakura.**MailCommandTrigger.run() failed for
>>> >> MailCommander
>>> >>
>>> >> java.lang.NullPointerException
>>> >>
>>> >> at
>>> >> com.gmail.sikakura.**MailCommandTrigger.run(**MailCommandTrigger.java:104)
>>>
>>> >>
>>> >> at hudson.triggers.Trigger.**checkTriggers(Trigger.java:**259)
>>>
>>> >>
>>> >> at hudson.triggers.Trigger$Cron.**doRun(Trigger.java:207)
>>> >>
>>> >> at hudson.triggers.SafeTimerTask.**run(SafeTimerTask.java:54)
>>>
>>> >>
>>> >> at java.util.TimerThread.**mainLoop(Timer.java:512)
>>> >>
>>> >> at java.util.TimerThread.run(**Timer.java:462)
>>> >>
>>> >> Jun 6, 2012 8:56:30 PM
>>> >> hudson.security.**LDAPSecurityRealm$**LDAPUserDetailsService
>>> loadUserByUsername
>>> >>
>>> >> WARNING: Failed to search LDAP for username=USERx
>>> >>
>>> >> org.acegisecurity.ldap.**LdapDataAccessException: Failed to obtain
>>> >> InitialDirContext due to unexpected exception; nested exception is
>>> >> javax.naming.**InterruptedNamingException: Interrupted during LDAP
>>> operation
>>> >>
>>> >> at
>>> >> org.acegisecurity.ldap.**DefaultInitialDirContextFactor**y.connect(**
>>> DefaultInitialDirContextFactor**y.java:193)
>>> >>
>>> >> at
>>> >> org.acegisecurity.ldap.**DefaultInitialDirContextFactor**
>>> y.newInitialDirContext(**DefaultInitialDirContextFactor**y.java:261)
>>> >>
>>> >> at
>>> >> org.acegisecurity.ldap.**DefaultInitialDirContextFactor**
>>> y.newInitialDirContext(**DefaultInitialDirContextFactor**y.java:241)
>>> >>
>>> >> at
>>> >> org.acegisecurity.ldap.**LdapTemplate.execute(**LdapTemplate.java:123)
>>>
>>> >>
>>> >>
>>> >
>>>
>>>
>>>
>>> --
>>> Website: http://earl-of-code.**com 
>>>
>>
>
>
> --
> Website: http://earl-of-code.com
>


Re: Certification

2012-06-18 Thread Stevo Slavić
Hello Suri,

It seems CloudBees offers training services (see
http://www.cloudbees.com/training.cb ), but I don't see anything about
certification (neither separate nor part of the training).

I guess biggest certification one can get for Jenkins is to become active
comitter or contributor to the project and/or plugins.

Kind regards,
Stevo Slavić.

On Mon, Jun 18, 2012 at 9:01 AM, Suri  wrote:

> Hi
>
> Can anyone suggest me, Whether any certification exam is available for
> Jenkins ?
>
> If yes, How to participate Jenkins Certification exam?
>


Re: Set the job to be a flyweight task

2012-06-18 Thread Sebastian Sawicki
Hi,
Let me explain it explain it more.
There is one 'build scenario parametrized job: S(c);
There are 3 matrix jobs:
M1: with the axis c=C1, C2, C3.
M2: c=C1, C3.
M3: c=C2, C3.

Cause *I would like to avoid copying the S job* each matrix is configured
to run S with the parameter that points the actual configuration.

I.e:
M1 runs:

   - M1 parent (and it is the fly-weight task by default), which runs:
  - M1(c=C1) runs (and do nothing else, therefore I'd like this to be
  fly-weight too):
 - S(c=C1) - this is the actual execution.
 - M1(c=C2) runs (and do nothing else, therefore I'd like this to
  be fly-weight too):
 - S(c=C2) - this is the actual execution.
 - M1(c=C3) runs (and do nothing else, therefore I'd like this to
  be fly-weight too):
 - S(c=C3) - this is the actual execution.

M2 runs:

   - M2 parent (and it is the fly-weight task by default), which runs:
  - M2(c=C1) runs (and do nothing else, therefore I'd like this to be
  fly-weight too):
 - S(c=C1) - this is the actual execution.
 - M2(c=C2) runs (and do nothing else, therefore I'd like this to
  be fly-weight too):
 - S(c=C2) - this is the actual execution.

M3 runs:

   - M3 parent (and it is the fly-weight task by default), which runs:
  - M3(c=C2) runs (and do nothing else, therefore I'd like this to be
  fly-weight too):
 - S(c=C2) - this is the actual execution.
 - M3(c=C3) runs (and do nothing else, therefore I'd like this to
  be fly-weight too):
 - S(c=C3) - this is the actual execution.

S needs to be configured to let concurrent builds.
M... children (i.e. the matrix job for each configuration - M...(c=...))
just triggers the S job passing the actual configuration to it and waits
for the result.
Therefore I would like this waiting not to consume the jenkins-configured
executor (thus I understand that it will consume a little from real
resurorces of one of the slaves).


2012/6/18 Simon Wiest 

> Hi Sebastian,
>
> the 'parent' matrix builds are always fly-weight tasks. So you do not need
> to configure that explicitly. Only the individual 'child' matrix runs spawn
> by the matrix build (in your example: C1, C2, C2, ...)  will take up an
> executor.
>
> By the way: matrix runs are executed in parallel by default. You would
> have to check the "Run each configuration sequentially" option explicitly
> to switch that off.
>
> Do you experience any specific problem with your current setup?
>
> Cheers,
> Simon.
> --
> Sebastian Sawicki (18.06.2012 02:11):
>
>  Hi,
>> I've got one build scenario (Scenario) which can be run by several
>> configurations:
>> Scenario(Configuration c) where c=C1, C2, C3,...
>>
>> The matrix build would fit here, cause I can set the configuration axes
>> to cover each Configuration.
>> However, what I need is to build some subset of those configurations in
>> a few different matrixes i.e.:
>> M1: C1, C2, C3.
>> M2: C1, C3.
>> M3: C2, C3.
>>
>> Therefore I thought about setting the Scenario as a parametrized job
>> (where the current configuration will be set in the parameters) with the
>> option set to enable concurrent builds. And then to launch this job with
>> the given parameters from the matrix child build.
>> As I understand this approach will consume 2 executors for each running
>> configuration build (one for the matrix and second for the actual
>> Scenario) although the matrix build will not do anything but waiting for
>> the Scenario to complete and then just archive its artifacts.
>>
>> So here comes my question: If there is a possibility to set this whole
>> matrix to act as flyweight task (and not to consume any
>> jenkins-configured executor), since the job is done only by the Scenario
>> and the matrix is intended just to choose which configurations would run?
>>
>
>
>


Re: User Prompts

2012-06-18 Thread shanz
Chris,
Yes I also do exactly that too.
First job asks questions with parameters and populates a property file 
which envinject interrogates for each subsequent job.
I found this simpler and less error prone than just relying on passing on 
the parameters to each job.
I'll make do for now until I can automate absolutely everything.
Thanks.

On Friday, June 15, 2012 9:52:26 PM UTC+1, cjo wrote:
>
> I've set up some thing like that,
>
> Basically the first job in the chain asks all the questions about tasks to 
> builds, are artifacts required, etc via parameters.
>
> Does some basic checking (tasks correct, do they exist) and creates a 
> summary of this information.
>
> If this checking passes, it creates a property file that is passed to all 
> downstream jobs, via the parametrized trigger plugin
>
> All further jobs then reference this file (can be accessed from scripts or 
> added to the build env using envinject plugin)
>
> If you want to prevent jobs 2-N being started manually, use the role 
> strategy plugin to block who can start these.
> https://wiki.jenkins-ci.org/display/JENKINS/Role+Strategy+Plugin 
>
> I don't personally use this as we are a small team of 8 people who use the 
> service and don't mess around things they don't need to.
>
> Chris
>
> On Friday, June 15, 2012 4:39:20 PM UTC+1, shanz wrote:
>>
>> At the moment I am resigned to defeat so I've got a slightly 
>> underwhelming plan B.
>> I can put a hyperlink in the description of job1 as follows
>> Once complete manually continue by clicking here :-
>> http://localhost:8086/jenkins/job1/build";>
>> http://localhost:8086/jenkins/job1/build 
>>
>> On Friday, June 15, 2012 4:08:51 PM UTC+1, shanz wrote:
>>>
>>> I split the whole project into jobs for convenience only, there is 
>>> nothing special about having separate jobs.
>>> Job 1 is triggered by a user but then all the subsequent jobs just 
>>> follow the previous job automatically.
>>> I guess the original user would be the one to prompt in their browser.
>>>
>>>
>>> On Friday, June 15, 2012 3:47:27 PM UTC+1, (unknown) wrote:

  Can you explain what you want to happen? If you are talking about a 
 job that is triggered by a previous job, rather than by a user, who do you 
 want to ask for input? There is no user to ask.

  

 I guess the question is, how are the consecutive jobs being run at the 
 moment?

  
   
 *From:* jenkinsci-users@googlegroups.com [mailto:
 jenkinsci-users@googlegroups.com] *On Behalf Of *shanz
 *Sent:* 15 June 2012 15:30
 *To:* jenkinsci-users@googlegroups.com
 *Subject:* User Prompts
  
  

 I know I can use the Parameterized Builds plugin to prompt for user 
 input however this only works for the initial job.
 I want to ask for user input (eg: Boolean tick box - have you done 
 xyz?), in a job which is in the middle of a list of consecutive jobs.
 Is this possible?
   
>>>

Re: Set the job to be a flyweight task

2012-06-18 Thread Simon Wiest

Hi Sebastian,

the 'parent' matrix builds are always fly-weight tasks. So you do not 
need to configure that explicitly. Only the individual 'child' matrix 
runs spawn by the matrix build (in your example: C1, C2, C2, ...)  will 
take up an executor.


By the way: matrix runs are executed in parallel by default. You would 
have to check the "Run each configuration sequentially" option 
explicitly to switch that off.


Do you experience any specific problem with your current setup?

Cheers,
Simon.
--
Sebastian Sawicki (18.06.2012 02:11):

Hi,
I've got one build scenario (Scenario) which can be run by several
configurations:
Scenario(Configuration c) where c=C1, C2, C3,...

The matrix build would fit here, cause I can set the configuration axes
to cover each Configuration.
However, what I need is to build some subset of those configurations in
a few different matrixes i.e.:
M1: C1, C2, C3.
M2: C1, C3.
M3: C2, C3.

Therefore I thought about setting the Scenario as a parametrized job
(where the current configuration will be set in the parameters) with the
option set to enable concurrent builds. And then to launch this job with
the given parameters from the matrix child build.
As I understand this approach will consume 2 executors for each running
configuration build (one for the matrix and second for the actual
Scenario) although the matrix build will not do anything but waiting for
the Scenario to complete and then just archive its artifacts.

So here comes my question: If there is a possibility to set this whole
matrix to act as flyweight task (and not to consume any
jenkins-configured executor), since the job is done only by the Scenario
and the matrix is intended just to choose which configurations would run?





Certification

2012-06-18 Thread Suri
Hi

Can anyone suggest me, Whether any certification exam is available for
Jenkins ?

If yes, How to participate Jenkins Certification exam?