Re: Slave permissions and limiting which jobs a given slave will execute

2014-11-21 Thread Daniel Beck

On 21.11.2014, at 23:57, Jeff Thornsen  wrote:

> I also haven't looked into the Enterprise (paid) plugins from CloudBees to 
> see if they offer something that could do this for us.

Cloudbees Folders Plus does exactly that.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5F6185E5-54CE-4432-917A-F69FE935A0A3%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Slave permissions and limiting which jobs a given slave will execute

2014-11-21 Thread Jeff Thornsen
Hello all,

I tried to search for answers to this, but didn't come up with anything 
obvious.

We have a shared Jenkins instance which is used by multiple teams.

Using the CloudBees Folder plugin (the Free version), I created folders in 
Jenkins for both TeamA and TeamB, and set up appropriate permissions
* Only members of GroupA can see TeamA Folder and the jobs within
* Only members of GroupB can see TeamB Folder and the jobs within

I also have 2 slaves, SlaveA and SlaveB


Is there an easy way for me to configure SlaveA to only run jobs configured 
under the TeamA folder?
Ideally, SlaveA would also only be visible in the web GUI to members of 
GroupA.

I could not find any obvious mechanism for setting slave-level permissions 
to accomplish this.
I could come up with a custom solution involving slave labels, but this 
would require members of TeamA to specify that label in each of their jobs, 
which I would like to avoid.


I have not yet explored the Ownership Plugin or any of the other Role-Based 
Authorization plugins.

I also haven't looked into the Enterprise (paid) plugins from CloudBees to 
see if they offer something that could do this for us.


Thanks for any advice you can give!
-Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0211ecda-da57-44c4-bd92-e90651a6e57b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Build Flow Plugin Retry for Multi-Configuration Project

2014-11-21 Thread Andrew Zellman
Hi, I'm using a combination of the Build Flow Plugin, Matrix Project Plugin and 
Naginator Plugin. Specifically, I have some intermittent failures with my 
project, so I'd like to retry after failure (enter Naginator). The failures 
exist within a Multi-Configuration (Matrix) job, so I'd like to restart the 
failures, without starting the whole matrix over again.

Currently, when I try to implement this, the Naginator kicks in outside the 
scope of the Build Flow, so the flow status gets set to FAILURE even though the 
Naginator retries resulted in SUCCESS. Build Flow's retry functionality would 
re-run the entire matrix. Is there a way I can hold up the flow to wait and see 
what happens with the retried matrix jobs? Can I use guard-rescue for this?

Thanks,
Andrew

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/D094DF71.4AB35%25zellman%40adobe.com.
For more options, visit https://groups.google.com/d/optout.


Suggestions for a jenkins lab with a VSphere cloud?

2014-11-21 Thread Frederik Deweerdt
Hi,

I'm using jenkins with the VSphere cloud plugin to instantiate slaves. I 
want to setup a lab environment so that I'm able to test upgrades. The 
plugin is configured to use a snapshot and revert to it every 10 builds. Do 
you guys have any suggestion on how to setup the lab so that it doesn't 
interfere with the prod cloud?

Thanks,
Frederik

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/104edc6f-9cbc-4b59-9b18-3635b344c6f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins Only Likes To Use My VPN's Network Connection

2014-11-21 Thread notantspants
After starting Jenkins from the command line, if I'm not connected to my 
VPN, but my network is up and running, I get the following network error 
where Jenkins is searcing a DNS.

It can only stop when I connect to my VPN and restart Jenkins.

I've looked in ~/.jenkins but haven't been able to find anything obvious.

Any pointers would be great, thank you.

