Re: Using CLI with AD plugin

2013-10-15 Thread David Resnick
I've opened a bug for this problem.
https://issues.jenkins-ci.org/browse/JENKINS-20064

- David

On Monday, October 14, 2013 9:03:10 AM UTC+3, David Resnick wrote:
>
> I'm trying to use the Jenkins CLI for a server that is set up with AD as 
> the access control security realm. Logged in users can perform any action.
>
> The Jenkins server is 1.534 on Ubuntu with Active Directory plugin 1.33, 
> configured with just the domain (no bind DN or password).
>
> I've provisioned an SSH public key for my user. When I attempt to run CLI 
> against Jenkins it fails with this
>
> Exception in thread "main" java.io.EOFException
> at java.io.DataInputStream.readBoolean(DataInputStream.java:244)
> at hudson.cli.Connection.readBoolean(Connection.java:95)
> at hudson.cli.CLI.authenticate(CLI.java:644)
> at hudson.cli.CLI._main(CLI.java:474)
> at hudson.cli.CLI.main(CLI.java:384)
>
> and the below is logged on the server. This is similar to JENKINS-12619 
> though in my case the behavior is consistent and always fails.
>
> Does anyone have this working? It an admin domain user/password required 
> in this case?
>
> Is there any sort of workaround, such as defining a local user in Jenkins 
> which could be used when accessing via CLI?
>
> Thanks,
> David
>
> Oct 13, 2013 12:23:35 PM WARNING 
> hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider 
> retrieveUser
>
> Failed to retrieve user information for username
> javax.naming.NamingException: [LDAP: error code 1 - : LdapErr: 
> DSID-0C090627, comment: In order to perform this operation a successful 
> bind must be completed on the connection., data 0, vece]; remaining name 
> 'DC=mycompany,DC=com'
> at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3072)
> at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2978)
> at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2785)
> at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1839)
> at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1762)
> at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1779)
> at 
> com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:412)
> at 
> com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:394)
> at 
> com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:376)
> at 
> hudson.plugins.active_directory.LDAPSearchBuilder.search(LDAPSearchBuilder.java:52)
> at 
> hudson.plugins.active_directory.LDAPSearchBuilder.searchOne(LDAPSearchBuilder.java:42)
> at 
> hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:263)
> at 
> hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:193)
> at 
> hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:137)
> at 
> hudson.plugins.active_directory.AbstractActiveDirectoryAuthenticationProvider.loadUserByUsername(AbstractActiveDirectoryAuthenticationProvider.java:30)
> at 
> hudson.plugins.active_directory.ActiveDirectorySecurityRealm.loadUserByUsername(ActiveDirectorySecurityRealm.java:584)
> at hudson.model.User.impersonate(User.java:255)
> at 
> org.jenkinsci.main.modules.cli.auth.ssh.SshCliAuthenticator.authenticate(SshCliAuthenticator.java:44)
> at hudson.cli.CliManagerImpl$2.run(CliManagerImpl.java:109)
>
> Oct 13, 2013 12:23:35 PM WARNING 
> hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider 
> retrieveUser
>
> Credential exception tying to authenticate against mycompany.com domain
> org.acegisecurity.BadCredentialsException: Failed to retrieve user 
> information for username; nested exception is javax.naming.NamingException: 
> [LDAP: error code 1 - : LdapErr: DSID-0C090627, comment: In order 
> to perform this operation a successful bind must be completed on the 
> connection., data 0, vece]; remaining name 'DC=mycompany,DC=com'
> at 
> hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:309)
> at 
> hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:193)
> at 
> hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:137)
> at 
> hudson.plugins.active_directory.AbstractActiveDirectoryAuthenticationProvider.loadUserByUsername(AbstractActiveDirectoryAuthenticationProvider.java:30)
> at 
> hudson.plugins.active_directory.ActiveDirectorySecurityRealm.loadUserByUsername(ActiveDirectorySecurityRealm.java:584)
> at hudson.model.User.impersonate(User.java:255)
> 

Jenkins PREFIX is not working

2013-10-15 Thread Maneesh M P
I have the PREFIX set in /etc/default/jenkins file

# port for HTTP connector (default 8080; disable with -1)
HTTP_PORT=8081

# servlet context, important if you want to use apache proxying
PREFIX=/jenkins

But if i open the URL wit prefix

http://abc.cv.xy.com:8081/jenkins   
 or http://abc.cv.xp.com/jenkins

I get 404 Error

Status Code: 404Exception: 
Stacktrace:

(none)


--
*Generated by Winstone Servlet Engine v0.9.10 at Tue Oct 15 16:41:37 PDT 
2013*

I also have apache reverse proxy setup under 
/etc/apache/conf.d/jenkins-conf file

ProxyPass /jenkins http://localhost:8081/jenkins
ProxyPassReverse /jenkins http://localhost:8081/jenkins
ProxyRequests   Off
ProxyPreserveHost on


Can anyone help me to rectify this issue? 

Thanks,
M

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


Re: CVS error "file was lost" in matrix build

2013-10-15 Thread cscooper
Actually, I found what appears to be a successful workaround (and might help
in understanding the problem) - if I turn off "Use Update" in the "Source
Code Management" section, the problem goes away.




--
View this message in context: 
http://jenkins-ci.361315.n4.nabble.com/CVS-error-file-was-lost-in-matrix-build-tp4678897p4678964.html
Sent from the Jenkins users mailing list archive at Nabble.com.

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


Re: CORS for REST API

2013-10-15 Thread Michaël Pailloncy
You can try to build it yourself using Maven and upload manually the hpi
file generated in the target directory.

Hope this help.


2013/10/9 Ashley Coker 

> Does anyone know how to install:
> https://github.com/jhinrichsen/cors-plugin/
>
> I want to enable CORS for the REST API so that OPTIONS requests are
> treated respecting CORS.
>
> I have found the above GitHub repo, but I have no idea how to install this
> plugin or if it works!
>
> Help much appreciated.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

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


Re: CVS error "file was lost" in matrix build

2013-10-15 Thread cscooper
Do you have any suggestions on workarounds until I more permanent fix is
found?

I tried putting a "cvs status" command as the Script Content in the "Prepare
an environment for the run" but it didn't help - the cvs update still gave
all the "not found" errors.

Is there a "cvs repair thyself" command?

Thanks,
Chris




--
View this message in context: 
http://jenkins-ci.361315.n4.nabble.com/CVS-error-file-was-lost-in-matrix-build-tp4678897p4678962.html
Sent from the Jenkins users mailing list archive at Nabble.com.

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


Re: Role Strategy Plugin - how to apply multiple patterns in project roles

2013-10-15 Thread Maneesh M P
You can do with piping I guess

*(?i)RB_MIB.* *|* (?i)HMI_MIB.*  | **(?i)JXE_MIB.**

Thanks,
Maneesh

