Re: Getting an exception when using Job import plugin

2017-04-12 Thread Christopher Orr
Sounds like https://issues.jenkins-ci.org/browse/JENKINS-40577


On Tue, 11 Apr 2017, at 00:21, Prasu S wrote:
> I'm trying to import jobs from Jenkins 1.658 to Jenkins 2.45 . I receive 
> the below error. Can anyone please help.
> 
> java.lang.NoClassDefFoundError: 
> com/google/inject/internal/guava/base/$Preconditions
> at 
> org.jenkins.ci.plugins.jobimport.CredentialsUtils$NullSafeCredentials.(CredentialsUtils.java:50)
> at 
> org.jenkins.ci.plugins.jobimport.CredentialsUtils.getCredentials(CredentialsUtils.java:29)
> at 
> org.jenkins.ci.plugins.jobimport.JobImportAction.doQuery(JobImportAction.java:168)
> at sun.reflect.GeneratedMethodAccessor342.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:335)
> at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:175)
> at 
> org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:108)
> at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:124)
> at 
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
> Caused: javax.servlet.ServletException
> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
> at org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:362)
> 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:790)
> at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
> at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
> at
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
> at 
> com.smartcodeltd.jenkinsci.plugin.assetbundler.filters.LessCSS.doFilter(LessCSS.java:47)
> at
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
> at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125)
> at
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
> at javax.servlet.FilterChain$doFilter.call(Unknown Source)
> at 
> com.ceilfors.jenkins.plugins.jiratrigger.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.groovy:29)
> at
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
> at 
> hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:95)
> at
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
> at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:126)
> at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:86)
> at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> 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:171)
> at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> at 
> 

Getting an exception when using Job import plugin

2017-04-10 Thread Prasu S
I'm trying to import jobs from Jenkins 1.658 to Jenkins 2.45 . I receive 
the below error. Can anyone please help.

java.lang.NoClassDefFoundError: 
com/google/inject/internal/guava/base/$Preconditions
at 
org.jenkins.ci.plugins.jobimport.CredentialsUtils$NullSafeCredentials.(CredentialsUtils.java:50)
at 
org.jenkins.ci.plugins.jobimport.CredentialsUtils.getCredentials(CredentialsUtils.java:29)
at 
org.jenkins.ci.plugins.jobimport.JobImportAction.doQuery(JobImportAction.java:168)
at sun.reflect.GeneratedMethodAccessor342.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:335)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:175)
at 
org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:108)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:124)
at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
Caused: javax.servlet.ServletException
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:362)
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:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
at 
com.smartcodeltd.jenkinsci.plugin.assetbundler.filters.LessCSS.doFilter(LessCSS.java:47)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
at javax.servlet.FilterChain$doFilter.call(Unknown Source)
at 
com.ceilfors.jenkins.plugins.jiratrigger.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.groovy:29)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
at 
hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:95)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:126)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:86)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
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:171)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at 
org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at 
hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at 

how to copy the jenkins job from one jenkins instance to another jenkins instance job import plugin is not working for me

2016-11-15 Thread Victor Martinez
You can find some details in StackOverflow

http://stackoverflow.com/questions/9038748/how-do-i-copy-a-job-from-one-instance-to-another

Cheers 

-- 
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/75ddcae2-6c81-4cea-93cc-ac6fa051f76d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


how to copy the jenkins job from one jenkins instance to another jenkins instance job import plugin is not working for me

2016-11-15 Thread venkat bumi
how to copy the jenkins job from one jenkins instance to another jenkins 
instance job import plugin is not working for me

-- 
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/d1f24586-da21-4b0c-9df5-ea1fa4b3b935%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Job Import Plugin

2016-07-29 Thread vivek . dhrhel


Hi Guys,

I am using Gearman to run the jobs to multiple jenkins master but both 
dashboards are different since jobs are different on both of them . I used 
jenkins-job-builder to keep them in sync but it's tough to generate yaml 
for complex jobs( specially for newcomers ) .

I used jobs import plugin which is awesome for importing jobs .

*How can i sync the jobs between both jenkins instances using job import 
plugin API ?*
*For an API, could you please assist me with some set of examples ?*

I will use those APIs on both jenkins instances & use cron jobs to pull & 
push jobs on both the servers to keep both of them in sync probably every 2 
or 3 minutes .

Thanks in advance for your help !

-- 
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/bf089861-e432-4f76-8c24-88ab79b7023a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Connection failure in Job Import Plugin