Nov 21, 2014 3:34:32 PM javax.jmdns.impl.constants.DNSRecordClass 
classForIndex
WARNING: Could not find record class for index: -1
Nov 21, 2014 3:34:32 PM javax.jmdns.impl.DNSIncoming readAnswer
SEVERE: Could not find record class. domain:  type: TYPE_IGNORE index 0
dns[response,192.168.1.104:5353, length=266, id=0x0, flags=0x8400:r:aa, 
answers=2
answers:
[Pointer@1576201089 type: TYPE_PTR index 12, class: CLASS_IN index 1, 
name: _jenkins._tcp.local. ttl: '3599/3600' alias: 
'jenkins._jenkins._tcp.local.']
[Service@2000917078 type: TYPE_SRV index 33, class: CLASS_IN index 
1-unique, name: jenkins._jenkins._tcp.local. ttl: '3599/3600' server: 
'-e-0-3-3-4-f-6-f-3-2-1-f-3-4-5-b-1-5-a-0-f-2-0-0-b-8-.-1-0-0-2-ip6-arpa +   
l*serverversion=1.590ϿϿ.:8080']]ath=/ slave-port=60411 
url=http.//antspants:8080/
answer:[Pointer@1576201089 type: TYPE_PTR index 12, class: 
CLASS_IN index 1, name: _jenkins._tcp.local. ttl: '3599/3600' alias: 
'jenkins._jenkins._tcp.local.']
answer:[Service@2000917078 type: TYPE_SRV index 33, class: 
CLASS_IN index 1-unique, name: jenkins._jenkins._tcp.local. ttl: 
'3599/3600' server: 
'-e-0-3-3-4-f-6-f-3-2-1-f-3-4-5-b-1-5-a-0-f-2-0-0-b-8-.-1-0-0-2-ip6-arversion=1.590ϿϿ.:8080']4c6c929265681d
 path=/ slave-port=60411 url=http.//antspants:8080/
   0: 8403 085f6a65 6e6b696e73045f74 
6370056c6f63616c  ._je nkins._t cp.local
  20: 0c00010e 1a076a656e6b 696e73c00cc02b00 
2180010e1000  jenk ins...+. !...
  40: 511f9048 352d652d302d332d 332d342d662d362d 
662d332d322d312d Q..H 5-e-0-3- 3-4-f-6- f-3-2-1-
  60: 662d332d342d352d 622d312d352d612d 302d662d322d302d 
302d622d382d302d f-3-4-5- b-1-5-a- 0-f-2-0- 0-b-8-0-
  80: 312d302d302d322d 6970362d61727061 c01ac02b00108001 
0e10006c2a73 1-0-0-2- ip6-arpa ...+ .l*s
  a0: 65727665722d6964 3d37393334306164 6638336637613633 
3832613463366339 erver-id =79340ad f83f7a63 82a4c6c9
  c0: 3239323635363831 6406706174683d2f 10736c6176652d70 
6f72743d36303431 29265681 d.path=/ .slave-p ort=6041
  e0: 311a75726c3d6874 74703a2f2f616e74 7370616e74733a38 
3038302f0d766572 1.url=ht tp://ant spants:8 080/.ver
 100: 73696f6e3d312e35 
3930   sion=1.5 90

Nov 21, 2014 3:34:32 PM javax.jmdns.impl.DNSIncoming$MessageInputStream 
readName
SEVERE: Extended label are not currently supported.
Nov 21, 2014 3:34:32 PM javax.jmdns.impl.DNSIncoming$MessageInputStream 
readName
SEVERE: bad domain name: possible circular name detected. Bad offset: 
0x at 0x85

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/428b3425-fac8-44c0-9a02-7aa16e14fc1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: A svn credentials question

2014-11-21 Thread David Aldrich
Thanks for your reply.

After trying lots of things, I moved the job from a Windows slave to a Linux 
slave and it worked fine ;-)

David

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/41302A7145AC054FA7A96CFD03835A0A0B8F92B9%40EX10MBX02.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


Handling variable job interdependence

2014-11-21 Thread Gary Weaver
What is the best way to handle variable job interdependence in Jenkins when 
working with multiple types of environments?

For example, suppose that we have one job that tests a Rails application 
and another job that kicks off Maven with a substantial number of dependent 
Maven builds to build Java, etc. artifacts and test them. Now we want to 
add another job that will call chef-client on a shared development server 
that should depends on both jobs having been successful and then run tests 
against that combined environment.

We'd like to limit the amount of time it takes to test and get the new 
stuff into the shared development server. The changes that are part of the 
first Rails job may not require a rebuild/redeploy of the job that calls 
Maven to rebuild/redeploy a number of snapshots to an artifact repository 
manager, and vice-versa. We could perhaps have the maven job look at the 
rails git repository for a version file and vice-versa and use that to 
trigger the build, but that doesn't setup a dependency to ensure that the 
dependent job to run chef-client on the shared development server would 
only occur after both jobs run successfully.

What way have you had the most luck with to handle a similar scenario? If 
possible, we'd like to continue having the Rails and Java/Maven jobs be 
separate so they can each report stats on tests, coverage, etc. and 
indicate a success or failure more quickly, so I don't think combining the 
jobs is the best option (but I could be wrong).

Thanks in advance for your advice,

Gary

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9bd9be06-e629-4a4e-bdf7-33cf44e2d96a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: A svn credentials question

2014-11-21 Thread Jan Seidel
Hi,

would be nice to know which dialog is popping up.
Try to run the command normal without fancy switches.
If you use a command line svn client try the command straight away from the 
CLI in a DOS box.
I assume it is asking you, if you want to add the server certificate.

If you want to run it automated, prepend a "| y" (pipe and y, without 
qoutes to your command) and run it once.

Take care

Am Donnerstag, 20. November 2014 17:32:38 UTC+1 schrieb David Aldrich:
>
>  Hi
>
>  
>
> In one of my Jenkins jobs, I want to run ‘svn ls’ against the repository 
> from which Jenkins has checked out its working copy.  My svn client is 
> compatible with Jenkins’ svn working copy format.  
>
>  
>
> I get Jenkins to check out the working copy and then run some svn commands 
> in the build steps.
>
>  
>
> If I run ‘svn status’ it works fine.  But with ‘svn ls’ I see:
>
>  
>
> C:\Jenkins\workspace\tagLog>svn ls --verbose --trust-server-cert  
>
> svn: E215004: Authentication failed and interactive prompting is disabled; 
> see the --force-interactive option
>
> svn: E215004: Unable to connect to a repository at URL 
>
> svn: E215004: No more credentials or we tried too many times.
>
> Authentication failed
>
>  
>
> Please can anyone suggest how to make this work?
>
>  
>
> Best regards
>
>  
>
> David
>
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ccba91b0-a910-4d47-b9ef-2c925f4460dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Send JUnit report to specific recipient

2014-11-21 Thread Elica Milanova
Hello,

I have configured JUnit test suite execution via maven surefire plugin 
which produces results on nightly bases. After each execution an email is 
sent to a certain DL where all the submitters are included. But I need to 
send a mail only to those submitters whose tests are failing. Let's say 
that person A has written TestA, person B has written TestB. If TestA 
fails, I know who is responsible for this and I want to send him a 
notification automatically and not to send such to person B as TestB is OK.

I saw the Jenkins Email-ext+plugin. The problem is that it expects a list 
with email addresses, which in my case each time is different. If I am able 
to store the emails after each execution in a file, I could i.e. pass it to 
a such plugin and it could send mails to the addresses from the file.

Do you know how can I do this magic? :) Maybe I can use the same plugin and 
put something extra in the templates?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ac2a2020-a971-428e-bfc9-25166101bbaa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins become unresponsive