On Friday, October 11, 2013 4:35:12 AM UTC-7, Daniel Beck wrote:
>
> There's no way to define multiple patterns for a given role (which would 
> enable different permissions depending on the job for the same role). 
>
> But the pattern '(RB|HMI|JXE)_MIB.*' should do it. Maybe look up the 
> java.util.regex.Pattern docs? 
>
> On 11.10.2013, at 13:25, Jan Seidel > 
> wrote: 
>
> > 
> > 
> > Hi folks, 
> > 
> > I am setting up Role Strategy as too many people can peek and poke in 
> too many jobs and mess around. 
> > We have many build jobs which leads me to a problem when assigning Roles 
> in Projects roles. 
> > 
> > I need multiple patterns for a single role if possible. 
> > e.g. the role MIB admin must access all jobs starting with (?i)RB_MIB.*, 
> (?i)HMI_MIB.* and (?i)JXE_MIB.* but not (?i)MB_GUIDE_MIB.* nor any other 
> job that is outside of the scope of this project. 
> > So simply taking (?i).*MIB.* won't work. 
> > 
> > Is it possible to use multiple patterns for one role and if yes, how? 
> > 
> > Cheers 
> > Jan 
> > 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "Jenkins Users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to jenkinsci-use...@googlegroups.com . 
> > For more options, visit https://groups.google.com/groups/opt_out. 
>
>

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


Re: Job category-based security

2013-10-15 Thread Daniel Beck
You could use the Role Strategy Plugin, if your 'job categories' are reflected 
in the job names, as it uses regular expression pattern matching on the job 
name to assign permissions.

Alternatively, organize your jobs in folders (Cloudbees Folders plugin) and 
assign permissions based on these item groups. Could work with Project-based 
matrix, but I'm not sure. Requires the commercial RBAC plugin otherwise.

On 15.10.2013, at 20:57, Scott Danzig  wrote:

> Is there a way to specify security settings for a particular 
> category/group/type of job?  For instance, if I'd people from the QA LDAP 
> group to only be able to run "test-only" jobs, is there a way to easily 
> specify certain jobs as test jobs and then do a one time security setting for 
> all of them?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

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


Re: Error from CLI command

2013-10-15 Thread oliver gondža
The command is clearly broken as it result in NPE whenever build number  
does not exist for particular job. Please, file an issue and feel free to  
assign to me, this one is trivial.


--
oliver

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


Job category-based security

2013-10-15 Thread Scott Danzig
Is there a way to specify security settings for a particular 
category/group/type of job?  For instance, if I'd people from the QA LDAP 
group to only be able to run "test-only" jobs, is there a way to easily 
specify certain jobs as test jobs and then do a one time security setting 
for all of them?

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


Error from CLI command

2013-10-15 Thread Ginga, Dick
Anyone know about this error:

C:\Users\DG>java -jar \Jenkins\jenkins-cli.jar -s 
http://dilithium.xx.net:8082 set-build-display-name 
"Build-Main-Stream-iChem3D" 292 "iChem3D-Test-Main-2.0.0-292"
java.lang.NullPointerException
at 
hudson.cli.SetBuildDisplayNameCommand.run(SetBuildDisplayNameCommand.java:32)
at hudson.cli.CLICommand.main(CLICommand.java:229)
at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:299)
at 
hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:280)
at 
hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:239)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at hudson.cli.CliManagerImpl$1.call(CliManagerImpl.java:63)
at 
hudson.remoting.InterceptingExecutorService$2.call(InterceptingExecutorService.java:95)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Dick Ginga, Informatics R&D
PerkinElmer Inc. | For the Better
HUMAN HEALTH | ENVIRONMENTAL HEALTH
940 Winter Street, Waltham MA 02451

dick.gi...@perkinelmer.com
Mobile - 508-847-1434
Office - 781-663-6947


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


Re: Is there a way to pass File parameter for jekins jobs ?

2013-10-15 Thread Scott Evans
Have you looked into using a matrix build to run a build job on all of the
slave nodes at the same time?  Just put the script in a common location and
reference it via unc path in your build steps.  Then set the matrix job to
run on each of the nodes and then run the job, should be pretty easy,
especially if the script name is set the same each time.   If it's a
different name each time, you could just set the build to need a parameter
and when you run the build Jenkins should prompt you for a parameter value
that you can use to point to the script.

This is assuming that your sql script can be run as the same user that
Jenkins is running as on your slave nodes, as that's the user that will be
running the build job.

Scott


On Tue, Oct 15, 2013 at 12:10 PM, Maneesh M P wrote:

> our developers gives a mysql script file [abc.sql] each time to execute on
> all the build servers [we have 7 slave nodes]. So every time I have to
> manually login and execute the sql command in all build servers.
> Is there a way from jenkins I can browse and select the sql file as input
> parameter and execute over ssh in all the build servers?
>
> Thanks
> M
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

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


Is there a way to pass File parameter for jekins jobs ?

2013-10-15 Thread Maneesh M P
our developers gives a mysql script file [abc.sql] each time to execute on 
all the build servers [we have 7 slave nodes]. So every time I have to 
manually login and execute the sql command in all build servers.
Is there a way from jenkins I can browse and select the sql file as input 
parameter and execute over ssh in all the build servers?

Thanks
M

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


RE: "Failed to test the validity of the user name ..."

2013-10-15 Thread David Aldrich
Thanks Stephen, we'll consider using the Active Directory plugin instead.

BR

David

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Stephen Connolly
Sent: 15 October 2013 15:37
To: jenkinsci-users@googlegroups.com
Subject: Re: "Failed to test the validity of the user name ..."

Well Kohsuke always is confused as to why people use a plugin that doesn't have 
"Active Directory" in its name when trying to connect to Active Directory... so 
going on Kohsuke's philosophy, you should be using the Active Directory plugin 
to connect to Active Directory... and if that doesn't work for you, then you 
should file some bugs and pester Kohsuke to fix them bugs.


On 15 October 2013 14:44, David Aldrich 
mailto:david.aldr...@emea.nec.com>> wrote:
Hi Stephen

Thanks for your reply.

Would it help if we used the Active Directory plugin instead of the LDAP plugin?

I'm afraid I know nothing about groovy scripts.  How would I run that script 
please?

David

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com]
 On Behalf Of Stephen Connolly
Sent: 15 October 2013 14:35
To: jenkinsci-users@googlegroups.com
Subject: Re: "Failed to test the validity of the user name ..."

Have you tried the troubleshooting groovy script in the Troubleshooting section 
of the LDAP plugin wiki page?

On 15 October 2013 14:30, David Aldrich 
mailto:david.aldr...@emea.nec.com>> wrote:
Hi

We have seen this issue:

JENKINS-12619 "Failed to test the validity of the user name on all security 
matrices since upgrade

on our Jenkins instance for a long time.  We are running Jenkins 1.509.3 (LTS).

Does anyone have a solution for this issue please?

Best regards

David

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

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

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

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

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


Re: "Failed to test the validity of the user name ..."

2013-10-15 Thread Stephen Connolly
Blame Kohsuke if it goes wrong ;-)


On 15 October 2013 16:03, David Aldrich  wrote:

>  Thanks Stephen, we’ll consider using the Active Directory plugin instead.
> 
>
> ** **
>
> BR
>
> ** **
>
> David
>
> ** **
>
> *From:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *On Behalf Of *Stephen Connolly
> *Sent:* 15 October 2013 15:37
>
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: "Failed to test the validity of the user name ..."
>
>  ** **
>
> Well Kohsuke always is confused as to why people use a plugin that doesn't
> have "Active Directory" in its name when trying to connect to Active
> Directory... so going on Kohsuke's philosophy, you should be using the
> Active Directory plugin to connect to Active Directory... and if that
> doesn't work for you, then you should file some bugs and pester Kohsuke to
> fix them bugs.
>
> ** **
>
> ** **
>
> On 15 October 2013 14:44, David Aldrich 
> wrote:
>
> Hi Stephen
>
>  
>
> Thanks for your reply. 
>
>  
>
> Would it help if we used the Active Directory plugin instead of the LDAP
> plugin?
>
>  
>
> I’m afraid I know nothing about groovy scripts.  How would I run that
> script please?
>
>  
>
> David
>
>  
>
> *From:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *On Behalf Of *Stephen Connolly
> *Sent:* 15 October 2013 14:35
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: "Failed to test the validity of the user name ..."
>
>  
>
> Have you tried the troubleshooting groovy script in the Troubleshooting
> section of the LDAP plugin wiki page?
>
>  
>
> On 15 October 2013 14:30, David Aldrich 
> wrote:
>
> Hi
>
>  
>
> We have seen this issue:
>
>  
>
> JENKINS-12619 "Failed to test the validity of the user name on all
> security matrices since upgrade
>
>  
>
> on our Jenkins instance for a long time.  We are running Jenkins 1.509.3
> (LTS).
>
>  
>
> Does anyone have a solution for this issue please?
>
>  
>
> Best regards
>
>  
>
> David
>
>  
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>  
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
> Click 
> hereto
>  report this email as spam.
> 
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
> ** **
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

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


Source code formatter

2013-10-15 Thread Jürgen
Is there a way to have the source code in the workspace view formatted? The 
source code should look like in an IDE. Ideally references should be 
browseable.
Or is there a kind of opengrok plugin for Jenkins?

Thanks,
Juergen

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


Re: LDAP Configuration

2013-10-15 Thread teilo
Hi Stephen,

I will see what I can do, but can't promise a quick turnaround (I need to 
get a fair amount done before the JUC next week)

This may have something to do with the location of the main servers for the 
domain.
e.g. 
nslookup -q=SRV _ldap._tcp.mydomain.com

returns servers that are not located in the same site as Jenkins (indeed 
some are on the other side of the globe and all have the same weight!).
The AD plugin does multiple queries as it recursively checks for group 
membership (a change that I did - so you can slap me with a wet fish for 
that). This was to support if you are a member of group Y and group Y is a 
member of Jenkins_Admins then you will correctly be identified as a user 
with ROLE_jenkins_admin.

pings to the server in the other side of the world are 72ms...
pings to my local global catalogue server - well that's <1 ms :-)

now you can imagine if each query took just a round trip time that 100 
queries (lot of groups in large companies.) that that would be 100 * 72ms 
which is about 7 seconds, compared to a not noticeable 0.1s.

(NB: slight correction below).

/James

On Tuesday, 15 October 2013 15:32:14 UTC+1, Stephen Connolly wrote:
>
> James, would you be amenable to firing up a test jenkins and giving some 
> comparative timings?
>
> At least in Unix mode they should be pretty much identical in performance, 
> though theAD plugin should be much easier to configure
>
>
> On 15 October 2013 14:47, teilo > wrote:
>
>> The LDAP plugin is (at least it was when we unceremoniously ditched the 
>> AD plugin) MUCH MUCH quicker to authenticate users than the AD one when you 
>> have a lovely large tree of domains…
>>
>> ** **Now I will prefix this with I am not an AD expert but…
>>
>> 
>>
>> ** **http://technet.microsoft.com/en-us/library/cc728188(v=ws.10).aspx
>>
>> 
>>
>> ** "**The global catalog is a distributed data repository that contains 
>> a searchable, partial representation of every object in every domain in a 
>> multidomain Active Directory Domain Services (AD DS) forest. The global 
>> catalog is stored on domain controllers that have been designated as global 
>> catalog servers and is distributed through multimaster replication. 
>> Searches that are directed to the global catalog are faster because they do 
>> not involve referrals to different domain controllers."
>>
>> 
>>
>> ** **I don’t notice any delay using the global catalogue and LDAP – 
>> using AD we often saw multi second (into the tens) delays in authentication 
>> – the above may or may not be the reason for it.
>>
>> ** **/James
>>
>> On Tuesday, 15 October 2013 14:01:38 UTC+1, Stephen Connolly wrote:
>>
>>> Can we just ask one question:
>>>
>>> WHY ARE YOU USING THE LDAP PLUGIN AND NOT THE ACTIVE DIRECTORY PLUGIN?
>>>
>>> People seem to keep on wanting to inflict pain on themselves and go with 
>>> the more complex LDAP plugin rather than the much much easier to use Active 
>>> Directory plugin.
>>>
>>> If there is some feature missing that causes you to decide to plump for 
>>> the LDAP plugin it would be good to know so that the feature could be added 
>>> to the Active Directory plugin.
>>>
>>>
>>> On 15 October 2013 13:17, Ricardo García Fernández 
>>> wrote:
>>>
  Hi Zac !

 I was dealing with the same issue: authentication against LDAP/AD and 
 your answer was the right one.

 Also, I fixed the group filter and configured group properties using 
 this filter:

 Group search filter: (& (cn={0}) (objectclass=group) )
 Group Search Base: your OU groups separated with comas (,).

 Thus I can configure groups and users from general configuration to Job 
 one.

 Thanks for your solution it was very helpful

 El miércoles, 14 de diciembre de 2011 20:01:34 UTC+1, Zac Harvey 
 escribió:
>
> I am trying to set up Jenkins to authenticate using our AD domain over
> LDAP.  I have been working with the Systems Group trying to configure
> all of the settings under Manage Jenkins >> Configure System >> Access
> Control.  We finally have all the settings configured correctly (at
> least, in the eyes of the Systems people), and we are not getting any
> red validation errors in the GUI.  However I still cannot login via
> LDAP/AD.  Below is the console output.  Any nudges in the right
> direction are enormously appreciated!
>
> Console Output:
> Dec 14, 2011 1:47:21 PM
> hudson.security.**Authentication**ProcessingFilter**2
> onUnsuccessfulAuthentication
> INFO: Login attempt failed
> org.acegisecurity.**Authenticati**onServiceException**: 
> LdapCallback;[LDAP:
> error code 32 - 208D: NameErr: DSID-031001E4, problem 2001
> (NO_OBJECT), data 0, best match of:
> 'DC=MYPROJECT,DC=COM'
> ]; nested exception is javax.naming.**NameNotFoundExcep**tion: [LDAP:
> error code 32 - 208D: NameErr: DSID-031001E4, problem 2001
> (NO_

Re: "Failed to test the validity of the user name ..."

2013-10-15 Thread Stephen Connolly
Well Kohsuke always is confused as to why people use a plugin that doesn't
have "Active Directory" in its name when trying to connect to Active
Directory... so going on Kohsuke's philosophy, you should be using the
Active Directory plugin to connect to Active Directory... and if that
doesn't work for you, then you should file some bugs and pester Kohsuke to
fix them bugs.



On 15 October 2013 14:44, David Aldrich  wrote:

>  Hi Stephen
>
> ** **
>
> Thanks for your reply. 
>
> ** **
>
> Would it help if we used the Active Directory plugin instead of the LDAP
> plugin?
>
> ** **
>
> I’m afraid I know nothing about groovy scripts.  How would I run that
> script please?
>
> ** **
>
> David
>
> ** **
>
> *From:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *On Behalf Of *Stephen Connolly
> *Sent:* 15 October 2013 14:35
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: "Failed to test the validity of the user name ..."
>
> ** **
>
> Have you tried the troubleshooting groovy script in the Troubleshooting
> section of the LDAP plugin wiki page?
>
> ** **
>
> On 15 October 2013 14:30, David Aldrich 
> wrote:
>
> Hi
>
>  
>
> We have seen this issue:
>
>  
>
> JENKINS-12619 "Failed to test the validity of the user name on all
> security matrices since upgrade
>
>  
>
> on our Jenkins instance for a long time.  We are running Jenkins 1.509.3
> (LTS).
>
>  
>
> Does anyone have a solution for this issue please?
>
>  
>
> Best regards
>
>  
>
> David
>
>  
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
> ** **
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
> 
>
> Click 
> hereto
>  report this email as spam.
> 
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

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


Re: LDAP Configuration

2013-10-15 Thread Stephen Connolly
James, would you be amenable to firing up a test jenkins and giving some
comparative timings?

At least in Unix mode they should be pretty much identical in performance,
though theAD plugin should be much easier to configure


On 15 October 2013 14:47, teilo  wrote:

> The LDAP plugin is (at least it was before we unceremoniously ditched it)
> MUCH MUCH quicker to authenticate users than the AD one when you have a
> lovely large tree of domains…
>
> ** **Now I will prefix this with I am not an AD expert but…
>
> 
>
> ** **http://technet.microsoft.com/en-us/library/cc728188(v=ws.10).aspx
>
> 
>
> ** "**The global catalog is a distributed data repository that contains a
> searchable, partial representation of every object in every domain in a
> multidomain Active Directory Domain Services (AD DS) forest. The global
> catalog is stored on domain controllers that have been designated as global
> catalog servers and is distributed through multimaster replication.
> Searches that are directed to the global catalog are faster because they do
> not involve referrals to different domain controllers."
>
> 
>
> ** **I don’t notice any delay using the global catalogue and LDAP – using
> AD we often saw multi second (into the tens) delays in authentication – the
> above may or may not be the reason for it.
>
> ** **/James
>
> On Tuesday, 15 October 2013 14:01:38 UTC+1, Stephen Connolly wrote:
>
>> Can we just ask one question:
>>
>> WHY ARE YOU USING THE LDAP PLUGIN AND NOT THE ACTIVE DIRECTORY PLUGIN?
>>
>> People seem to keep on wanting to inflict pain on themselves and go with
>> the more complex LDAP plugin rather than the much much easier to use Active
>> Directory plugin.
>>
>> If there is some feature missing that causes you to decide to plump for
>> the LDAP plugin it would be good to know so that the feature could be added
>> to the Active Directory plugin.
>>
>>
>> On 15 October 2013 13:17, Ricardo García Fernández 
>> wrote:
>>
>>> Hi Zac !
>>>
>>> I was dealing with the same issue: authentication against LDAP/AD and
>>> your answer was the right one.
>>>
>>> Also, I fixed the group filter and configured group properties using
>>> this filter:
>>>
>>> Group search filter: (& (cn={0}) (objectclass=group) )
>>> Group Search Base: your OU groups separated with comas (,).
>>>
>>> Thus I can configure groups and users from general configuration to Job
>>> one.
>>>
>>> Thanks for your solution it was very helpful
>>>
>>> El miércoles, 14 de diciembre de 2011 20:01:34 UTC+1, Zac Harvey
>>> escribió:

 I am trying to set up Jenkins to authenticate using our AD domain over
 LDAP.  I have been working with the Systems Group trying to configure
 all of the settings under Manage Jenkins >> Configure System >> Access
 Control.  We finally have all the settings configured correctly (at
 least, in the eyes of the Systems people), and we are not getting any
 red validation errors in the GUI.  However I still cannot login via
 LDAP/AD.  Below is the console output.  Any nudges in the right
 direction are enormously appreciated!

 Console Output:
 Dec 14, 2011 1:47:21 PM
 hudson.security.**Authentication**ProcessingFilter**2
 onUnsuccessfulAuthentication
 INFO: Login attempt failed
 org.acegisecurity.**Authenticati**onServiceException**:
 LdapCallback;[LDAP:
 error code 32 - 208D: NameErr: DSID-031001E4, problem 2001
 (NO_OBJECT), data 0, best match of:
 'DC=MYPROJECT,DC=COM'
 ]; nested exception is javax.naming.**NameNotFoundExcep**tion: [LDAP:
 error code 32 - 208D: NameErr: DSID-031001E4, problem 2001
 (NO_OBJECT), data 0, best match of:
 'DC=MYPROJECT,DC=COM'
 ]; remaining name 'dc=myproject,dc=com'; nested exception is
 org.acegisecurity.ldap.**LdapDat**aAccessException: LdapCallback;[LDAP:
 error code 32 - 208D: NameErr: DSID-031001E4, problem 2001
 (NO_OBJECT), data 0, best match of:
 'DC=MYPROJECT,DC=COM'
 ]; nested exception is javax.naming.**NameNotFoundExcep**tion: [LDAP:
 error code 32 - 208D: NameErr: DSID-031001E4, problem 2001
 (NO_OBJECT), data 0, best match of:
 'DC=MYPROJECT,DC=COM'
 ]; remaining name 'dc=myproject,dc=com'
 at
 org.acegisecurity.providers.**ld**ap.**LdapAuthenticationProvider.
 retrieveUser(**LdapAuthenticatio**nProvider.**java:
 238)
 at
 org.acegisecurity.providers.**da**o.**AbstractUserDetailsAuthentic**at*
 *ionProvider.authenticate(**Abs**tractUserDetailsAuthenticat**ion**
 Provider.java:
 119)
 at
 org.acegisecurity.providers.**Pr**oviderManager.**doAuthentication**(**
 ProviderManager.java:
 195)
 at
 org.acegisecurity.**AbstractAuth**enticationManager.**authenticate**(**
 AbstractAuthenticationManager**.**java:
 45)
 at
 org.acegisecurity.ui.webapp.**Au**thenticationPro

Re: LDAP Configuration

2013-10-15 Thread teilo


The LDAP plugin is (at least it was before we unceremoniously ditched it) 
MUCH MUCH quicker to authenticate users than the AD one when you have a 
lovely large tree of domains…

 Now I will prefix this with I am not an AD expert but…

 http://technet.microsoft.com/en-us/library/cc728188(v=ws.10).aspx

 "The global catalog is a distributed data repository that contains a 
searchable, partial representation of every object in every domain in a 
multidomain Active Directory Domain Services (AD DS) forest. The global 
catalog is stored on domain controllers that have been designated as global 
catalog servers and is distributed through multimaster replication. 
Searches that are directed to the global catalog are faster because they do 
not involve referrals to different domain controllers."

 I don’t notice any delay using the global catalogue and LDAP – using AD we 
often saw multi second (into the tens) delays in authentication – the above 
may or may not be the reason for it.

 /James

On Tuesday, 15 October 2013 14:01:38 UTC+1, Stephen Connolly wrote:
>
> Can we just ask one question:
>
> WHY ARE YOU USING THE LDAP PLUGIN AND NOT THE ACTIVE DIRECTORY PLUGIN?
>
> People seem to keep on wanting to inflict pain on themselves and go with 
> the more complex LDAP plugin rather than the much much easier to use Active 
> Directory plugin.
>
> If there is some feature missing that causes you to decide to plump for 
> the LDAP plugin it would be good to know so that the feature could be added 
> to the Active Directory plugin.
>
>
> On 15 October 2013 13:17, Ricardo García Fernández 
> 
> > wrote:
>
>> Hi Zac !
>>
>> I was dealing with the same issue: authentication against LDAP/AD and 
>> your answer was the right one.
>>
>> Also, I fixed the group filter and configured group properties using this 
>> filter:
>>
>> Group search filter: (& (cn={0}) (objectclass=group) )
>> Group Search Base: your OU groups separated with comas (,).
>>
>> Thus I can configure groups and users from general configuration to Job 
>> one.
>>
>> Thanks for your solution it was very helpful
>>
>> El miércoles, 14 de diciembre de 2011 20:01:34 UTC+1, Zac Harvey escribió:
>>>
>>> I am trying to set up Jenkins to authenticate using our AD domain over
>>> LDAP.  I have been working with the Systems Group trying to configure
>>> all of the settings under Manage Jenkins >> Configure System >> Access
>>> Control.  We finally have all the settings configured correctly (at
>>> least, in the eyes of the Systems people), and we are not getting any
>>> red validation errors in the GUI.  However I still cannot login via
>>> LDAP/AD.  Below is the console output.  Any nudges in the right
>>> direction are enormously appreciated!
>>>
>>> Console Output:
>>> Dec 14, 2011 1:47:21 PM
>>> hudson.security.**AuthenticationProcessingFilter**2
>>> onUnsuccessfulAuthentication
>>> INFO: Login attempt failed
>>> org.acegisecurity.**AuthenticationServiceException**: 
>>> LdapCallback;[LDAP:
>>> error code 32 - 208D: NameErr: DSID-031001E4, problem 2001
>>> (NO_OBJECT), data 0, best match of:
>>> 'DC=MYPROJECT,DC=COM'
>>> ]; nested exception is javax.naming.**NameNotFoundException: [LDAP:
>>> error code 32 - 208D: NameErr: DSID-031001E4, problem 2001
>>> (NO_OBJECT), data 0, best match of:
>>> 'DC=MYPROJECT,DC=COM'
>>> ]; remaining name 'dc=myproject,dc=com'; nested exception is
>>> org.acegisecurity.ldap.**LdapDataAccessException: LdapCallback;[LDAP:
>>> error code 32 - 208D: NameErr: DSID-031001E4, problem 2001
>>> (NO_OBJECT), data 0, best match of:
>>> 'DC=MYPROJECT,DC=COM'
>>> ]; nested exception is javax.naming.**NameNotFoundException: [LDAP:
>>> error code 32 - 208D: NameErr: DSID-031001E4, problem 2001
>>> (NO_OBJECT), data 0, best match of:
>>> 'DC=MYPROJECT,DC=COM'
>>> ]; remaining name 'dc=myproject,dc=com'
>>> at
>>> org.acegisecurity.providers.**ldap.**LdapAuthenticationProvider.**
>>> retrieveUser(**LdapAuthenticationProvider.**java:
>>> 238)
>>> at
>>> org.acegisecurity.providers.**dao.**AbstractUserDetailsAuthenticat**
>>> ionProvider.authenticate(**AbstractUserDetailsAuthenticat**
>>> ionProvider.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)
>>>   

RE: "Failed to test the validity of the user name ..."

2013-10-15 Thread David Aldrich
Hi Stephen

Thanks for your reply.

Would it help if we used the Active Directory plugin instead of the LDAP plugin?

I'm afraid I know nothing about groovy scripts.  How would I run that script 
please?

David

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Stephen Connolly
Sent: 15 October 2013 14:35
To: jenkinsci-users@googlegroups.com
Subject: Re: "Failed to test the validity of the user name ..."

Have you tried the troubleshooting groovy script in the Troubleshooting section 
of the LDAP plugin wiki page?

On 15 October 2013 14:30, David Aldrich 
mailto:david.aldr...@emea.nec.com>> wrote:
Hi

We have seen this issue:

JENKINS-12619 "Failed to test the validity of the user name on all security 
matrices since upgrade

on our Jenkins instance for a long time.  We are running Jenkins 1.509.3 (LTS).

Does anyone have a solution for this issue please?

Best regards

David

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

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


Click 
here
 to report this email as spam.

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


Re: "Failed to test the validity of the user name ..."

2013-10-15 Thread Stephen Connolly
Have you tried the troubleshooting groovy script in the Troubleshooting
section of the LDAP plugin wiki page?


On 15 October 2013 14:30, David Aldrich  wrote:

>  Hi
>
> ** **
>
> We have seen this issue:
>
> ** **
>
> JENKINS-12619 "Failed to test the validity of the user name on all
> security matrices since upgrade
>
> ** **
>
> on our Jenkins instance for a long time.  We are running Jenkins 1.509.3
> (LTS).
>
> ** **
>
> Does anyone have a solution for this issue please?
>
> ** **
>
> Best regards
>
> ** **
>
> David
>
> ** **
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

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


"Failed to test the validity of the user name ..."

2013-10-15 Thread David Aldrich
Hi

We have seen this issue:

JENKINS-12619 "Failed to test the validity of the user name on all security 
matrices since upgrade

on our Jenkins instance for a long time.  We are running Jenkins 1.509.3 (LTS).

Does anyone have a solution for this issue please?

Best regards

David

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


Re: LDAP Configuration

2013-10-15 Thread Stephen Connolly
Can we just ask one question:

WHY ARE YOU USING THE LDAP PLUGIN AND NOT THE ACTIVE DIRECTORY PLUGIN?

People seem to keep on wanting to inflict pain on themselves and go with
the more complex LDAP plugin rather than the much much easier to use Active
Directory plugin.

If there is some feature missing that causes you to decide to plump for the
LDAP plugin it would be good to know so that the feature could be added to
the Active Directory plugin.


On 15 October 2013 13:17, Ricardo García Fernández
wrote:

> Hi Zac !
>
> I was dealing with the same issue: authentication against LDAP/AD and your
> answer was the right one.
>
> Also, I fixed the group filter and configured group properties using this
> filter:
>
> Group search filter: (& (cn={0}) (objectclass=group) )
> Group Search Base: your OU groups separated with comas (,).
>
> Thus I can configure groups and users from general configuration to Job
> one.
>
> Thanks for your solution it was very helpful
>
> El miércoles, 14 de diciembre de 2011 20:01:34 UTC+1, Zac Harvey escribió:
>>
>> I am trying to set up Jenkins to authenticate using our AD domain over
>> LDAP.  I have been working with the Systems Group trying to configure
>> all of the settings under Manage Jenkins >> Configure System >> Access
>> Control.  We finally have all the settings configured correctly (at
>> least, in the eyes of the Systems people), and we are not getting any
>> red validation errors in the GUI.  However I still cannot login via
>> LDAP/AD.  Below is the console output.  Any nudges in the right
>> direction are enormously appreciated!
>>
>> Console Output:
>> Dec 14, 2011 1:47:21 PM
>> hudson.security.**AuthenticationProcessingFilter**2
>> onUnsuccessfulAuthentication
>> INFO: Login attempt failed
>> org.acegisecurity.**AuthenticationServiceException**: LdapCallback;[LDAP:
>> error code 32 - 208D: NameErr: DSID-031001E4, problem 2001
>> (NO_OBJECT), data 0, best match of:
>> 'DC=MYPROJECT,DC=COM'
>> ]; nested exception is javax.naming.**NameNotFoundException: [LDAP:
>> error code 32 - 208D: NameErr: DSID-031001E4, problem 2001
>> (NO_OBJECT), data 0, best match of:
>> 'DC=MYPROJECT,DC=COM'
>> ]; remaining name 'dc=myproject,dc=com'; nested exception is
>> org.acegisecurity.ldap.**LdapDataAccessException: LdapCallback;[LDAP:
>> error code 32 - 208D: NameErr: DSID-031001E4, problem 2001
>> (NO_OBJECT), data 0, best match of:
>> 'DC=MYPROJECT,DC=COM'
>> ]; nested exception is javax.naming.**NameNotFoundException: [LDAP:
>> error code 32 - 208D: NameErr: DSID-031001E4, problem 2001
>> (NO_OBJECT), data 0, best match of:
>> 'DC=MYPROJECT,DC=COM'
>> ]; remaining name 'dc=myproject,dc=com'
>> at
>> org.acegisecurity.providers.**ldap.**LdapAuthenticationProvider.**
>> retrieveUser(**LdapAuthenticationProvider.**java:
>> 238)
>> at
>> org.acegisecurity.providers.**dao.**AbstractUserDetailsAuthenticat**
>> ionProvider.authenticate(**AbstractUserDetailsAuthenticat**
>> ionProvider.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:61)
>> at hudson.security.**ChainedServletFilter
>> $1.doFilter(**ChainedServletFilter.java:87)
>> at
>> org.acegisecurity.context.**HttpSessionContextIntegrationF**
>> ilter.doFilter(**HttpSessionContextIntegrationF**ilter.java:
>> 249)
>> at
>> hudson.security.**HttpSessionContextIntegrationF**ilter2.doFilter(**
>> HttpSessionContextIntegrationF**ilter2.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
>> org.apache.catalina.core.**ApplicationFilterChain.**internalDoFilter(**
>> ApplicationFilterChain.java:
>> 243)
>> at
>> org.apache.catalina.core.**ApplicationFilterChain.**doFilter(**
>> ApplicationFilterChain.java:
>> 210)
>> at
>> hudson.util.**CharacterEncodingFilter.**doFilter(**
>> CharacterEncodingFilt

Re: How to configure email on jenkins server installed on an EC2 instance

2013-10-15 Thread srini
Just to clarify: Jenkins v1.530 was installed on Ubuntu 12.04 version 64-bit

Should I be using Amazon's Simple Email Service (SES) to do this? if yes, 
how can I glue SES + Active Directory + with the Jenkin's job where email 
addresses are configured?


>

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


How to configure email on jenkins server installed on an EC2 instance

2013-10-15 Thread srini
Hi all,

I have an Jenkins server installed on EC2 instance and I would like to 
configure the email setup so after a Jenkins build that it can send emails 
to the users configured on that particular job. The users' emails addresses 
are normal corporate email addresses. Should I be using Amazon's Simple 
Email Service (SES) to do this? if yes, how can glue SES with the jenkin's 
job where email addresses are configured?


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


Re: LDAP Configuration

2013-10-15 Thread Ricardo García Fernández
Hi Zac !

I was dealing with the same issue: authentication against LDAP/AD and your 
answer was the right one.

Also, I fixed the group filter and configured group properties using this 
filter:

Group search filter: (& (cn={0}) (objectclass=group) )
Group Search Base: your OU groups separated with comas (,).

Thus I can configure groups and users from general configuration to Job one.

Thanks for your solution it was very helpful

El miércoles, 14 de diciembre de 2011 20:01:34 UTC+1, Zac Harvey escribió:
>
> I am trying to set up Jenkins to authenticate using our AD domain over
> LDAP.  I have been working with the Systems Group trying to configure
> all of the settings under Manage Jenkins >> Configure System >> Access
> Control.  We finally have all the settings configured correctly (at
> least, in the eyes of the Systems people), and we are not getting any
> red validation errors in the GUI.  However I still cannot login via
> LDAP/AD.  Below is the console output.  Any nudges in the right
> direction are enormously appreciated!
>
> Console Output:
> Dec 14, 2011 1:47:21 PM
> hudson.security.AuthenticationProcessingFilter2
> onUnsuccessfulAuthentication
> INFO: Login attempt failed
> org.acegisecurity.AuthenticationServiceException: LdapCallback;[LDAP:
> error code 32 - 208D: NameErr: DSID-031001E4, problem 2001
> (NO_OBJECT), data 0, best match of:
> 'DC=MYPROJECT,DC=COM'
> ]; nested exception is javax.naming.NameNotFoundException: [LDAP:
> error code 32 - 208D: NameErr: DSID-031001E4, problem 2001
> (NO_OBJECT), data 0, best match of:
> 'DC=MYPROJECT,DC=COM'
> ]; remaining name 'dc=myproject,dc=com'; nested exception is
> org.acegisecurity.ldap.LdapDataAccessException: LdapCallback;[LDAP:
> error code 32 - 208D: NameErr: DSID-031001E4, problem 2001
> (NO_OBJECT), data 0, best match of:
> 'DC=MYPROJECT,DC=COM'
> ]; nested exception is javax.naming.NameNotFoundException: [LDAP:
> error code 32 - 208D: NameErr: DSID-031001E4, problem 2001
> (NO_OBJECT), data 0, best match of:
> 'DC=MYPROJECT,DC=COM'
> ]; remaining name 'dc=myproject,dc=com'
> 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:61)
> 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
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
> 243)
> at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
> 210)
> at
> hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:
> 81)
> at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
> 243)
> at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
> 210)
> at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
> 224)
> at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
> 185)
> at
>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:
> 472)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
> 151)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
> 100)
> at
> org.apache.catalina.valves.A

