[infra-outage] wiki.jenkins-ci.org and issues.jenkins-ci.org are down

2012-10-02 Thread Arnaud Héritier
Hi all,

  We are sorry but wiki.jenkins-ci.org and issues.jenkins-ci.org are down
and we have for now no visibility about an ETA for them.

Cheers,

-
Arnaud Héritier
http://aheritier.net
Mail/GTalk: aherit...@gmail.com
Twitter/Skype : aheritier


Re: Slides from user conference

2012-10-02 Thread mpapo - Michaël Pailloncy
Hi,

You can found some slides here : 
http://slideshare.net/kohsuke/jenkins-user-conference-2012-san-franciscohttp://fr.slideshare.net/kohsuke/jenkins-user-conference-2012-san-francisco
 
I don't know if there is other presentations at another place.

Michaël

Le mardi 2 octobre 2012 01:25:44 UTC+2, Sarah Woodall a écrit :

 I attended the Jenkins User Conference in San Francisco yesterday. Some 
 very interesting talks. A few of the speakers mentioned that their 
 slides would be available online afterwards, and I'm wondering how I get 
 hold of a pointer to these. Can anyone help? 

 Thanks, 
 Sarah 
 -- 
 Sarah Woodall 
 Code Red Technologies 



Re: [infra-outage] wiki.jenkins-ci.org and issues.jenkins-ci.org are down

2012-10-02 Thread Gábor Garami
What happened?

Garami Gábor
E-mail: gabor.gar...@hron.me
Tel: +36 20 235 9621
MSN: h...@vipmail.hu
Skype: hron84


On Tue, Oct 2, 2012 at 12:11 PM, Arnaud Héritier aherit...@gmail.com wrote:
 Hi all,

   We are sorry but wiki.jenkins-ci.org and issues.jenkins-ci.org are down
 and we have for now no visibility about an ETA for them.

 Cheers,

 -
 Arnaud Héritier
 http://aheritier.net
 Mail/GTalk: aherit...@gmail.com
 Twitter/Skype : aheritier



Re: I'm starting. configuring CVS.

2012-10-02 Thread Gábor Garami
This is fairly detailed error message: connection is refused.

Did you tried do cvs checkout directly on the Jenkins server? It is allowed
to connect to 204.93.211.119 via SSH?

Regards,

Garami Gábor
E-mail: gabor.gar...@hron.me
Tel: +36 20 235 9621
MSN: h...@vipmail.hu
Skype: hron84



On Mon, Oct 1, 2012 at 10:22 PM, Oscar Martins
oscarrafaelcam...@gmail.comwrote:

 this my configuration:

 Source Code Management
  CVS
 CVSROOT[image: Help for feature: CVSROOT] 
 http://orc-project.com/jenkins/job/orc-portal/configure#
  Module(s)[image: Help for feature: Module(s)] 
 http://orc-project.com/jenkins/job/orc-portal/configure# Branch
 This is a tag, not a branch
 [image: Help for feature: Branch] 
 http://orc-project.com/jenkins/job/orc-portal/configure#

 This error console:



 Building in workspace /home/orcproje/.hudson/jobs/orc-portal/workspace
 [orc-portal] $ cvs -Q -z3 -d 
 :ext:orcproje@204.93.211.119:/home/orcproje/cvs-orc co -P -d workspace -D 
 Monday, October 1, 2012 8:16:19 PM UTC \orc-portal
 ssh: connect to host 204.93.211.119 port 22: Connection refused
 cvs [checkout aborted]: end of file from server (consult above messages if 
 any)
 FATAL: CVS failed. exit code=1Finished 
 http://stacktrace.jenkins-ci.org/search?query=Finished: FAILURE




Re: [infra-outage] wiki.jenkins-ci.org and issues.jenkins-ci.org are down

2012-10-02 Thread Arnaud Héritier
The server hosting these services is down
Sadly we don't yet succeed to contact OSUOSL (not yet up in USA) and it
seems that we are not the only one to have an outage.

Arnaud



On Tue, Oct 2, 2012 at 3:03 PM, Gábor Garami gabor.gar...@hron.me wrote:

 What happened?

 Garami Gábor
 E-mail: gabor.gar...@hron.me
 Tel: +36 20 235 9621
 MSN: h...@vipmail.hu
 Skype: hron84


 On Tue, Oct 2, 2012 at 12:11 PM, Arnaud Héritier aherit...@gmail.com
 wrote:
  Hi all,
 
We are sorry but wiki.jenkins-ci.org and issues.jenkins-ci.org are
 down
  and we have for now no visibility about an ETA for them.
 
  Cheers,
 
  -
  Arnaud Héritier
  http://aheritier.net
  Mail/GTalk: aherit...@gmail.com
  Twitter/Skype : aheritier
 




