How to make copy artifact plugin copy multiple artifact from jobs dynamically

2015-03-15 Thread Bala murugan
Hi All,

In jenkins, 
I have a situation, where i need to copy artifacts from multiple jobs and 
each time the number of jobs changes. Is there a way to use copy artifact 
plugin to copy from multiple workspaces which can be configurable..?

Appreciate your help.

Thanks
Bala

-- 
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/5ea562a1-8404-44ae-a2f1-f8aeda218838%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Apache authentication fails with Jenkins

2015-03-15 Thread Piotr Morgwai Kotarbinski
You have Proxy settings defined for  http://localhost:8080/jenkins* but 
then proxyPass for http://localhost:8080/. I'm not an apache expert, so I 
can't tell for sure, but it looks strange to me. I have Proxy settings 
defined just for *
you can see if it will help in your case.

Also I don't have ProxyPassReverse directives and it works: try to remove 
them.

Try also adding 'ProxyVia Off' directive.

Finally, I think it's at least more clear to put ProxyPass into Location 
tag like this:


  ProxyPass http://localhost:8080/ nocanon
  AuthType Basic
  ...



Another thing that may affect it is global security setting in jenkins: if 
you have it enabled then disable it and see if it helps to pass through 
apache's http basic auth.

Hope it will help.

Cheers!


On Tuesday, March 10, 2015 at 3:58:07 AM UTC+7, Tim Dunphy wrote:
>
> Hey all,
>
>  I've been able to create an apache VHOST that does a proxy pass to allow 
> Jenkins to work over port 443. However Apache authentication is failing. 
> Even with the login of test:test, you are continually prompted over and 
> over again and it will not let you in. There are no errors in the apache 
> logs that relate to this problem.
>
> 
> SSLEngine on
> SSLCipherSuite 
> ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
>
> SSLCertificateFile  /etc/pki/tls/certs/jenkins.crt
> SSLCertificateKeyFile   /etc/pki/tls/private/jenkins.key
>
> ServerName  "jenkins.somewhere.com"
>
> CustomLog   "/var/log/httpd/jenkins_ssl_log" combined
> ErrorLog"/var/log/httpd/jenkins_ssl_error_log"
>
> ProxyRequests Off
> ProxyPreserveHost On
> AllowEncodedSlashes NoDecode
>
> http://localhost:8080/jenkins*>
>Order deny,allow
>Allow from all
> 
>
> ProxyPass /  http://localhost:8080/ nocanon
> ProxyPassReverse  /  http://localhost:8080/
> ProxyPassReverse  /  http://jenkins.somewhere.com/
>
> 
>   AuthType Basic
>   AuthName "Jenkins Page"
>   AuthUserFile /opt/apache2/auth
>   Require valid-user
>
> 
>
>
> If I remove the Jenkins information from the VHOST, I can get a default site 
> working under ssl that has Apache authentication working. I can login to the 
> default site using test:test in this case.
>
> Can anyone point out what I am doing wrong in my vhost setup?
>
>
> Thanks
>
> Tim
>
>
>
>
>
>

-- 
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/2bb830ec-7a99-4dad-a0de-663e4ed48180%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Failure with Jenkins 1.602 and build pipeline plugin 1.4.6

2015-03-15 Thread David Resnick
I upgraded Jenkins and a number of plugins and got the below exception in 
Jenkins list view. After downgrading build pipeline plugin to 1.4.5, the 
problem ceased. 

Has anyone else encountered this problem? Does anyone have 1.602 and 1.4.6 
working together?

Thanks,
David

Stack trace

javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: 
jar:file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-1.602.jar!/hudson/model/View/index.jelly:42:43:
 
 org.apache.commons.jelly.JellyTagException: 
jar:file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-1.602.jar!/lib/hudson/projectView.jelly:67:24:
 
 java.lang.ClassCastException
at 
org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:117)
at 
org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:127)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:735)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)
at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:123)
at 
com.smartcodeltd.jenkinsci.plugin.assetbundler.filters.LessCSS.doFilter(LessCSS.java:46)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:120)
at 
hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:95)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:120)
at 
hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:120)
at 
net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:198)
at 
net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:176)
at 
net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:85)
at 
org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:99)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:120)
at 
hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:114)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at 
hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
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:67)
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.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at 
org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at 
hudson.util.CharacterEncodingFil

Re: ssh credentials id

2015-03-15 Thread Piotr Morgwai Kotarbiński
Never mind: found the reason myself: new version of ssh credentials plugin 
needs to be released to pick-up the changes mentioned in the bug: 
https://issues.jenkins-ci.org/browse/JENKINS-26099?focusedCommentId=223705


On Sunday, March 15, 2015 at 9:12:23 PM UTC+7, Piotr Morgwai Kotarbiński 
wrote:
>
> Hello all,
> Does anyone know how can I configure id for ssh credentials? For 
> username+password type credentials if I click 'Advanced' then I can set an 
> id, however I can't find nothing similar for ssh.
> The comment in the https://issues.jenkins-ci.org/browse/JENKINS-26099 
> dated January 15th states that code is already there waiting to be 
> released. Jenkins version 1.602 was released in March, so I guess it should 
> contain the code in question...
>
> 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/7d759d54-bdce-4931-874f-4e188c9c64a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


ssh credentials id

2015-03-15 Thread Piotr Morgwai Kotarbiński
Hello all,
Does anyone know how can I configure id for ssh credentials? For 
username+password type credentials if I click 'Advanced' then I can set an 
id, however I can't find nothing similar for ssh.
The comment in the https://issues.jenkins-ci.org/browse/JENKINS-26099 dated 
January 15th states that code is already there waiting to be released. 
Jenkins version 1.602 was released in March, so I guess it should contain 
the code in question...

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/e2b1f16d-88d4-4362-9aa1-0cd274720c00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: /queue/item regression?

2015-03-15 Thread Piotr Morgwai Kotarbiński
it's a known bug:
https://issues.jenkins-ci.org/browse/JENKINS-27256
there's a link to a plugin which helps to work around the issue until fix 
is released.

Cheers!


On Sunday, March 15, 2015 at 5:00:44 AM UTC+7, Keith Thornhill wrote:
>
> starting a build returns a Location header with a path pointing to 
> /queue/item/NUM/. following up with a request to /queue/item/NUM/api/json 
> used to return a struct which could be polled to discover the build number 
> once it starts.  it now returns a 404. 
>
> is this a purposeful API change or a regression? in either case, it seems 
> that we have lost the ability to reliably track jobs after they have been 
> queued via the api.
>
> last known working version: 1.598
> using: 1.602
>

-- 
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/68f94d16-e9d2-4293-a763-8e5faa458dfa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.