Re: Jenkins kick of all the builds after restarting the service

2013-10-15 Thread Michaël Pailloncy
Alternatively, you can add an init script to Jenkins :
https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Jenkins+upon+start+up
This script can call "jenkins.model.Jenkins.instance.doQuietDown()" to put
Jenkins in "quiet" mode on startup. Then, you can wait your slaves to
start, and exit quiet mode after.


2013/9/27 teilo 

> This sounds like you have slaves as well as polling the SCM.
>
> Which is pretty much a bit of a side effect, as the polling will kick off
> potentially before the slaves are available - so the last known revision is
> not available (its in the workspace) and so a new build is kicked off to
> get the revision.
>
> You should be able to confirm this in the actual SCM polling log (not sure
> I remember where they are as we moved to push notification from SVN &
> Gerrit) and this problem went away!
> Alternativley depending on your SCM there may be some options that will
> make polling happen on the master (Git certainly has an option to do this
> IIRC its called - "fast repote polling")
>
> /James
>
>
> On Thursday, 26 September 2013 18:39:04 UTC+1, Maneesh M P wrote:
>>
>> In our project we have observed that whenever we restart the jenkins
>> service, it kicks of all the builds even though builds are configured using
>> SCM polling.
>> is this an expected behavior ?
>>
>> Can  someone tell me a solution if it is not an expected behavior ?
>>
>> Thanks,
>> Maneesh
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

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