-- 
-
Arnaud Héritier
06-89-76-64-24
http://aheritier.net
Mail/GTalk: aherit...@gmail.com
Twitter/Skype : aheritier


LDAP authentication: ConnectException shows partial URL

2012-10-02 Thread marc magrans de abril
Hi,

I am trying to authenticate Jenkins users using our corporate LDAP server
(SSL connection) at ldaps://cerndc.cern.ch:636. However, when I try to login
as marc I get a javax.naming.CommunicationException: cern.ch:636 .

Is it normal that the the address appearing in the excepiton does not
include the cerndc prefix? I have tried to use the IP directly but I still
get the same error message referring to cern.ch:636.

Do you know what am I doing wrong?

My LDAP configuration parameters:
* Server: ldaps://cerndc.cern.ch:636
* root DN: DC=cern,DC=ch
* User search base: empty
* User search filter: empty
* Group search base: empty
* Manager DN: cn=marc,ou=users,ou=Organic Units,DC=cern,DC=ch
* Manager Password: password

And here the full exception trace:

Oct 2, 2012 3:25:37 PM hudson.security.AuthenticationProcessingFilter2 
 onUnsuccessfulAuthentication
 INFO: Login attempt failed
 org.acegisecurity.AuthenticationServiceException: LdapCallback;null; 
 nested exception is javax.naming.PartialResultException [Root exception is 
 javax.naming.CommunicationException: cern.ch:636 [Root exception is 
 java.net.ConnectException: Connection refused]]; nested exception is 
 org.acegisecurity.ldap.LdapDataAccessException: LdapCallback;null; nested 
 exception is javax.naming.PartialResultException [Root exception is 
 javax.naming.CommunicationException: cern.ch:636 [Root exception is 
 java.net.ConnectException: Connection refused]]
 at 
 org.acegisecurity.providers.ldap.LdapAuthenticationProvider.retrieveUser(LdapAuthenticationProvider.java:238)
 at 
 org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:119)
 at 
 org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:195)
 at 
 org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:45)
 at 
 org.acegisecurity.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:71)
 at 
 org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:252)
 at 
 hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
 at 
 org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
 at 
 hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
 at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:63)
 at 
 hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
 at 
 org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
 at 
 hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
 at 
 hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
 at 
 hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
 at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
 at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
 at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
 at 
 org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)
 at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
 at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
 at 
 hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
 at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
 at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
 at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
 at 
 winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:215)
 at winstone.RequestHandlerThread.run(RequestHandlerThread.java:138)
 at 
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
 at java.util.concurrent.FutureTask.run(FutureTask.java:166)
 at 
 winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
 at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:679)
 Caused by: org.acegisecurity.ldap.LdapDataAccessException: 
 LdapCallback;null; nested exception is javax.naming.PartialResultException 
 [Root exception is javax.naming.CommunicationException: cern.ch:636 [Root 
 exception is java.net.ConnectException: Connection refused]]
 at 
 org.acegisecurity.ldap.LdapTemplate$LdapExceptionTranslator.translate(LdapTemplate.java:295)
 at org.acegisecurity.ldap.LdapTemplate.execute(LdapTemplate.java:128)
 at 
 

Re: [infra-outage] wiki.jenkins-ci.org and issues.jenkins-ci.org are down

2012-10-02 Thread Arnaud Héritier
Services are back.
Sorry for the annoyance

Arnaud

On Tue, Oct 2, 2012 at 12:11 PM, Arnaud Héritier aherit...@gmail.comwrote:

 Hi all,

   We are sorry but wiki.jenkins-ci.org and issues.jenkins-ci.org are down
 and we have for now no visibility about an ETA for them.

 Cheers,

 -
 Arnaud Héritier
 http://aheritier.net
 Mail/GTalk: aherit...@gmail.com
 Twitter/Skype : aheritier



Re: Approach to build a cluster of Jenkins CI servers hands-off and tie them together?

2012-10-02 Thread Les Mikesell
On Mon, Oct 1, 2012 at 10:27 PM, zperry zack.pe...@sbcglobal.net wrote:

 Reviewed the above, and saw this  When your Jenkins is secured, you can use
 HTTP BASIC authentication to authenticate remote API requests. See
 Authenticating scripted clients for more details.

 IMHO this is a piece of ill-advice.  With our POC setup, and many other
 nodes running HTTP services, we simply use ssh forwarding for access using
 the localhost of the machine we are on.  That is, most of our HTTP services
 are configured to offer HTTP services to their respective localhost only.
 This should be a common practice everywhere IMHO.