2014-11-21 Thread Rupali
Hi,

We are still facing this issue.
Attached are is the list of threads that were running when we found this 
issue.
The blocked thread do not look to be blocking on 

sun.nio.ch.WindowsSelectorImpl.discardUrgentData()

as stated in the bug link here:
http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7130796 
Could you advise on what could be causing the issue?

Regards,
Rupali
On Wednesday, October 29, 2014 2:02:28 AM UTC+5:30, Cohen, Isaac S wrote:
>
> David - Thanks for the quick reply. How did you come to this conclusion? 
> Sorry, I am still new to thread dumps! 
>
> -Original Message- 
> From: jenkins...@googlegroups.com  [mailto:
> jenkins...@googlegroups.com ] On Behalf Of Daniel Beck 
> Sent: Tuesday, October 28, 2014 4:01 PM 
> To: jenkins...@googlegroups.com  
> Subject: Re: Jenkins become unresponsive 
>
> While the thread is not blocked, it still looks suspiciously like 
> http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7130796 
>
> On 28.10.2014, at 20:57, Isaac Cohen > 
> wrote: 
>
> > Attached is a thread dump taken when jenkins was unresponsive. I couldnt 
> find anything suspicious, but maybe I missed something? 
> > 
> > Thanks, 
> > Isaac 
> > 
> > On Wednesday, October 22, 2014 7:10:43 AM UTC-4, Rupali wrote: 
> > Hi James, 
> > 
> > Thanks for your reply. 
> > We are using Windows server. 
> > I will try jstack as you suggested and will post my findings. 
> > 
> > Thanks, 
> > Rupali 
> > 
> > On Tuesday, October 21, 2014 4:05:31 PM UTC+5:30, James Nord (jnord) 
> wrote: 
> > Are you on Linux and are you using the embedded container? 
> > 
> > If so have you upped the number of file descriptors available from 
> Jenkins – I have see in the past that is was not uncommon for the HTTP 
> receiving thread to die due to not being able to handle a connection 
> correctly. 
> > 
> >   
> > Otherwise – jstack will likely be your friend – will show any deadlocks 
> and show what threads are running. 
> > 
> >   
> > /james 
> > 
> >   
> > From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] 
> On Behalf Of Rupali Chorghe 
> > Sent: 21 October 2014 04:11 
> > To: jenkins...@googlegroups.com 
> > Subject: RE: Jenkins become unresponsive 
> > 
> >   
> > Hi Terrence, 
> > 
> > Thanks for reply. 
> > Problem we are facing is when Jenkins becomes unresponsive, everything 
> that needs Jenkins URL, becomes inaccessible. So we decided to use 
> Jconsole. But we didn't find abnormalities in CPU and memory usage when 
> monitored using jconsole. 
> > 
> > Regards, 
> > Rupali 
> > 
> > On 21-Oct-2014 2:49 am, "Dunnigan, Terrence J"  
> wrote: 
> > 
> > Are you using the Jenkins Monitoring plugin? 
> > 
> >   
> > https://wiki.jenkins-ci.org/display/JENKINS/Monitoring 
> > 
> >   
> > It might help to provide some context and additional information when 
> Jenkins is not responding. 
> > 
> >   
> > Terry 
> > 
> >   
> > From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] 
> On Behalf Of Rupali 
> > Sent: Monday, October 20, 2014 6:46 AM 
> > To: jenkins...@googlegroups.com 
> > Subject: Jenkins become unresponsive 
> > 
> >   
> > Hi, 
> > 
> > We are facing one weird issue. 
> > Intermittently, our Jenkins URL becomes inaccessible. Only restarting 
> Jenkins service resolves the issue. 
> > 
> > We are using Jenkins 1.565. We tried to analyses memory and CPU usage 
> when such state appears. But CPU usage looked very low around 2% and memory 
> usage by Jenkins Java process also was around 1.7 GB which is the case 
> usually. We have Master-Slave setup containing 8 slave machines of which 2 
> slaves have dedicated jobs to run. 
> > 
> > Can you advise on how to analyze this issue to find out the root cause 
> of Jenkins becoming inaccessible? 
> > 
> > Regards, 
> > Rupali 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "Jenkins Users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to jenkinsci-use...@googlegroups.com. 
> > For more options, visit https://groups.google.com/d/optout. 
> > 
> > -- 
> > You received this message because you are subscribed to a topic in the 
> Google Groups "Jenkins Users" group. 
> > To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/jenkinsci-users/FLJye7YDTr8/unsubscribe. 
>
> > To unsubscribe from this group and all its topics, send an email to 
> jenkinsci-use...@googlegroups.com. 
> > For more options, visit https://groups.google.com/d/optout. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "Jenkins Users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to jenkinsci-use...@googlegroups.com. 
> > For more options, visit https://groups.google.com/d/optout. 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "Jenkins Users" group. 
> > To unsubscribe from thi