Aw: Re: Console output in LTS 1.509.4

2013-10-15 Thread Christoph Kutzinski
It's fixed on trunk - at least for Java 7, but no release of the maven-plugin has been made, yet.
 

Gesendet: Dienstag, 15. Oktober 2013 um 11:45 Uhr
Von: "Harald Wellmann" 
An: jenkinsci-users@googlegroups.com
Betreff: Re: Console output in LTS 1.509.4


Hmm, the impact on LTS is not clear to me. Does this mean the issue *is* a bug which is fixed (at least for Java 7) on trunk but still present in LTS?

Cheers,
Harald

 
2013/10/15 Christoph Kutzinski 




Harald, see https://issues.jenkins-ci.org/browse/JENKINS-19396 and https://issues.jenkins-ci.org/browse/JENKINS-19352

 

Gesendet: Dienstag, 15. Oktober 2013 um 11:22 Uhr
Von: "Harald Wellmann" 
An: jenkinsci-users@googlegroups.com
Betreff: Console output in LTS 1.509.4




After upgrading from 1.509.3 to 1.509.4, my console output looks somewhat broken.

Mojo execution headlines are no longer emphasized in bold, and there's a lot of messages of the following kind:

Oct 15, 2013 11:11:59 AM org.apache.maven.cli.event.ExecutionEventLogger mojoStarted
INFO:


Looks like a regression to me, or is it just a configuration issue?

Best regards,
Harald

 

 


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


 



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



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






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


Re: Console output in LTS 1.509.4

2013-10-15 Thread Harald Wellmann
Hmm, the impact on LTS is not clear to me. Does this mean the issue *is* a
bug which is fixed (at least for Java 7) on trunk but still present in LTS?

Cheers,
Harald


2013/10/15 Christoph Kutzinski 

> Harald, see https://issues.jenkins-ci.org/browse/JENKINS-19396 and
> https://issues.jenkins-ci.org/browse/JENKINS-19352
>
> *Gesendet:* Dienstag, 15. Oktober 2013 um 11:22 Uhr
> *Von:* "Harald Wellmann" 
> *An:* jenkinsci-users@googlegroups.com
> *Betreff:* Console output in LTS 1.509.4
>  After upgrading from 1.509.3 to 1.509.4, my console output looks
> somewhat broken.
>
> Mojo execution headlines are no longer emphasized in bold, and there's a
> lot of messages of the following kind:
>
> Oct 15, 2013 11:11:59 AM org.apache.maven.cli.event.ExecutionEventLogger
> mojoStarted
> INFO:
>
>
> Looks like a regression to me, or is it just a configuration issue?
>
> Best regards,
> Harald
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

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


RE: Help need to debug "channel is already closed" failure

2013-10-15 Thread David Aldrich
Hi

Further inspection showed that the slave had never properly connected to 
Jenkins since a reboot of the slave yesterday.  This was clear in the node's 
log, but no problem was indicated for the slave on the dashboard.  I was busy 
and so didn't investigate deeper.

Anyway, a manual disconnect/reconnect fixed the problem.
 
Best regards

David

> -Original Message-
> From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-
> us...@googlegroups.com] On Behalf Of David Aldrich
> Sent: 15 October 2013 09:46
> To: jenkinsci-users@googlegroups.com
> Subject: Help need to debug "channel is already closed" failure
> 
> Hi
> 
> I have a matrix job that is failing because the slave used by the job 
> disconnects.
> The console output for the job is shown below. I am running Jenkins ver. 
> 1.509.3
> (LTS) with SSH Slaves Plugin 1.3 and Credentials plugin 1.8.3.  The machines 
> run
> Centos Linux.
> 
> This problem appeared yesterday and is now repeatable.  After the failure the
> slave is shown as connected so I guess that Jenkins managed to reconnect.  The
> job and the slave were running fine last week.
> 
> Please can anyone suggest what I can do to identify the cause of the problem?
> 
> Best regards
> 
> David
> 
> 
> ===
> 
> Console Output
> 09:37:42 Started by upstream project "" build number 9
> 09:37:42 originally caused by:
> 09:37:42  Started by user 
> 09:37:42 Building remotely on znsim05FATAL: channel is already closed
> 09:37:42 hudson.remoting.ChannelClosedException: channel is already closed
> 09:37:42  at hudson.remoting.Channel.send(Channel.java:494)
> 09:37:42  at hudson.remoting.Request.call(Request.java:129)
> 09:37:42  at hudson.remoting.Channel.call(Channel.java:672)
> 09:37:42  at hudson.EnvVars.getRemote(EnvVars.java:212)
> 09:37:42  at
> hudson.model.Computer.getEnvironment(Computer.java:880)
> 09:37:42  at
> jenkins.model.CoreEnvironmentContributor.buildEnvironmentFor(CoreEnviron
> mentContributor.java:28)
> 09:37:42  at hudson.model.Run.getEnvironment(Run.java:2062)
> 09:37:42  at
> hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:931)
> 09:37:42  at
> hudson.matrix.MatrixRun$MatrixRunExecution.decideWorkspace(MatrixRun.ja
> va:175)
> 09:37:42  at
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:567
> )
> 09:37:42  at hudson.model.Run.execute(Run.java:1592)
> 09:37:42  at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
> 09:37:42  at
> hudson.model.ResourceController.execute(ResourceController.java:88)
> 09:37:42  at hudson.model.Executor.run(Executor.java:237)
> 09:37:42 Caused by: java.io.IOException: Unexpected termination of the
> channel
> 09:37:42  at
> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(Synchron
> ousCommandTransport.java:50)
> 09:37:42 Caused by: java.io.EOFException
> 09:37:42  at
> java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source)
> 09:37:42  at java.io.ObjectInputStream.readObject0(Unknown Source)
> 09:37:42  at java.io.ObjectInputStream.readObject(Unknown Source)
> 09:37:42  at hudson.remoting.Command.readFrom(Command.java:92)
> 09:37:42  at
> hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.ja
> va:59)
> 09:37:42  at
> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(Synchron
> ousCommandTransport.java:48)
> 
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
>  Click
> https://www.mailcontrol.com/sr/dWnfxqE0d+DGX2PQPOmvUuHxyFIItuEMLR21
> W!sZ9Dtk4Wp5+Iy+6XgiAkhMQd3PPRL+RTcDbJNkxH4nYzTQYQ==  to report this
> email as spam.

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