I don't really see how that practice relates to a web service intended
for both remote and local use from multiple users. The remote api does
the same things as the regular http interface.It could work, of
course, but it's not what people expect from a network service.   If
you are going to only run commands locally from the jenkins master you
might as well use the cli or groovy instead of the remote api.

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


.m2 repository on slave1 not visible when building with slave2?

2012-10-02 Thread jserup
We have a bunch of gradle jobs that are build with the maven plugin meaning
that the build artifacts gets deployed to the local .m2 repo. On Jenkins we
have added 4 slaves each with its own .m2 repo.

We have two projects A and B where B depends on A. If A gets build on slave2
and B gets build on slave1 B fails since it cannot see A in its local .m2
repo (we are still in the process of setting up deployment to a repository
manager but need our builds to work until then).

Is it possible for build jobs to consider/read across .m2 repos on all
slaves but only deploy to its own .m2?

Alternatively setting up a global .m2 for all slaves to use. Should be
rather trivial but to my understanding also more risky - concurrent access
issues?



--
View this message in context: 
http://jenkins.361315.n4.nabble.com/m2-repository-on-slave1-not-visible-when-building-with-slave2-tp4642005.html
Sent from the Jenkins users mailing list archive at Nabble.com.


Server config is getting messed up!!

2012-10-02 Thread Jeff
I was running Jenkins 1.483 for some number of days without issue and have
been upgrading with nearly each new version since v1.456.

This morning we had build failures due to Maven configuration missing.  So
I tried re-adding the maven configs but they keep disappearing.  I saw the
1.484 update had some issues fixed so I upgraded but still have the same
issue.

I also noticed that my JDK, ANT, Maven and GIT configs are gone.  What the
heck?

-- 
Jeff Vincent
predato...@gmail.com
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent
I ♥ DropBox http://db.tt/9O6LfBX !!


Re: Server config is getting messed up!!

2012-10-02 Thread Larry Shatzer, Jr.
See https://issues.jenkins-ci.org/browse/JENKINS-15293
*
*
You will want to downgrade to version 1.482 until this fix is released.

On Tue, Oct 2, 2012 at 9:55 AM, Jeff predato...@gmail.com wrote:

 I was running Jenkins 1.483 for some number of days without issue and have
 been upgrading with nearly each new version since v1.456.

 This morning we had build failures due to Maven configuration missing.  So
 I tried re-adding the maven configs but they keep disappearing.  I saw the
 1.484 update had some issues fixed so I upgraded but still have the same
 issue.

 I also noticed that my JDK, ANT, Maven and GIT configs are gone.  What the
 heck?

 --
 Jeff Vincent
 predato...@gmail.com
 See my LinkedIn profile at:
 http://www.linkedin.com/in/rjeffreyvincent
 I ♥ DropBox http://db.tt/9O6LfBX !!




Re: I'm starting. configuring CVS.

2012-10-02 Thread Oscar Martins
*Yes the error was quite explicit.*
*But now to do the build appears this error:*

Building in workspace /home/orcproje/.hudson/jobs/orc-portal/workspace
[orc-portal] $ cvs -Q -z3 -d :ext:u...@hostproject.com:/home/user/cvs/CVSROOT 
co -P -d workspace -D Tuesday, October 2, 2012 3:55:24 PM UTC /orc-portal
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,gssapi-with-mic,password).
cvs [checkout aborted]: end of file from server (consult above messages if any)
FATAL: CVS failed. exit code=1Finished 
http://stacktrace.jenkins-ci.org/search?query=Finished: FAILURE


Terça-feira, 2 de Outubro de 2012 14:08:13 UTC+1, Gábor Garami escreveu:

 This is fairly detailed error message: connection is refused.

 Did you tried do cvs checkout directly on the Jenkins server? It is 
 allowed to connect to 204.93.211.119 via SSH?

 Regards,
  
 Garami Gábor
 E-mail: gabor@hron.me javascript:
 Tel: +36 20 235 9621
 MSN: hr...@vipmail.hu javascript:
 Skype: hron84



 On Mon, Oct 1, 2012 at 10:22 PM, Oscar Martins 
 oscarraf...@gmail.comjavascript:
  wrote:

 this my configuration:


 Source Code Management

  CVS 

 CVSROOT[image: Help for feature: CVSROOT] 
 http://orc-project.com/jenkins/job/orc-portal/configure#


  Module(s)

 [image: Help for feature: Module(s)] 
 http://orc-project.com/jenkins/job/orc-portal/configure#

  Branch

 This is a tag, not a branch
 [image: Help for feature: Branch] 
 http://orc-project.com/jenkins/job/orc-portal/configure#

 This error console:


 Building in workspace /home/orcproje/.hudson/jobs/orc-portal/workspace
 [orc-portal] $ cvs -Q -z3 -d 
 :ext:orcproje@204.93.211.119:/home/orcproje/cvs-orc co -P -d workspace -D 
 Monday, October 1, 2012 8:16:19 PM UTC \orc-portal
 ssh: connect to host 204.93.211.119 port 22: Connection refused
 cvs [checkout aborted]: end of file from server (consult above messages if 
 any)
 FATAL: CVS failed. exit code=1Finished 
 http://stacktrace.jenkins-ci.org/search?query=Finished: FAILURE