Request for feedback: approving name usage "CloudBees Jenkins Enterprise"

2014-11-21 Thread Kohsuke Kawaguchi
There's a discussion going on as to whether the project should allow
CloudBees to use the name "CloudBees Jenkins Enterprise" at
https://groups.google.com/forum/#!topic/jenkinsci-dev/rzNetnrhPRI

So far the conversation didn't create anything close to a consensus, so we
are trying to solicit more opinion & feedbacks. A cross-list discussion is
tricky, so I kept the discussion to the dev list, but if you have any
opinions & feedbacks, please be encouraged to join the dev list and post to
that thread.

We are trying to bring it to the conclusion in the next Wednesday's project
meeting.

Thanks!
-- 
Kohsuke Kawaguchi

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAN4CQ4wWHo53G1%3D_xawB7Wo_NX3QWKDZf%2BpENt%2B6i4fvfCEvGA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


RE: A svn credentials question

2014-11-21 Thread David Aldrich
Hi Jan

The actual command I used was:

svn ls --verbose --non-interactive --trust-server-cert https:

David

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


Re: A svn credentials question

2014-11-21 Thread Jan Seidel
Remove the --force-interactive

That forces user input like username, then password no matter if you have 
stored the credentials or not

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


Re: job_dsl plugin configure block problem

2014-11-21 Thread Jan Nikolai Trzeszkowski
I just ran into the same issue and managed to solve this by following the 
steps describe here 
 in 
the section *Reusable Configure Blocks* (just at the very end of the page).
>
> Extracting this to a Closure ensures that the parameters get evaluated 
immediately.

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