User password at startup of jenkins service since 1.535

2013-10-15 Thread wohauser
Hello,
If I update from 1.534 to 1.535 jenkins asks for a jenkins user password. How 
to startup jenkins w/o a password like 1.534 ?
Regards Wolfgang

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


Aw: Console output in LTS 1.509.4

2013-10-15 Thread Christoph Kutzinski
Harald, see https://issues.jenkins-ci.org/browse/JENKINS-19396 and https://issues.jenkins-ci.org/browse/JENKINS-19352

 

Gesendet: Dienstag, 15. Oktober 2013 um 11:22 Uhr
Von: "Harald Wellmann" 
An: jenkinsci-users@googlegroups.com
Betreff: Console output in LTS 1.509.4


After upgrading from 1.509.3 to 1.509.4, my console output looks somewhat broken.

Mojo execution headlines are no longer emphasized in bold, and there's a lot of messages of the following kind:

Oct 15, 2013 11:11:59 AM org.apache.maven.cli.event.ExecutionEventLogger mojoStarted
INFO:


Looks like a regression to me, or is it just a configuration issue?

Best regards,
Harald

 

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






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


Console output in LTS 1.509.4

2013-10-15 Thread Harald Wellmann
After upgrading from 1.509.3 to 1.509.4, my console output looks somewhat
broken.

Mojo execution headlines are no longer emphasized in bold, and there's a
lot of messages of the following kind:

Oct 15, 2013 11:11:59 AM org.apache.maven.cli.event.ExecutionEventLogger
mojoStarted
INFO:


Looks like a regression to me, or is it just a configuration issue?

Best regards,
Harald

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


Help need to debug "channel is already closed" failure

2013-10-15 Thread David Aldrich
Hi

I have a matrix job that is failing because the slave used by the job 
disconnects. The console output for the job is shown below. I am running 
Jenkins ver. 1.509.3 (LTS) with SSH Slaves Plugin 1.3 and Credentials plugin 
1.8.3.  The machines run Centos Linux.

This problem appeared yesterday and is now repeatable.  After the failure the 
slave is shown as connected so I guess that Jenkins managed to reconnect.  The 
job and the slave were running fine last week.

Please can anyone suggest what I can do to identify the cause of the problem?

Best regards

David

===

Console Output
09:37:42 Started by upstream project "" build number 9
09:37:42 originally caused by:
09:37:42  Started by user 
09:37:42 Building remotely on znsim05FATAL: channel is already closed
09:37:42 hudson.remoting.ChannelClosedException: channel is already closed
09:37:42at hudson.remoting.Channel.send(Channel.java:494)
09:37:42at hudson.remoting.Request.call(Request.java:129)
09:37:42at hudson.remoting.Channel.call(Channel.java:672)
09:37:42at hudson.EnvVars.getRemote(EnvVars.java:212)
09:37:42at hudson.model.Computer.getEnvironment(Computer.java:880)
09:37:42at 
jenkins.model.CoreEnvironmentContributor.buildEnvironmentFor(CoreEnvironmentContributor.java:28)
09:37:42at hudson.model.Run.getEnvironment(Run.java:2062)
09:37:42at 
hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:931)
09:37:42at 
hudson.matrix.MatrixRun$MatrixRunExecution.decideWorkspace(MatrixRun.java:175)
09:37:42at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:567)
09:37:42at hudson.model.Run.execute(Run.java:1592)
09:37:42at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
09:37:42at 
hudson.model.ResourceController.execute(ResourceController.java:88)
09:37:42at hudson.model.Executor.run(Executor.java:237)
09:37:42 Caused by: java.io.IOException: Unexpected termination of the channel
09:37:42at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50)
09:37:42 Caused by: java.io.EOFException
09:37:42at 
java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source)
09:37:42at java.io.ObjectInputStream.readObject0(Unknown Source)
09:37:42at java.io.ObjectInputStream.readObject(Unknown Source)
09:37:42at hudson.remoting.Command.readFrom(Command.java:92)
09:37:42at 
hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59)
09:37:42at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

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


Re: How to setup JaCoco plugin to exclude a maven module

2013-10-15 Thread Vu Pham
Unfortunately, the problem have not fixed yet. See the issue 
https://github.com/jacoco/jacoco/issues/67 for more details.

Regards,
Kioncopxki

On Wednesday, July 24, 2013 8:57:34 AM UTC+7, Niranjan Rao wrote:
>
> For my deployment, I have one master pom which includes bunch of other 
> modules. Basically standard setup which,  works from maven command line 
> just fine. 
>
> I have setup jenkins to record JaCoCo coverage report. Problem is one 
> the pom file is just a placeholder maven project which does not have any 
> source associated with it. Its used for deploying multiple web 
> applications in one shot. Reasoning is my deployment settings are only 
> at one location. This pom declares dependency on other web applications 
> and uses maven cargo plugin to deploy many war files. 
>
> When I run this in hudson, JaCoco plugin complains about missing classes 
> directory. 
>
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.jacoco:jacoco-maven-plugin:0.6.1.201212231917:report 
> (post-unit-test) on project qaDeployer: Execution post-unit-test of goal 
> org.jacoco:jacoco-maven-plugin:0.6.1.201212231917:report failed: basedir 
> /var/lib/jenkins/jobs/Snapshot_build/workspace/qaDeployer/target/classes 
> does not exist 
> at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
>  
>
>
> What do I need to do so that this module is excluded from JaCoCo 
> settings. I have tried settings exclusion pattern as **/qaDeployer/**/* 
> but it does not help. 
>
> Regards, 
>
> Niranjan 
>

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


Using Build Flow to run a test using two machines

2013-10-15 Thread teilo
There is a commercial plugin from cloudbees that will allow you to do this with 
VMware.

A single job can have multiple VMs assigned on which you can run commands like 
starting your server and then starting your client.

There are possibly other ways but I have not used them.

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