2015-07-29 Thread Ujjwal Varshney
I am getting same while importing a job from one jenkin to another.

FAILED - Connection refused: connect

Let me know if you need anything more!!!

Regards,
Ujjwal

On Wednesday, December 10, 2014 at 7:59:18 PM UTC+5:30, rginga wrote:

  I am trying to import jobs from one Jenkins server A running 1.550 into 
 another B running 1.565.2.

  

 A has no authorization configured and B has matrix authorization based on 
 Active Directory.

  

 I can see the job list on A from the job import plugin on B, but each time 
 I try to import a job I get:

  

 FAILED - Connection refused: connect

  

 Nothing from either logs gives me any idea of what to do differently. I 
 have tried specifying a user and an API token. Same result.

  

 Need help please

  

 *Dick Ginga, Informatics RD*

 *PerkinElmer Inc. *
 *| For the Better **HUMAN HEALTH **|* *ENVIRONMENTAL HEALTH*
 940 Winter Street, Waltham MA 02451

  

 *dick.ginga**@perkinelmer.com javascript:*  

 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bfec6b09-e0cf-4fa4-ba32-9b9f7109f5d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Connection failure in Job Import Plugin

2014-12-10 Thread Ginga, Dick
I am trying to import jobs from one Jenkins server A running 1.550 into another 
B running 1.565.2.

A has no authorization configured and B has matrix authorization based on 
Active Directory.

I can see the job list on A from the job import plugin on B, but each time I 
try to import a job I get:

FAILED - Connection refused: connect

Nothing from either logs gives me any idea of what to do differently. I have 
tried specifying a user and an API token. Same result.

Need help please

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

dick.gi...@perkinelmer.commailto:ed.cof...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4D3F8F%40AMERMBX02.PERKINELMER.NET.
For more options, visit https://groups.google.com/d/optout.


Re: getting Exception in Job Import plugin

2013-01-19 Thread bballantyne
I am seeing the same issue:

Status Code: 500Exception: java.lang.NullPointerException

I am using Jenkins_1.493 to Jenkins_1.493 and JobImportPlugin_v1.0. Both 
Jenkins are running on Linux with java-1_6_0-ibm-1.6.0

Also, after returning from the error, the 'Job Import Plugin' display shows 
'New null' in the top left where it should show 'New Job'
If I go back to the default page, then return to the 'Job Import Plugin' 
page, the status of the import shows:

FAILED - Server returned HTTP response code: 403 for URL: 
http://remote-jenkins.com:8080/job/remoteJob//config.xml



Re: getting Exception in Job Import plugin

2013-01-11 Thread Clemens
Hi, which Jenkins Version are you using ?


getting Exception in Job Import plugin

2013-01-10 Thread Radha Mohan Maheshwari
javax.servlet.ServletException: java.lang.NullPointerException
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:615)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658)
at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:384)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:487)
at org.kohsuke.stapler.Stapler.service(Stapler.java:164)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at 
hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at 
org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at 
hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
at 
winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:215)
at winstone.RequestHandlerThread.run(RequestHandlerThread.java:138)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at 
org.jenkins.ci.plugins.jobimport.JobImportAction.doImport(JobImportAction.java:126)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)
at 
org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573)
... 38 more

-- 
Radha Mohan Maheshwari


RE: Job Import Plugin query doesn't return a list

2012-08-22 Thread Lars Nordin
-Original Message-
From: Jesse Farinacci

Do a manual test to see that you can fetch the XML that the plugin will 
attempt. So, whatever you put in for your remote URL, you should append 
/api/xml and see what the result is. Also make sure that you are not logged in 
to the remote system.
---

Thanks for help.

I browsed the URL of job and I am able to get an XML document but it is not 
complete - the build steps are not populated. I presume that this is because I 
am not logged into the old Jenkins server.


Re: Job Import Plugin query doesn't return a list

2012-08-20 Thread Jesse Farinacci
Greetings,

On Fri, Aug 17, 2012 at 10:32 AM, Lars Nordin lnor...@internap.com wrote:
 I go to the job-import page, put in the URL of my current Jenkins server and 
 hit query and no list is produced.
 The curious thing is that in the upper right, the New Job icon text is 
 changed to New null.
 I've tried different URLs ( like https://server and 
 https://server/view/something ) but all produce the same result.

Do a manual test to see that you can fetch the XML that the plugin
will attempt. So, whatever you put in for your remote URL, you should
append /api/xml and see what the result is. Also make sure that you
are not logged in to the remote system.

-Jesse

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