Re: I'm starting. configuring CVS.

2012-10-02 Thread Andrew Melo
On Tue, Oct 2, 2012 at 11:06 AM, Oscar Martins
oscarrafaelcam...@gmail.comwrote:

 *Yes the error was quite explicit.*
 *But now to do the build appears this error:*

 Building in workspace /home/orcproje/.hudson/jobs/orc-portal/workspace
 [orc-portal] $ cvs -Q -z3 -d :ext:u...@hostproject.com:/home/user/cvs/CVSROOT 
 co -P -d workspace -D Tuesday, October 2, 2012 3:55:24 PM UTC /orc-portal
 Permission denied, please try again.
 Permission denied, please try again.
 Permission denied (publickey,gssapi-with-mic,password).
 cvs [checkout aborted]: end of file from server (consult above messages if 
 any)
 FATAL: CVS failed. exit code=1Finished 
 http://stacktrace.jenkins-ci.org/search?query=Finished: FAILURE

 It looks like whatever account your jenkins slave runs at doesn't have
permission to connect to u...@hostproject.com

-Andrew



 Terça-feira, 2 de Outubro de 2012 14:08:13 UTC+1, Gábor Garami escreveu:

 This is fairly detailed error message: connection is refused.

 Did you tried do cvs checkout directly on the Jenkins server? It is
 allowed to connect to 204.93.211.119 via SSH?

 Regards,

 Garami Gábor
 E-mail: gabor@hron.me

 Tel: +36 20 235 9621
 MSN: hr...@vipmail.hu
 Skype: hron84




 On Mon, Oct 1, 2012 at 10:22 PM, Oscar Martins oscarraf...@gmail.comwrote:

 this my configuration:


 Source Code Management

  CVS

 CVSROOT[image: Help for feature: CVSROOT] 
 http://orc-project.com/jenkins/job/orc-portal/configure#


  Module(s)

 [image: Help for feature: Module(s)] 
 http://orc-project.com/jenkins/job/orc-portal/configure#

  Branch

 This is a tag, not a branch
 [image: Help for feature: Branch] 
 http://orc-project.com/jenkins/job/orc-portal/configure#

 This error console:


 Building in workspace /home/orcproje/.hudson/jobs/**orc-portal/workspace
 [orc-portal] $ cvs -Q -z3 -d 
 :ext:orcproje@204.93.211.119:/**home/orcproje/cvs-orc co -P -d workspace -D 
 Monday, October 1, 2012 8:16:19 PM UTC \orc-portal
 ssh: connect to host 204.93.211.119 port 22: Connection refused
 cvs [checkout aborted]: end of file from server (consult above messages if 
 any)
 FATAL: CVS failed. exit code=1Finished 
 http://stacktrace.jenkins-ci.org/search?query=Finished: FAILURE





-- 
--
Andrew Melo


Re: Approach to build a cluster of Jenkins CI servers hands-off and tie them together?

2012-10-02 Thread zperry
Hi Les,

[...]

 I don't really see how that practice relates to a web service intended 
 for both remote and local use from multiple users. The remote api does 
 the same things as the regular http interface.It could work, of 
 course, but it's not what people expect from a network service.   If 
 you are going to only run commands locally from the jenkins master you 
 might as well use the cli or groovy instead of the remote api. 


Lets say the master CI provides Web access (UI and RESTful) only to the 
localhost of the node.  At the first look, this is extremely inconvenient. 
But, in almost all cases, the node runs sshd anyways, thus it can be 
accessed via ssh.

With ssh, you can use port forwarding *ssh -L 
local_port:remote_ip:remote_port remote_hostname* to forward a desired 
local port, e.g. 8080 to the localhost of the master.  

Then, on any machine that can connect to the master node via ssh, either 
single hop, or via jump host (aka multiple hops, possibly through a 
firewall from another network), you can just use a browser or issue 
requests to the localhost:8080 of the node* you are physically using*.

No more insecure Basic Authentication to worry.  If you have setup PKI, the 
access is transparent and secure.


 -- 
   Les Mikesell 
  lesmi...@gmail.com javascript: 


Regards,

-- Zack 


Re: Approach to build a cluster of Jenkins CI servers hands-off and tie them together?

2012-10-02 Thread zperry
Hi Les,

Finally, the first sentence in *Distributed 
builds*https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds 
wiki and the list from Kohsuke 
Kawaguchihttps://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds#Distributedbuilds-Example%3AConfigurationonUnixstarted
 making sense to me.  Thank you once more for sharing your 
experience.

Regarding the list (*shown below, and somewhat shortened and edited by me, 
e.g. s#/var/jenkins#/var/lib/jenkins#*), could you please comment on 

   - #1 (the bold faced part). Is it really necessary?  For example, the 
   uid/gid usage in Fedora differ quite much from that of Ubuntu.  I doubt 
   even NIS would make it simpler.  My approach is to review the /etc/passwdand 
   /etc/group of all target platforms, pick a pair of uid/gid that are not 
   used by all, and assign the pair for Jenkins' use (on both the master and 
   slaves).  The packages provided on Jenkins pkg site (e.g 
   http://pkg.jenkins-ci.org/redhat/) don't make this task transparent, so the 
   above step seems to be necessary.
   - #7.  Do you think it's a nearly optimal way to do as part of setting 
   up a slave?
   - #8. IMHO this is optional. What would you recommend?


   1. Each computer has an user called jenkins and a group called jenkins. *All 
   computers use the same UID and GID*. (If you have access to NIS, this 
   can be done more easily.) This is not a Jenkins requirement, but it 
   makes the slave management easier. 
   2. On each computer, /var/lib/jenkins directory is set as the home 
   directory of user jenkins. Again, this is not a hard requirement, but 
   having the same directory layout makes things easier to maintain. 
   3. All machines run sshd. Windows slaves run cygwin sshd. 
   4. All machines have ntpdate client installed, and synchronize clock 
   regularly with the same NTP server. 
   5. Master's /var/lib/jenkins have all the build tools beneath it. 
   6. Master's /var/lib/jenkins/.ssh has private/public key and 
   authorized_keys so that a master can execute programs on slaves through 
   ssh, by using public key authentication. 
   7. *On master, I have a little shell script that uses rsync to 
   synchronize master's /var/lib/jenkins to slaves (except 
   /var/lib/jenkins/workspace) I use this to replicate tools on all slaves. 
   *
   8. (*optional*) /var/lib/jenkins/bin/launch-slave is a shell script that 
   Jenkins uses to execute jobs remotely. 
   9. Finally all computers have other standard build tools like svn and 
cvsinstalled and available in 
   PATH. 

Regards,

-- Zack


Re: .m2 repository on slave1 not visible when building with slave2?

2012-10-02 Thread Baptiste MATHUS
Hi,

Don't know Gradle well at all, but I'm even surprised it can be used with
the Jenkins maven plugin...

Anyway, in the Maven world, what you ask is not recommended (even the
contrary).

The normal practice would be to push (deploy in maven terms) your
artifacts onto a central and local repository manager for your company (say
archiva, artifactory, nexus...). Using the artifacts in the .m2 directory
should never be done, it was not designed to be accessed concurrently
(though I remind I'm speaking about Maven. So as you say you're using
Gradle, it migh actually not be an issue in your very case).

Cheers

2012/10/2 jserup johs.se...@gmail.com

 We have a bunch of gradle jobs that are build with the maven plugin meaning
 that the build artifacts gets deployed to the local .m2 repo. On Jenkins we
 have added 4 slaves each with its own .m2 repo.

 We have two projects A and B where B depends on A. If A gets build on
 slave2
 and B gets build on slave1 B fails since it cannot see A in its local .m2
 repo (we are still in the process of setting up deployment to a repository
 manager but need our builds to work until then).

 Is it possible for build jobs to consider/read across .m2 repos on all
 slaves but only deploy to its own .m2?

 Alternatively setting up a global .m2 for all slaves to use. Should be
 rather trivial but to my understanding also more risky - concurrent access
 issues?



 --
 View this message in context:
 http://jenkins.361315.n4.nabble.com/m2-repository-on-slave1-not-visible-when-building-with-slave2-tp4642005.html
 Sent from the Jenkins users mailing list archive at Nabble.com.

 --
 Baptiste Batmat MATHUS - http://batmat.net
 Sauvez un arbre,
 Mangez un castor !
 nbsp;!



Re: Binding several jenkins users together

2012-10-02 Thread Bue Petersen
Hi

Thanks Nicolas - I will install that plugin right away.
Strange I didn't find it, searched a lot for, what I supposed to be
relevant words and phrases.
... I must certainly upgrade my google-fu.

Thanks :-)

On Mon, Oct 1, 2012 at 12:40 AM, nicolas de loof
nicolas.del...@gmail.com wrote:
 See additional identities plugin, that addresse this exact use case

 Le 30 sept. 2012 14:23, Brad Knowles b...@shub-internet.org a écrit :

 On Sep 30, 2012, at 5:37 AM, Bue Petersen b...@praqma.net wrote:

  Are we missing something here? Can users be bundled together somehow.
 
  If we use the git-repo user instead, the same problem arises when
  using other repositories, so I really need a away to fix this.

 We're in the same boat.  I have not yet found any plugins to manage this
 sort of thing.  We figured that we would have to write our own user
 equivalence plugin to handle the problem.

 However, if someone else out there has already done this work, we would
 gladly avoid writing our own.

 --
 Brad Knowles b...@shub-internet.org
 LinkedIn Profile: http://tinyurl.com/y8kpxu





-- 
Med venlig hilsen
Bue Petersen
Praqma A/S
Mobile: +45 29 72 64 12


ConnectException error does not show complete url (re-post)

2012-10-02 Thread marc
Hi LDAP users,

I am trying to authenticate Jenkins users using our corporate LDAP server
(SSL connection) at ldaps://cerndc.cern.ch:636. However, when I try to login
as marc I get a javax.naming.CommunicationException: cern.ch:636 .

Is it normal that the the address appearing in the excepiton does not
include the cerndc prefix? I have tried to use the IP directly but I still
get the same error message referring to cern.ch:636.

Do you know what am I doing wrong?

Below the screenshot with the LDAP configuration.
http://jenkins.361315.n4.nabble.com/file/n4641987/Screen_Shot_2012-10-02_at_10.51.03_AM.png
 

And here the full exception trace:


Thanks,
marc





--
View this message in context: 
http://jenkins.361315.n4.nabble.com/ConnectException-error-does-not-show-complete-url-re-post-tp4641987.html
Sent from the Jenkins users mailing list archive at Nabble.com.


Re: Jenkins - How to block build streams?

2012-10-02 Thread michael.gui...@gmail.com
Hi,

Just wondering if you resolved this as I am trying to do something very
similar.

Cheers,
Mike



--
View this message in context: 
http://jenkins.361315.n4.nabble.com/Jenkins-How-to-block-build-streams-tp4637458p4641992.html
Sent from the Jenkins users mailing list archive at Nabble.com.


Re: Jenkins - How to block build streams?

2012-10-02 Thread Larry Shatzer, Jr.
Check out
https://wiki.jenkins-ci.org/display/JENKINS/Dependency+Queue+Plugin which
will block things in the queue until all upstream jobs have been completed.

On Tue, Oct 2, 2012 at 5:19 AM, michael.gui...@gmail.com 
michael.gui...@gmail.com wrote:

 Hi,

 Just wondering if you resolved this as I am trying to do something very
 similar.

 Cheers,
 Mike



 --
 View this message in context:
 http://jenkins.361315.n4.nabble.com/Jenkins-How-to-block-build-streams-tp4637458p4641992.html
 Sent from the Jenkins users mailing list archive at Nabble.com.



Need to issue notifications after n number of failed builds

2012-10-02 Thread Will K
I am using Jenkins to automate selenium testing. I need to have a way to 
send email notifications after 5 failed build attempts. I have installed 
the groovy post build plugin but, I don't know how to identify failed 
attempts, record failed attempts, or notify after n number of failed 
attempts. Please help.

Re: Need to issue notifications after n number of failed builds

2012-10-02 Thread Slide
You could do this with email-ext and a pre-send script. If you set it up
such that the email is only sent if the last 5 builds were failures (you
can get the current build number and then back track and look at
the preceding builds). Then you could cancel sending the email if there
were less than 5 failed builds. The other way to do it would be to just
have a separate job that is kicked off after that one that does something
similar. You'll want to look at the AbstractBuild java docs to see what is
available in the API.

slide

On Tue, Oct 2, 2012 at 1:38 PM, Will K will0...@gmail.com wrote:

 I am using Jenkins to automate selenium testing. I need to have a way to
 send email notifications after 5 failed build attempts. I have installed
 the groovy post build plugin but, I don't know how to identify failed
 attempts, record failed attempts, or notify after n number of failed
 attempts. Please help.




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


Bug: Windows Slave and constructed path.

2012-10-02 Thread Steven Cole
Hey there...

Our Jenkins setup has a Linux master node and a Windows slave node (so that 
we can build for both platforms). The Windows slave node is new.

When I configure a windows build to run a batch file, and call the MS 
Visual Studio vcvarsall batch file to set up compiler paths and options 
prior to running msbuild, I was getting the following error:

\Java\jre7\bin was unexpected at this time.


It took some digging, but it turns out that the problem is that somehow 
when a batch file is run on a windows slave, the path to Java binaries is 
added to the PATH variable at the start, and if that path to Java binaries 
happens to have embedded blanks, the bit which is added is enclosed within 
quotation marks.

For windows, however, this is bad. Extra quotes don't get stripped out.

When the vcvarsall batch file was run afterwards, those extra quotation 
marks made the set command extremely confused. The PATH variable itself 
doesn't actually need quotes.

The workaround is to reset the PATH by hand before calling the vcvarsall 
batch file, which fixes things just fine but is exceedingly annoying. 

Is this the right forum for reporting trouble?

Thanks...
--Steven Cole


Re: Bug: Windows Slave and constructed path.

2012-10-02 Thread Steven Cole
Ah! Just found the issues DB, and this one is JENKINS-11992.

On Tuesday, October 2, 2012 2:11:12 PM UTC-7, Steven Cole wrote:

 Hey there...

 Our Jenkins setup has a Linux master node and a Windows slave node (so 
 that we can build for both platforms). The Windows slave node is new.

 When I configure a windows build to run a batch file, and call the MS 
 Visual Studio vcvarsall batch file to set up compiler paths and options 
 prior to running msbuild, I was getting the following error:

 \Java\jre7\bin was unexpected at this time.


 It took some digging, but it turns out that the problem is that somehow 
 when a batch file is run on a windows slave, the path to Java binaries is 
 added to the PATH variable at the start, and if that path to Java binaries 
 happens to have embedded blanks, the bit which is added is enclosed within 
 quotation marks.

 For windows, however, this is bad. Extra quotes don't get stripped out.

 When the vcvarsall batch file was run afterwards, those extra quotation 
 marks made the set command extremely confused. The PATH variable itself 
 doesn't actually need quotes.

 The workaround is to reset the PATH by hand before calling the vcvarsall 
 batch file, which fixes things just fine but is exceedingly annoying. 

 Is this the right forum for reporting trouble?

 Thanks...
 --Steven Cole



Re: getting JUnit failures to *not* mark build as unstable

2012-10-02 Thread Yuval Shavit
After some fumbling around, I found what was actually an incredibly simple
solution. No groovy or anything. I thought I'd reply to myself, in case
some future googler happens across this thread.

- kickoff job is a freestyle job with just one build action,
a Trigger/call builds on other projects for the main job with the
appropriate mark this build as failing/unstable if... options, as well as
blocking until the callee is finished.
- main job is just its plain self

That's all there is to it. There's a slight bug, in that the kickoff job
reports that it has a downstream build but doesn't know its number; the
downstream build does know the upstream build's number. In other words, the
kickoff job doesn't know which mian build it triggered, but the main builds
do know what kickoff jobs they came from. But that's not a huge deal for me.

On Mon, Oct 1, 2012 at 4:44 PM, Yuval Shavit ysha...@akiban.com wrote:

 On Mon, Oct 1, 2012 at 3:15 PM, Baptiste MATHUS bmat...@batmat.netwrote:

 I won't comment much on the smell of having tests that you wanna ignore
 even in CI...


 It's not extremely pretty, but to clarify, these tests are all passing and
 not-ignored in the mainline code. It's just with this new, unfinished
 switch that we need some of them temporarily disabled. This is a separate
 job -- the one that gates production changes requires all these tests to
 pass (which is indeed why we're not just marking them with @Ignore).

 Even though, what you explain seems quite complicated just to ignore tests
 failures.
 Did you consider just using Maven Surefire testFailureIgnore parameter?
 http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#testFailureIgnore


 That doesn't seem to work. The mvn stdout reports success, but the job is
 still marked as unstable.

 Yuval


 2012/10/1 Yuval Shavit ysha...@akiban.com

 Hi all. I have a job with a maven run in which I expect test failures,
 and I want the job to *not* be marked as UNSTABLE if there are
 failures; I'll be doing some custom analysis in script tasks after the
 maven task in which I'll determine the build's status. In other words, what
 I'd like is:

 1) mvn test ...
 2) reset build.result to SUCCESS
 3) custom script, which may mark status as FAILING

 I tried putting a groovy system script at step (2) which sets
 build.result to Result.SUCCESS, but I wasn't able to get that to work. The
 script runs correctly (I had it put a badge on the job as a test), but the
 status stays as UNSTABLE is there are any unit test failures. I also tried
 using reflection to set the Run.result field directly, to no avail.

 My current approach is to have two jobs. The kickoff job has a groovy
 script which invokes the main job, which does the actual testing. Once
 that main job is done, the groovy script marks the kickoff job as failing
 if the main one failed, and as passing if the main job succeeded or was
 unstable. This works, but it's clumsy and not easy to drill down to the
 actual failures from the kickoff job.

 Btw, I realize that JUnit tests can expect errors, but that's not what I
 want. The project I'm working on is testing an experimental switch which is
 not done and thus causes a lot of tests to fail; I basically want to ensure
 that there are no regressions among those tests which we know have passed
 in the past, while allowing tests to fail if they always have. I'm open to
 suggestions besides my approach above, but I'd like to avoid completely
 rewiring our tests for this.

 Thanks!
 Yuval




 --
 Baptiste Batmat MATHUS - http://batmat.net
 Sauvez un arbre,
 Mangez un castor !





multiple problems setting up Jenkins and Git and Maven, as well as code analysis tools - start with git...

2012-10-02 Thread Rob Withers
First off is Git setup, I suppose.  I want to fire a Jenkins job whenever 
my LOCAL repository is committed, not waiting until it gets pushed to 
github.  It seems like Jenkins is setup to slave of fgithub.  How can I 
make that work right?  I am lost in all the various plugins for git and 
github.

Many thanks,
Rob




Re: Binding several jenkins users together

2012-10-02 Thread Brad Knowles
On Oct 2, 2012, at 2:42 AM, Bue Petersen b...@praqma.net wrote:

 Thanks Nicolas - I will install that plugin right away.
 Strange I didn't find it, searched a lot for, what I supposed to be
 relevant words and phrases.
 ... I must certainly upgrade my google-fu.

Here's the reason we didn't find it -- the additional-identities-plugin is 
not found on the main wiki page for plugins at 
https://wiki.jenkins-ci.org/display/JENKINS/Plugins, and according to the 
page for this particular plugin at 
https://wiki.jenkins-ci.org/display/JENKINS/Additional+Identities+Plugin, 
version 1.0 was released on Sep 27, 2012, which was just a few days ago.

You can't find what wasn't there when you were looking, or what was only added 
within the last couple of days, and the search engines haven't had time to 
update their indexes.

--
Brad Knowles b...@shub-internet.org
LinkedIn Profile: http://tinyurl.com/y8kpxu

The Flexible Publish Plugin does not show on the job configuration

2012-10-02 Thread samt88


I have a jenkins multi-configuration build job and I would like to be able 
to conditionally execute the jenkins built in Publish JUnit test result 
report post build step. I have followed the following steps but when I go 
back to the configuration page of the build job, I do not see any 
checkboxes or icons related to the Flexible Publish Plugin. There are no 
indications of any errors in the Jenkins log. Does anyone have any 
experience with this plugin and why it would not work?

1) Installed the Flexible Publish Plugin and made sure that it is 
activated.

2) Ran the following command on the Jenkins console as suggested by the 
plugin web page to add the Publish JUnit test result report post  build 
step for flexible configuration.

import static org.jenkins_ci.plugins.flexible_publish.JobUpdater.*
def job = hudson.model.Hudson.instance.getItem('Teamname-Build')
movePublisher job, 'Publish JUnit test result report'

3) The following lines are inserted in the config.xml file for the 
Teamname-Build job but when I go back to the configuration page of the job 
I do not see any icons or checkboxes for the Flexible Publish Plugin.

org.jenkins_*ci.plugins.flexible*_publish.FlexiblePublisher
publishers/
/org.jenkins_*ci.plugins.flexible*_publish.FlexiblePublisher



Re: Server config is getting messed up!!

2012-10-02 Thread Deeps


Hi,
I had a similar problem with ANT, JDK, MSBuild installation configs (all of 
which were already installed and i had added the proper paths to each) when 
i upgraded Jenkins. *I was also experimenting with the files so even the 
uninstall and install had stopped working and the Jenkins service stopped 
altogether.*

I followed the the steps mentioned below and it resolved the problem for me:
*1. Uninstall Jenkins*
*2. Restart system*
*3. Delete the Jenkins Installation directory*
*4. Manually remove the registry keys using 'regedit'*
*5. Restart system*
*6. Install Jenkins*
From then on i haven't had problems with updates and configs.

*I've never used Maven and do not know if this is a separate issue.*
Regards

On Tuesday, 2 October 2012 21:26:20 UTC+5:30, Jeff Vincent wrote:

 I was running Jenkins 1.483 for some number of days without issue and have 
 been upgrading with nearly each new version since v1.456.  

 This morning we had build failures due to Maven configuration missing.  So 
 I tried re-adding the maven configs but they keep disappearing.  I saw the 
 1.484 update had some issues fixed so I upgraded but still have the same 
 issue.

 I also noticed that my JDK, ANT, Maven and GIT configs are gone.  What the 
 heck?  

 -- 
 Jeff Vincent
 preda...@gmail.com javascript:
 See my LinkedIn profile at:
 http://www.linkedin.com/in/rjeffreyvincent
 I ♥ DropBox http://db.tt/9O6LfBX !!