Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-17058

Publish over SSH plugin XML configuration cannot be read on jenkins start up.

      The XML configuration for the publish over ssh plugin fails to load in the current (1.504) version of jenkins and the plugin (1.10). On my system, the file is located at: /var/lib/jenkins/jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin.xml.

      It seems to be an issue with xstream conversion. Here's the relevant bit of the stack trace (full trace is at the bottom).

      Caused by: com.thoughtworks.xstream.converters.ConversionException: object is not an instance of declaring class : object is not an instance of declaring class
      ---- Debugging information ----
      message : object is not an instance of declaring class
      cause-exception : java.lang.IllegalArgumentException
      cause-message : object is not an instance of declaring class
      class : jenkins.plugins.publish_over_ssh.BapSshHostConfiguration
      required-type : jenkins.plugins.publish_over_ssh.BapSshHostConfiguration
      converter-type : hudson.util.RobustReflectionConverter
      path : /jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin$Descriptor/hostConfigurations/jenkins.plugins.publish_over_ssh.BapSshHostConfiguration
      line number : 25
      class[1] : hudson.util.CopyOnWriteList
      converter-type[1] : hudson.util.XStream2$AssociatedConverterImpl
      class[2] : jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin$Descriptor
      version : null
      -------------------------------

      Jenkins still starts, however the configured ssh hosts do not show up. The configuration element that ends on line 25 is:

      <jenkins.plugins.publish_over_ssh.BapSshHostConfiguration>
      <name>[redacted]</name>
      <hostname>[redacted]</hostname>
      <username>[redacted]</username>
      <secretPassword>[redacted]</secretPassword>
      <remoteRootDir>[redacted]</remoteRootDir>
      <port>22</port>
      <commonConfig class="jenkins.plugins.publish_over_ssh.BapSshCommonConfiguration">
      <secretPassphrase>[redacted]</secretPassphrase>
      <key></key>
      <keyPath>.ssh/id_rsa</keyPath>
      <disableAllExec>false</disableAllExec>
      </commonConfig>
      <timeout>300000</timeout>
      <overrideKey>false</overrideKey>
      <disableExec>false</disableExec>
      <keyInfo>
      <secretPassphrase>[redacted]</secretPassphrase>
      <key></key>
      <keyPath></keyPath>
      </keyInfo>
      </jenkins.plugins.publish_over_ssh.BapSshHostConfiguration>

      The full stack trace:

      WARNING: Failed to load /var/lib/jenkins/jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin.xml
      hudson.util.IOException2: Unable to read /var/lib/jenkins/jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin.xml
      at hudson.XmlFile.unmarshal(XmlFile.java:164)
      at hudson.model.Descriptor.load(Descriptor.java:806)
      at jenkins.plugins.publish_over_ssh.descriptor.BapSshPublisherPluginDescriptor.<init>(BapSshPublisherPluginDescriptor.java:68)
      at jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin$Descriptor.<init>(BapSshPublisherPlugin.java:81)
      at jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin$Descriptor$$FastClassByGuice$$c0ccaf36.newInstance(<generated>)
      at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
      at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:61)
      at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:108)
      at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:87)
      at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:259)
      at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
      at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
      at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      at com.google.inject.Scopes$1$1.get(Scopes.java:59)
      at hudson.ExtensionFinder$GuiceFinder$4$1.get(ExtensionFinder.java:422)
      at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
      at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
      at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011)
      at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
      at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:391)
      at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:382)
      at hudson.ExtensionFinder._find(ExtensionFinder.java:151)
      at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:318)
      at hudson.ExtensionList.load(ExtensionList.java:295)
      at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248)
      at hudson.ExtensionList.iterator(ExtensionList.java:138)
      at jenkins.model.Jenkins.getDescriptorByType(Jenkins.java:1171)
      at hudson.plugins.copyartifact.BuildSelectorParameter.initAliases(BuildSelectorParameter.java:100)
      at hudson.plugins.copyartifact.CopyArtifactPlugin.postInitialize(CopyArtifactPlugin.java:35)
      at hudson.PluginManager$2$1$2.run(PluginManager.java:352)
      at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
      at jenkins.model.Jenkins$7.runTask(Jenkins.java:883)
      at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
      at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:679)
      Caused by: com.thoughtworks.xstream.converters.ConversionException: object is not an instance of declaring class : object is not an instance of declaring class
      ---- Debugging information ----
      message : object is not an instance of declaring class
      cause-exception : java.lang.IllegalArgumentException
      cause-message : object is not an instance of declaring class
      class : jenkins.plugins.publish_over_ssh.BapSshHostConfiguration
      required-type : jenkins.plugins.publish_over_ssh.BapSshHostConfiguration
      converter-type : hudson.util.RobustReflectionConverter
      path : /jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin$Descriptor/hostConfigurations/jenkins.plugins.publish_over_ssh.BapSshHostConfiguration
      line number : 25
      class[1] : hudson.util.CopyOnWriteList
      converter-type[1] : hudson.util.XStream2$AssociatedConverterImpl
      class[2] : jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin$Descriptor
      version : null
      -------------------------------
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
      at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
      at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
      at hudson.util.CopyOnWriteList$ConverterImpl.unmarshal(CopyOnWriteList.java:193)
      at hudson.util.CopyOnWriteList$ConverterImpl.unmarshal(CopyOnWriteList.java:172)
      at hudson.util.XStream2$AssociatedConverterImpl.unmarshal(XStream2.java:337)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:333)
      at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:275)
      at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:222)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
      at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
      at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1061)
      at hudson.util.XStream2.unmarshal(XStream2.java:109)
      at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1045)
      at hudson.XmlFile.unmarshal(XmlFile.java:160)
      ... 37 more
      Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callReadResolve(SerializationMethodInvoker.java:66)
      at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:223)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      ... 60 more

          [JENKINS-17058] Publish over SSH plugin XML configuration cannot be read on jenkins start up.

          bap added a comment -

          Someone has just reported an issue about data persistence in the Publish Over CIFS plugin when using Jenkins 1.504.

          The po-cifs plugin has not changed for a very long time, so I suspect that something in core in 1.504 (and maybe earlier) is broken

          bap added a comment - Someone has just reported an issue about data persistence in the Publish Over CIFS plugin when using Jenkins 1.504. The po-cifs plugin has not changed for a very long time, so I suspect that something in core in 1.504 (and maybe earlier) is broken

          Nick Pannu added a comment - - edited

          We upgraded Jenkins from v1.502 to v1.504 at the same time as upgrading the plugin. Everything was fine with v1.502 so it is a very recent issue.

          We will try downgrading Jenkins and see if that works with v1.10 of the plugin.

          [EDIT] Downgrade to Jenkins v1.502 worked. Still using v1.10 of the plugin.

          Nick Pannu added a comment - - edited We upgraded Jenkins from v1.502 to v1.504 at the same time as upgrading the plugin. Everything was fine with v1.502 so it is a very recent issue. We will try downgrading Jenkins and see if that works with v1.10 of the plugin. [EDIT] Downgrade to Jenkins v1.502 worked. Still using v1.10 of the plugin.

          @bap thanks for responding. I'll try v1.10.

          Maybe the recent upgrade in jenkins core to xstream 1.4.4 is the culprit?

          https://issues.jenkins-ci.org/browse/JENKINS-12542

          Thomas Van Doren added a comment - @bap thanks for responding. I'll try v1.10. Maybe the recent upgrade in jenkins core to xstream 1.4.4 is the culprit? https://issues.jenkins-ci.org/browse/JENKINS-12542

          I'm wondering how this issue is not In Progress. Kinda disturbing regression, guys!

          François Dumont added a comment - I'm wondering how this issue is not In Progress. Kinda disturbing regression, guys!

          I have resolved the problem for Publish-Over-FTP (I'm sure, the solution for Publish-Over-SSH is the same).
          You have to override the method readResolve() in all inherited classes, for Publish-Over-FTP this are:

          • BapFtpHostConfiguration
          • BapFtpPublisherPlugin$Descriptor

          The reason is, that the reflection-mechanism looks for the method readResolve() in the inherited class (see above) and after this in the base-class. The reflection-invoke of the method fails, if the method is declared in the base-class and call over the derived class.
          Can I check in the patched classes on GitHub?

          Alexander Fischer added a comment - I have resolved the problem for Publish-Over-FTP (I'm sure, the solution for Publish-Over-SSH is the same). You have to override the method readResolve() in all inherited classes, for Publish-Over-FTP this are: BapFtpHostConfiguration BapFtpPublisherPlugin$Descriptor The reason is, that the reflection-mechanism looks for the method readResolve() in the inherited class (see above) and after this in the base-class. The reflection-invoke of the method fails, if the method is declared in the base-class and call over the derived class. Can I check in the patched classes on GitHub?

          The patched sources for resolving the bug...

          Alexander Fischer added a comment - The patched sources for resolving the bug...

          I can not commit to GitHub, so we have to wait on "bap"...
          I use my own patched version successful in my Jenkins 1.510

          Alexander Fischer added a comment - I can not commit to GitHub, so we have to wait on "bap"... I use my own patched version successful in my Jenkins 1.510

          I tried patching both the SSH and FTP plugins with the readResolve override and running 1.510. I saw a bunch of CannotResolveClassExceptions and the plugin did not load its configuration.

          com.thoughtworks.xstream.mapper.CannotResolveClassException: jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin
          ...

          Here's the patch I used, which is the patch @afischer attached: https://github.com/jenkinsci/publish-over-ssh-plugin/pull/3

          Thomas Van Doren added a comment - I tried patching both the SSH and FTP plugins with the readResolve override and running 1.510. I saw a bunch of CannotResolveClassExceptions and the plugin did not load its configuration. com.thoughtworks.xstream.mapper.CannotResolveClassException: jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin ... Here's the patch I used, which is the patch @afischer attached: https://github.com/jenkinsci/publish-over-ssh-plugin/pull/3

          It's possible that I didn't correctly package the plugin, though.

          Thomas Van Doren added a comment - It's possible that I didn't correctly package the plugin, though.

          I have patched and tested only the publish-over-ftp. But I also modified the pom-files for building against the Jenkins API (not anymore the Hudson-API). I can attach the modified pom for the Maven-build.
          Can I create my own GitHub-repository and publish the patched plugin (sources, pom, ...) until bap has checked and merged my modifications? I will also patch publish-over-ssh and check again.

          Alexander Fischer added a comment - I have patched and tested only the publish-over-ftp. But I also modified the pom-files for building against the Jenkins API (not anymore the Hudson-API). I can attach the modified pom for the Maven-build. Can I create my own GitHub-repository and publish the patched plugin (sources, pom, ...) until bap has checked and merged my modifications? I will also patch publish-over-ssh and check again.

          I have added a complete patched version of the plugins "publish-over" (base) and "publish-over-ssh" on GitHub:

          Can you test it?

          Alexander Fischer added a comment - I have added a complete patched version of the plugins "publish-over" (base) and "publish-over-ssh" on GitHub: https://github.com/afischer211/publish-over-plugin https://github.com/afischer211/publish-over-ssh-plugin Can you test it?

          bap added a comment -

          Thanks for looking int this Alex,

          Unfortunately I am still unable to reproduce this issue - and I have tried upgrading from many versions of the plugins at the same time as upgrading Jenkins to 1.504 accross all of cifs, ftp and ssh. I suspect that the problem is JVM version specific.

          I'd like to identify exactly where the problem lies, and and only fix there (i.e I do not really want to pull the minimum required version of jenkins to a version that is even newer than the current LTC RC)

          The issue could potentially be solved with a calculated serialVerUID - a readResolve method is not supposed to concern itself with any sub or supertypes (so another possible fix may be to return "this" from readResolve in the serialized class definition)

          I will be able to dedicate a large amount of time to this issue following this weekend.

          Can everyone with this problem please provide their os, version including architecture and the full details of the JVM that the jenkins master is using?

          bap added a comment - Thanks for looking int this Alex, Unfortunately I am still unable to reproduce this issue - and I have tried upgrading from many versions of the plugins at the same time as upgrading Jenkins to 1.504 accross all of cifs, ftp and ssh. I suspect that the problem is JVM version specific. I'd like to identify exactly where the problem lies, and and only fix there (i.e I do not really want to pull the minimum required version of jenkins to a version that is even newer than the current LTC RC) The issue could potentially be solved with a calculated serialVerUID - a readResolve method is not supposed to concern itself with any sub or supertypes (so another possible fix may be to return "this" from readResolve in the serialized class definition) I will be able to dedicate a large amount of time to this issue following this weekend. Can everyone with this problem please provide their os, version including architecture and the full details of the JVM that the jenkins master is using?

          I have the same issue if I upgrade Jenkins from 1.502 to the latest version.

          Debian 2.6.39-3 x86_64
          java 1.6.0_26

          Maxime Ménard added a comment - I have the same issue if I upgrade Jenkins from 1.502 to the latest version. Debian 2.6.39-3 x86_64 java 1.6.0_26

          Axel Bodemer added a comment -

          We have the same Issue.

          • Red Hat Enterprise Linux Server release 5.9 (Tikanga)
          • Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
          • tomcat5.x86_64 5.5.23-0jpp.38.el5_9
          • Jenkins 1.501
          • Publish Over SSH 1.10

          Axel Bodemer added a comment - We have the same Issue. Red Hat Enterprise Linux Server release 5.9 (Tikanga) Java(TM) SE Runtime Environment (build 1.6.0_33-b03) tomcat5.x86_64 5.5.23-0jpp.38.el5_9 Jenkins 1.501 Publish Over SSH 1.10

          $ lsb_release -a
          No LSB modules are available.
          Distributor ID: Ubuntu
          Description: Ubuntu 12.04.2 LTS
          Release: 12.04
          Codename: precise

          $ uname -a
          Linux jenkins 3.2.0-36-virtual #57-Ubuntu SMP Tue Jan 8 22:04:49 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

          $ java -version
          java version "1.6.0_27"
          OpenJDK Runtime Environment (IcedTea6 1.12.3) (6b27-1.12.3-0ubuntu1~12.04)
          OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

          $ dpkg -s jenkins
          Package: jenkins
          Status: install ok installed
          Priority: extra
          Section: devel
          Installed-Size: 47976
          Maintainer: Kohsuke Kawaguchi <kk@kohsuke.org>
          Architecture: all
          Version: 1.501
          Replaces: hudson
          Depends: daemon, adduser, psmisc, java2-runtime
          Conflicts: hudson
          Conffiles:
          /etc/default/jenkins 2157fbd24d94c06f741ba93ab49364c1
          /etc/init.d/jenkins adca5f379add743ef0d73f2718392ecf
          /etc/logrotate.d/jenkins 9ccf66fc7b41f580d6c701e42d1bb794
          Description: Continuous integration system written in Java
          Jenkins is an extensible continuous engine written in Java.
          Homepage: https://jenkins-ci.org/

          Thomas Van Doren added a comment - $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.2 LTS Release: 12.04 Codename: precise $ uname -a Linux jenkins 3.2.0-36-virtual #57-Ubuntu SMP Tue Jan 8 22:04:49 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux $ java -version java version "1.6.0_27" OpenJDK Runtime Environment (IcedTea6 1.12.3) (6b27-1.12.3-0ubuntu1~12.04) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode) $ dpkg -s jenkins Package: jenkins Status: install ok installed Priority: extra Section: devel Installed-Size: 47976 Maintainer: Kohsuke Kawaguchi <kk@kohsuke.org> Architecture: all Version: 1.501 Replaces: hudson Depends: daemon, adduser, psmisc, java2-runtime Conflicts: hudson Conffiles: /etc/default/jenkins 2157fbd24d94c06f741ba93ab49364c1 /etc/init.d/jenkins adca5f379add743ef0d73f2718392ecf /etc/logrotate.d/jenkins 9ccf66fc7b41f580d6c701e42d1bb794 Description: Continuous integration system written in Java Jenkins is an extensible continuous engine written in Java. Homepage: https://jenkins-ci.org/

          Nick Pannu added a comment -

          $ java -version
          java version "1.6.0_24"

          $ uname -a
          Linux 2.6.32-279.22.1.el6.x86_64 #1 SMP Wed Feb 6 03:10:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
          $ cat /etc/issue
          CentOS release 6.3 (Final)
          Kernel \r on an \m

          Jenkins v1.502 and Plugin v1.10 works, upgrading Jenkins to v1.504 caused the issue. Haven't tried any of the newer versions of Jenkins.

          Nick Pannu added a comment - $ java -version java version "1.6.0_24" $ uname -a Linux 2.6.32-279.22.1.el6.x86_64 #1 SMP Wed Feb 6 03:10:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux $ cat /etc/issue CentOS release 6.3 (Final) Kernel \r on an \m Jenkins v1.502 and Plugin v1.10 works, upgrading Jenkins to v1.504 caused the issue. Haven't tried any of the newer versions of Jenkins.

          Magnus Lundin added a comment -

          os.name=Windows Server 2012
          os.arch=amd64
          java.version=1.7.0_09

          Magnus Lundin added a comment - os.name=Windows Server 2012 os.arch=amd64 java.version=1.7.0_09

          Peter Lamberg added a comment - - edited

          java version "1.7.0_05"
          Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
          Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
          Ubuntu 11.10
          Linux jenkins 3.0.0-12-server #20-Ubuntu SMP Fri Oct 7 16:36:30 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
          Jenkins ver. 1.512

          Publish Over SSH
          1.10

          Peter Lamberg added a comment - - edited java version "1.7.0_05" Java(TM) SE Runtime Environment (build 1.7.0_05-b06) Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode) Ubuntu 11.10 Linux jenkins 3.0.0-12-server #20-Ubuntu SMP Fri Oct 7 16:36:30 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux Jenkins ver. 1.512 Publish Over SSH 1.10

          Jason Swager added a comment -

          Just updated to Jenkins ver 1.513. Then went to re-add the Publish over SSH sites like I typically do after a Jenkins restart. I was a bit surprised to find the SSH information still present. All I had done was update to Jenkins 1.513, update the Maven and ScriptTrigger plugins. Suspect that something in the new Jenkins eliminates this issue?

          Jason Swager added a comment - Just updated to Jenkins ver 1.513. Then went to re-add the Publish over SSH sites like I typically do after a Jenkins restart. I was a bit surprised to find the SSH information still present. All I had done was update to Jenkins 1.513, update the Maven and ScriptTrigger plugins. Suspect that something in the new Jenkins eliminates this issue?

          Still KO for us with 1.513 (same Jenkins instance than Maxime Ménard).

          Sylvain Veyrié added a comment - Still KO for us with 1.513 (same Jenkins instance than Maxime Ménard).

          Peter Lamberg added a comment -

          Any word on official fix for this?

          Alexander Fischers github versions worked for us.

          Perhaps the support for older versions of Jenkins / Hudson could/should be sacrificed?

          Thank You!

          Peter Lamberg added a comment - Any word on official fix for this? Alexander Fischers github versions worked for us. Perhaps the support for older versions of Jenkins / Hudson could/should be sacrificed? Thank You!

          This continues to be a painful issue. Are the code fixes mentioned in the thread not candidates for release?

          Preston Gilchrist added a comment - This continues to be a painful issue. Are the code fixes mentioned in the thread not candidates for release?

          Jan Krupka added a comment -

          indeed

          Our environment
          jenkins 1.521
          Publish Over SSH 1.10
          java version "1.6.0_27"
          OpenJDK Runtime Environment (IcedTea6 1.12.5) (6b27-1.12.5-0ubuntu0.12.04.1)
          OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
          Ubuntu 12.04.2 LTS

          Jan Krupka added a comment - indeed Our environment jenkins 1.521 Publish Over SSH 1.10 java version "1.6.0_27" OpenJDK Runtime Environment (IcedTea6 1.12.5) (6b27-1.12.5-0ubuntu0.12.04.1) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode) Ubuntu 12.04.2 LTS

          Grant Furick added a comment -

          awt.toolkit sun.awt.windows.WToolkit
          catalina.base e:\Tomcat 7.0
          catalina.home e:\Tomcat 7.0
          catalina.useNaming true
          common.loader ${catalina.base}/lib,${catalina.base}/lib/.jar,${catalina.home}/lib,${catalina.home}/lib/.jar
          file.encoding Cp1252
          file.encoding.pkg sun.io
          file.separator \
          java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
          java.awt.printerjob sun.awt.windows.WPrinterJob
          java.class.path e:\Tomcat 7.0\bin\bootstrap.jar;e:\Tomcat 7.0\bin\tomcat-juli.jar
          java.class.version 50.0
          java.endorsed.dirs e:\Tomcat 7.0\endorsed
          java.ext.dirs C:\Program Files\Java\jre6\lib\ext;C:\Windows\Sun\Java\lib\ext
          java.home C:\Program Files\Java\jre6
          java.io.tmpdir e:\Tomcat 7.0\temp
          java.library.path e:\Tomcat 7.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Ruby193\bin;C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\IBM\WebSphere\AppServer\java;C:\usr\local\wbin;C:\Perl\bin;C:\apache-ant-1.7.1\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\cvsnt;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Windows Imaging\;C:\Program Files\Git\cmd
          java.naming.factory.initial org.apache.naming.java.javaURLContextFactory
          java.naming.factory.url.pkgs org.apache.naming
          java.runtime.name Java(TM) SE Runtime Environment
          java.runtime.version 1.6.0_20-b02
          java.specification.name Java Platform API Specification
          java.specification.vendor Sun Microsystems Inc.
          java.specification.version 1.6
          java.util.logging.config.file e:\Tomcat 7.0\conf\logging.properties
          java.util.logging.manager org.apache.juli.ClassLoaderLogManager
          java.vendor Sun Microsystems Inc.
          java.vendor.url http://java.sun.com/
          java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi
          java.version 1.6.0_20
          java.vm.info mixed mode, sharing
          java.vm.name Java HotSpot(TM) Client VM
          java.vm.specification.name Java Virtual Machine Specification
          java.vm.specification.vendor Sun Microsystems Inc.
          java.vm.specification.version 1.0
          java.vm.vendor Sun Microsystems Inc.
          java.vm.version 16.3-b01
          line.separator
          mail.smtp.sendpartial true
          mail.smtps.sendpartial true
          org.apache.catalina.startup.ContextConfig.jarsToSkip
          org.apache.catalina.startup.TldConfig.jarsToSkip
          os.arch x86
          os.name Windows Vista
          os.version 6.0
          package.access sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
          package.definition sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
          path.separator ;
          server.loader
          shared.loader
          sun.arch.data.model 32
          sun.boot.class.path C:\Program Files\Java\jre6\lib\resources.jar;C:\Program Files\Java\jre6\lib\rt.jar;C:\Program Files\Java\jre6\lib\sunrsasign.jar;C:\Program Files\Java\jre6\lib\jsse.jar;C:\Program Files\Java\jre6\lib\jce.jar;C:\Program Files\Java\jre6\lib\charsets.jar;C:\Program Files\Java\jre6\classes
          sun.boot.library.path C:\Program Files\Java\jre6\bin
          sun.cpu.endian little
          sun.cpu.isalist
          sun.desktop windows
          sun.io.unicode.encoding UnicodeLittle
          sun.jnu.encoding Cp1252
          sun.management.compiler HotSpot Client Compiler
          sun.os.patch.level Service Pack 2
          svnkit.http.methods Digest,Basic,NTLM,Negotiate
          svnkit.ssh2.persistent false
          svnkit.symlinks false
          tomcat.util.buf.StringCache.byte.enabled true
          tomcat.util.scan.DefaultJarScanner.jarsToSkip bootstrap.jar,commons-daemon.jar,tomcat-juli.jar,annotations-api.jar,el-api.jar,jsp-api.jar,servlet-api.jar,catalina.jar,catalina-ant.jar,catalina-ha.jar,catalina-tribes.jar,jasper.jar,jasper-el.jar,ecj-.jar,tomcat-api.jar,tomcat-util.jar,tomcat-coyote.jar,tomcat-dbcp.jar,tomcat-jni.jar,tomcat-spdy.jar,tomcat-i18n-en.jar,tomcat-i18n-es.jar,tomcat-i18n-fr.jar,tomcat-i18n-ja.jar,tomcat-juli-adapters.jar,catalina-jmx-remote.jar,catalina-ws.jar,tomcat-jdbc.jar,tools.jar,commons-beanutils.jar,commons-codec*.jar,commons-collections*.jar,commons-dbcp*.jar,commons-digester*.jar,commons-fileupload*.jar,commons-httpclient*.jar,commons-io*.jar,commons-lang*.jar,commons-logging*.jar,commons-math*.jar,commons-pool*.jar,jstl.jar,geronimo-spec-jaxrpc*.jar,wsdl4j*.jar,ant.jar,ant-junit*.jar,aspectj*.jar,jmx.jar,h2*.jar,hibernate*.jar,httpclient*.jar,jmx-tools.jar,jta*.jar,log4j*.jar,mail*.jar,slf4j*.jar,xercesImpl.jar,xmlParserAPIs.jar,xml-apis.jar,junit.jar,junit-*.jar,ant-launcher.jar
          user.country US
          user.dir e:\Tomcat 7.0
          user.home C:\
          user.language en
          user.name WDCVMHUDS01$
          user.timezone America/New_York
          user.variant
          Environment Variables

          Name ↓
          Value
          ALLUSERSPROFILE C:\ProgramData
          APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
          COMPUTERNAME WDCVMHUDS01
          ComSpec C:\Windows\system32\cmd.exe
          CommonProgramFiles C:\Program Files\Common Files
          DFSTRACINGON FALSE
          FP_NO_HOST_CHECK NO
          HUDSON_HOME E:\hudson
          JAVA_HOME C:\Program Files\Java\jdk1.6.0_17
          LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
          NUMBER_OF_PROCESSORS 2
          OS Windows_NT
          PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.RB;.RBW
          PROCESSOR_ARCHITECTURE x86
          PROCESSOR_IDENTIFIER x86 Family 16 Model 8 Stepping 0, AuthenticAMD
          PROCESSOR_LEVEL 16
          PROCESSOR_REVISION 0800
          PSModulePath C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
          PUBLIC C:\Users\Public
          Path C:\Ruby193\bin;C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\IBM\WebSphere\AppServer\java;C:\usr\local\wbin;C:\Perl\bin;C:\apache-ant-1.7.1\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\cvsnt;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Windows Imaging\;C:\Program Files\Git\cmd
          ProgramData C:\ProgramData
          ProgramFiles C:\Program Files
          SystemDrive C:
          SystemRoot C:\Windows
          TEMP C:\Windows\TEMP
          TMP C:\Windows\TEMP
          TRACE_FORMAT_SEARCH_PATH \\NTREL202.ntdev.corp.microsoft.com\4F18C3A5-CA09-4DBD-B6FC-219FDD4C6BE0\TraceFormat
          UATDATA C:\Windows\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77
          USERDOMAIN NA
          USERNAME WDCVMHUDS01$
          USERPROFILE C:\Windows\system32\config\systemprofile
          WORKSPACE c:\autodeploy
          XNAGSShared C:\Program Files\Common Files\Microsoft Shared\XNA\
          XNAGSv4 C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\
          windir C:\Windows
          Plugins

          Name ↓
          Version
          Enabled
          Pinned
          mailer 1.5 true true
          external-monitor-job 1.1 true false
          ldap 1.5 true true
          pam-auth 1.1 true true
          ant 1.2 true true
          javadoc 1.1 true true
          backup 1.6.1 true false
          deploy 1.9 true false
          deploy-websphere 1.0 true false
          ftppublisher 1.2 true false
          hudson-pview-plugin 1.8 true false
          iphoneview 0.2 true false
          mask-passwords 2.7.2 true false
          publish-over-cifs 0.2 true false
          token-macro 1.8.1 true false
          run-condition 0.10 true false
          cvs 2.9 true true
          scis-ad 1.2 true false
          scp 1.8 true false
          selenium-aes 0.5 true false
          seleniumhq 0.4 true false
          seleniumhtmlreport 0.94 true false
          subversion 1.50 true true
          svn-release-mgr 1.2 true false
          was-builder 1.6.1 true false
          webtestpresenter 0.23 true false
          active-directory 1.33 true false
          maven-plugin 1.509.2 true false
          build-publisher 1.17 true false
          cloverphp 0.3.3 true false
          conditional-buildstep 1.3 true false
          confluence-publisher 1.8 true false
          credentials 1.4 true true
          email-ext 2.30.2 true false
          git-client 1.0.7 true false
          git 1.4.0 true false
          github-api 1.42 true false
          github 1.7 true false
          greenballs 1.12 true false
          htmlpublisher 1.2 true false
          jira 1.37 true false
          msbuild 1.18 true false
          publish-over-ftp 1.9 true false
          publish-over-ssh 1.10 true false
          ssh-credentials 0.4 true true
          ssh-slaves 0.27 true true
          svn-tag 1.16 true false
          testlink 3.5 true false
          translation

          Grant Furick added a comment - awt.toolkit sun.awt.windows.WToolkit catalina.base e:\Tomcat 7.0 catalina.home e:\Tomcat 7.0 catalina.useNaming true common.loader ${catalina.base}/lib,${catalina.base}/lib/ .jar,${catalina.home}/lib,${catalina.home}/lib/ .jar file.encoding Cp1252 file.encoding.pkg sun.io file.separator \ java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment java.awt.printerjob sun.awt.windows.WPrinterJob java.class.path e:\Tomcat 7.0\bin\bootstrap.jar;e:\Tomcat 7.0\bin\tomcat-juli.jar java.class.version 50.0 java.endorsed.dirs e:\Tomcat 7.0\endorsed java.ext.dirs C:\Program Files\Java\jre6\lib\ext;C:\Windows\Sun\Java\lib\ext java.home C:\Program Files\Java\jre6 java.io.tmpdir e:\Tomcat 7.0\temp java.library.path e:\Tomcat 7.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Ruby193\bin;C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\IBM\WebSphere\AppServer\java;C:\usr\local\wbin;C:\Perl\bin;C:\apache-ant-1.7.1\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\cvsnt;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Windows Imaging\;C:\Program Files\Git\cmd java.naming.factory.initial org.apache.naming.java.javaURLContextFactory java.naming.factory.url.pkgs org.apache.naming java.runtime.name Java(TM) SE Runtime Environment java.runtime.version 1.6.0_20-b02 java.specification.name Java Platform API Specification java.specification.vendor Sun Microsystems Inc. java.specification.version 1.6 java.util.logging.config.file e:\Tomcat 7.0\conf\logging.properties java.util.logging.manager org.apache.juli.ClassLoaderLogManager java.vendor Sun Microsystems Inc. java.vendor.url http://java.sun.com/ java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi java.version 1.6.0_20 java.vm.info mixed mode, sharing java.vm.name Java HotSpot(TM) Client VM java.vm.specification.name Java Virtual Machine Specification java.vm.specification.vendor Sun Microsystems Inc. java.vm.specification.version 1.0 java.vm.vendor Sun Microsystems Inc. java.vm.version 16.3-b01 line.separator mail.smtp.sendpartial true mail.smtps.sendpartial true org.apache.catalina.startup.ContextConfig.jarsToSkip org.apache.catalina.startup.TldConfig.jarsToSkip os.arch x86 os.name Windows Vista os.version 6.0 package.access sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper. package.definition sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper. path.separator ; server.loader shared.loader sun.arch.data.model 32 sun.boot.class.path C:\Program Files\Java\jre6\lib\resources.jar;C:\Program Files\Java\jre6\lib\rt.jar;C:\Program Files\Java\jre6\lib\sunrsasign.jar;C:\Program Files\Java\jre6\lib\jsse.jar;C:\Program Files\Java\jre6\lib\jce.jar;C:\Program Files\Java\jre6\lib\charsets.jar;C:\Program Files\Java\jre6\classes sun.boot.library.path C:\Program Files\Java\jre6\bin sun.cpu.endian little sun.cpu.isalist sun.desktop windows sun.io.unicode.encoding UnicodeLittle sun.jnu.encoding Cp1252 sun.management.compiler HotSpot Client Compiler sun.os.patch.level Service Pack 2 svnkit.http.methods Digest,Basic,NTLM,Negotiate svnkit.ssh2.persistent false svnkit.symlinks false tomcat.util.buf.StringCache.byte.enabled true tomcat.util.scan.DefaultJarScanner.jarsToSkip bootstrap.jar,commons-daemon.jar,tomcat-juli.jar,annotations-api.jar,el-api.jar,jsp-api.jar,servlet-api.jar,catalina.jar,catalina-ant.jar,catalina-ha.jar,catalina-tribes.jar,jasper.jar,jasper-el.jar,ecj- .jar,tomcat-api.jar,tomcat-util.jar,tomcat-coyote.jar,tomcat-dbcp.jar,tomcat-jni.jar,tomcat-spdy.jar,tomcat-i18n-en.jar,tomcat-i18n-es.jar,tomcat-i18n-fr.jar,tomcat-i18n-ja.jar,tomcat-juli-adapters.jar,catalina-jmx-remote.jar,catalina-ws.jar,tomcat-jdbc.jar,tools.jar,commons-beanutils .jar,commons-codec*.jar,commons-collections*.jar,commons-dbcp*.jar,commons-digester*.jar,commons-fileupload*.jar,commons-httpclient*.jar,commons-io*.jar,commons-lang*.jar,commons-logging*.jar,commons-math*.jar,commons-pool*.jar,jstl.jar,geronimo-spec-jaxrpc*.jar,wsdl4j*.jar,ant.jar,ant-junit*.jar,aspectj*.jar,jmx.jar,h2*.jar,hibernate*.jar,httpclient*.jar,jmx-tools.jar,jta*.jar,log4j*.jar,mail*.jar,slf4j*.jar,xercesImpl.jar,xmlParserAPIs.jar,xml-apis.jar,junit.jar,junit-*.jar,ant-launcher.jar user.country US user.dir e:\Tomcat 7.0 user.home C:\ user.language en user.name WDCVMHUDS01$ user.timezone America/New_York user.variant Environment Variables Name ↓ Value ALLUSERSPROFILE C:\ProgramData APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming COMPUTERNAME WDCVMHUDS01 ComSpec C:\Windows\system32\cmd.exe CommonProgramFiles C:\Program Files\Common Files DFSTRACINGON FALSE FP_NO_HOST_CHECK NO HUDSON_HOME E:\hudson JAVA_HOME C:\Program Files\Java\jdk1.6.0_17 LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local NUMBER_OF_PROCESSORS 2 OS Windows_NT PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.RB;.RBW PROCESSOR_ARCHITECTURE x86 PROCESSOR_IDENTIFIER x86 Family 16 Model 8 Stepping 0, AuthenticAMD PROCESSOR_LEVEL 16 PROCESSOR_REVISION 0800 PSModulePath C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ PUBLIC C:\Users\Public Path C:\Ruby193\bin;C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\IBM\WebSphere\AppServer\java;C:\usr\local\wbin;C:\Perl\bin;C:\apache-ant-1.7.1\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\cvsnt;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Windows Imaging\;C:\Program Files\Git\cmd ProgramData C:\ProgramData ProgramFiles C:\Program Files SystemDrive C: SystemRoot C:\Windows TEMP C:\Windows\TEMP TMP C:\Windows\TEMP TRACE_FORMAT_SEARCH_PATH \\NTREL202.ntdev.corp.microsoft.com\4F18C3A5-CA09-4DBD-B6FC-219FDD4C6BE0\TraceFormat UATDATA C:\Windows\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77 USERDOMAIN NA USERNAME WDCVMHUDS01$ USERPROFILE C:\Windows\system32\config\systemprofile WORKSPACE c:\autodeploy XNAGSShared C:\Program Files\Common Files\Microsoft Shared\XNA\ XNAGSv4 C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\ windir C:\Windows Plugins Name ↓ Version Enabled Pinned mailer 1.5 true true external-monitor-job 1.1 true false ldap 1.5 true true pam-auth 1.1 true true ant 1.2 true true javadoc 1.1 true true backup 1.6.1 true false deploy 1.9 true false deploy-websphere 1.0 true false ftppublisher 1.2 true false hudson-pview-plugin 1.8 true false iphoneview 0.2 true false mask-passwords 2.7.2 true false publish-over-cifs 0.2 true false token-macro 1.8.1 true false run-condition 0.10 true false cvs 2.9 true true scis-ad 1.2 true false scp 1.8 true false selenium-aes 0.5 true false seleniumhq 0.4 true false seleniumhtmlreport 0.94 true false subversion 1.50 true true svn-release-mgr 1.2 true false was-builder 1.6.1 true false webtestpresenter 0.23 true false active-directory 1.33 true false maven-plugin 1.509.2 true false build-publisher 1.17 true false cloverphp 0.3.3 true false conditional-buildstep 1.3 true false confluence-publisher 1.8 true false credentials 1.4 true true email-ext 2.30.2 true false git-client 1.0.7 true false git 1.4.0 true false github-api 1.42 true false github 1.7 true false greenballs 1.12 true false htmlpublisher 1.2 true false jira 1.37 true false msbuild 1.18 true false publish-over-ftp 1.9 true false publish-over-ssh 1.10 true false ssh-credentials 0.4 true true ssh-slaves 0.27 true true svn-tag 1.16 true false testlink 3.5 true false translation

          We have the same problem (SSH sites configuration and credentials disappear upon Jenkins restart).
          Windows Server 2008R2
          JVM: 1.7.0_21-b11
          Jenkins: 1.509.2 (LTS)
          publish-over-ssh: 1.10
          ssh-credentials: 0.4

          Brett Delle Grazie added a comment - We have the same problem (SSH sites configuration and credentials disappear upon Jenkins restart). Windows Server 2008R2 JVM: 1.7.0_21-b11 Jenkins: 1.509.2 (LTS) publish-over-ssh: 1.10 ssh-credentials: 0.4

          Bryce Schober added a comment -

          I had exactly this problem as well.
          I tried downgrading the plugin to 1.9, which didn't help.
          Then I tried upgrading from 1.509.2 LTS to 1.524 latest, and that didn't help.
          Then I downgraded back to 1.509.2 LTS w/ the 1.9 plugin, and that seems to be ok now...

          Bryce Schober added a comment - I had exactly this problem as well. I tried downgrading the plugin to 1.9, which didn't help. Then I tried upgrading from 1.509.2 LTS to 1.524 latest, and that didn't help. Then I downgraded back to 1.509.2 LTS w/ the 1.9 plugin, and that seems to be ok now...

          Achim Hensel added a comment -

          Same Problem:

          • Jenkins ver. 1.525 (Release: 1.1, Buildtime: Mon Jul 29 20:49:41 2013)
          • PlugIn-Versions 1.7 and 1.10
          • OS: CentOS release 6.2
          • JVM: java version "1.7.0_25" OpenJDK Runtime Environment (rhel-2.3.10.4.el6_4-i386)
          • Jenkins installed and updated by "YUM"; Repo: http://pkg.jenkins-ci.org/redhat/

          Looks like Class-Loader-Issue.

          If you cannot reproduce it, maybe it is related to: Other Plugin; Ancient un-Migrated config-XML; Classloader-isolation issues of the runtime-Container

          Achim Hensel added a comment - Same Problem: Jenkins ver. 1.525 (Release: 1.1, Buildtime: Mon Jul 29 20:49:41 2013) PlugIn-Versions 1.7 and 1.10 OS: CentOS release 6.2 JVM: java version "1.7.0_25" OpenJDK Runtime Environment (rhel-2.3.10.4.el6_4-i386) Jenkins installed and updated by "YUM"; Repo: http://pkg.jenkins-ci.org/redhat/ Looks like Class-Loader-Issue. If you cannot reproduce it, maybe it is related to: Other Plugin; Ancient un-Migrated config-XML; Classloader-isolation issues of the runtime-Container

          Jan Krotký added a comment -

          If it helps with reproducing the issue, I've started using Jenkins from version 1.520 so the configs were newly created. No older configs were present. Only thing that may be older than this version was a sample php project from jenkins-php.org which doesn't use the publish over ssh plugin.

          Jan Krotký added a comment - If it helps with reproducing the issue, I've started using Jenkins from version 1.520 so the configs were newly created. No older configs were present. Only thing that may be older than this version was a sample php project from jenkins-php.org which doesn't use the publish over ssh plugin.

          Sylvain Veyrié added a comment - - edited

          Still stucked on 1.502 due to this issue (last tested against 1.526).

          Note that "Publish over FTP" config does work for us.

          To summarize JVM on previous comments:

          • 6u20 (32b?)
          • 6u24 (64b?)
          • 6u26 (64b)
          • 6u27 (64b)
          • 6u33b3 (64b)
          • 7u5 (64b)
          • 7u9 (64b?)
          • 7u21 (? )
          • 7u25 (32b?)

          This bug is on Linux (RH-based and Debian based), Windows (2008 server, Vista, 7).

          @bap is'nt it possible to start from Alexander Fischer's patch? I undestand you want to reproduce it first, but this patch does not seem error-prone.

          Sylvain Veyrié added a comment - - edited Still stucked on 1.502 due to this issue (last tested against 1.526). Note that "Publish over FTP" config does work for us. To summarize JVM on previous comments: 6u20 (32b?) 6u24 (64b?) 6u26 (64b) 6u27 (64b) 6u33b3 (64b) 7u5 (64b) 7u9 (64b?) 7u21 (? ) 7u25 (32b?) This bug is on Linux (RH-based and Debian based), Windows (2008 server, Vista, 7). @bap is'nt it possible to start from Alexander Fischer's patch? I undestand you want to reproduce it first, but this patch does not seem error-prone.

          Is @bap still working on this plugin? We have several folks for whom this has become an persistent nagging issue. What do we need to do to get a functional update checked in and built???

          Preston Gilchrist added a comment - Is @bap still working on this plugin? We have several folks for whom this has become an persistent nagging issue. What do we need to do to get a functional update checked in and built???

          I have retaken Alexander's patch, forking Thomas Van Doren repo that included it. I corrected the build failure (only an artifact version problem), and now it works on our Jenkins installation, updated to 1.527.

          It's here: https://github.com/key-consulting/publish-over-ssh-plugin/tree/JENKINS-17058

          Could someone build(1) and test it one more time, to be sure?

          I will then launch another pull request.

          (1) cannot be built with JDK7, given Jenkins API version.

          Sylvain Veyrié added a comment - I have retaken Alexander's patch, forking Thomas Van Doren repo that included it. I corrected the build failure (only an artifact version problem), and now it works on our Jenkins installation, updated to 1.527. It's here: https://github.com/key-consulting/publish-over-ssh-plugin/tree/JENKINS-17058 Could someone build(1) and test it one more time, to be sure? I will then launch another pull request. (1) cannot be built with JDK7, given Jenkins API version.

          I tested Alexander's patch and it also works in my environment Jenkins 1.527 installation. I used JDK6

          Alexander Birkle added a comment - I tested Alexander's patch and it also works in my environment Jenkins 1.527 installation. I used JDK6

          Here the pull request: https://github.com/jenkinsci/publish-over-ssh-plugin/pull/4

          The Jenkins build has failed, due to the lack of compat with JDK 1.7 I pointed.

          Sylvain Veyrié added a comment - Here the pull request: https://github.com/jenkinsci/publish-over-ssh-plugin/pull/4 The Jenkins build has failed, due to the lack of compat with JDK 1.7 I pointed.

          Jeremy Lyman added a comment -

          I'd like to add that it is now October 15th and it still has not been fixed.

          Jeremy Lyman added a comment - I'd like to add that it is now October 15th and it still has not been fixed.

          Sergey Pankov added a comment -

          Hello there. I was able to reproduce this bug. It happens when I add at least one server to both publish over ftp & ssh settings, then ssh config can't be read, but ftp is ok. Ssh plugin alone works well. Tested on jenkins 1.533 clean install.

          So, if I delete all ftp servers, newly added ssh servers could be loaded after restart.

          Hope this info will be helpful, and would be glad if someone could confirm it.

          Sergey Pankov added a comment - Hello there. I was able to reproduce this bug. It happens when I add at least one server to both publish over ftp & ssh settings, then ssh config can't be read, but ftp is ok. Ssh plugin alone works well. Tested on jenkins 1.533 clean install. So, if I delete all ftp servers, newly added ssh servers could be loaded after restart. Hope this info will be helpful, and would be glad if someone could confirm it.

          John Doe (Inactive) added a comment - - edited

          we were using that plugin several months without problems. we were only using the "publish over ssh" plugin. a few days ago we installed the "publish over cifs" plugin and now we are running into that problem! if I disable the "cifs" plugin all is fine! maybe this helps...

          @Sylvain Veyrié: I tested your pull request and it works!

          John Doe (Inactive) added a comment - - edited we were using that plugin several months without problems. we were only using the "publish over ssh" plugin. a few days ago we installed the "publish over cifs" plugin and now we are running into that problem! if I disable the "cifs" plugin all is fine! maybe this helps... @Sylvain Veyrié: I tested your pull request and it works!

          Luke Last added a comment -

          I can confirm that when I uninstalled both the publish over FTP and CIFS plugins that is resolved this issue. This is with Jenkins 1.536 on Ubuntu Java 7.

          Luke Last added a comment - I can confirm that when I uninstalled both the publish over FTP and CIFS plugins that is resolved this issue. This is with Jenkins 1.536 on Ubuntu Java 7.

          I'm so glad this is In Progress... For so many months I've had to re-enter all my SSH configs after each restart. I know all the paswords by heart now.

          François Dumont added a comment - I'm so glad this is In Progress... For so many months I've had to re-enter all my SSH configs after each restart. I know all the paswords by heart now.

          Now that we know the way to reproduce this issue is anyone working on a permanent fix?

          Preston Gilchrist added a comment - Now that we know the way to reproduce this issue is anyone working on a permanent fix?

          There does appear to be a pending pull request: JENKINS-17885

          Mark Ottaviani added a comment - There does appear to be a pending pull request: JENKINS-17885

          Email from bap:

          Hi Mark,

          I no longer use Jenkins and don't have time to maintain the publish over plugins.

          Feel free to merge, test and release as you see fit.

          Regards,
          Bap.

          Mark Ottaviani added a comment - Email from bap: Hi Mark, I no longer use Jenkins and don't have time to maintain the publish over plugins. Feel free to merge, test and release as you see fit. Regards, Bap.

          Code changed in jenkins
          User: Thomas Van Doren
          Path:
          src/main/java/jenkins/plugins/publish_over_ssh/BapSshHostConfiguration.java
          src/main/java/jenkins/plugins/publish_over_ssh/BapSshPublisherPlugin.java
          http://jenkins-ci.org/commit/publish-over-ssh-plugin/549ebd579841e5a7989aa1df30339d5367fdae3f
          Log:
          JENKINS-17058 Add Alexander Fisher's patches from comments.

          https://issues.jenkins-ci.org/browse/JENKINS-17058?focusedCommentId=177125&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-177125

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Thomas Van Doren Path: src/main/java/jenkins/plugins/publish_over_ssh/BapSshHostConfiguration.java src/main/java/jenkins/plugins/publish_over_ssh/BapSshPublisherPlugin.java http://jenkins-ci.org/commit/publish-over-ssh-plugin/549ebd579841e5a7989aa1df30339d5367fdae3f Log: JENKINS-17058 Add Alexander Fisher's patches from comments. https://issues.jenkins-ci.org/browse/JENKINS-17058?focusedCommentId=177125&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-177125

          Code changed in jenkins
          User: Alex Earl
          Path:
          pom.xml
          src/main/java/jenkins/plugins/publish_over_ssh/BapSshHostConfiguration.java
          src/main/java/jenkins/plugins/publish_over_ssh/BapSshPublisherPlugin.java
          http://jenkins-ci.org/commit/publish-over-ssh-plugin/dbc15b7ae03b4b140e074295a6c243a4781842ec
          Log:
          Merge pull request #4 from key-consulting/master

          JENKINS-17058 add readResolve on BapSshHostConfiguration, fix dep

          Compare: https://github.com/jenkinsci/publish-over-ssh-plugin/compare/c591bae51812...dbc15b7ae03b

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alex Earl Path: pom.xml src/main/java/jenkins/plugins/publish_over_ssh/BapSshHostConfiguration.java src/main/java/jenkins/plugins/publish_over_ssh/BapSshPublisherPlugin.java http://jenkins-ci.org/commit/publish-over-ssh-plugin/dbc15b7ae03b4b140e074295a6c243a4781842ec Log: Merge pull request #4 from key-consulting/master JENKINS-17058 add readResolve on BapSshHostConfiguration, fix dep Compare: https://github.com/jenkinsci/publish-over-ssh-plugin/compare/c591bae51812...dbc15b7ae03b

          What do we need to do to get on the maintainers list?

          Preston Gilchrist added a comment - What do we need to do to get on the maintainers list?

          Hello,

          I hve fixed the problem earlier this year. See my Jira-comments on April of 2013.
          You can look into my sources on Github.

          I don't know, how to propagate my patches to the official version of the plugins (pull-request?). So I use my own patched version since April without any problems until now with Jenkins 1.544.

          Alexander Fischer added a comment - Hello, I hve fixed the problem earlier this year. See my Jira-comments on April of 2013. You can look into my sources on Github. https://github.com/afischer211/publish-over-plugin https://github.com/afischer211/publish-over-ssh-plugin I don't know, how to propagate my patches to the official version of the plugins (pull-request?). So I use my own patched version since April without any problems until now with Jenkins 1.544.

          @Preston, I suggest e-mailing on this thread in the jenkins-dev mailing list: https://groups.google.com/forum/#!topic/jenkinsci-dev/7vEwarVHbgc

          Slide merged the change today and is supposed to be pushing out a release, but he's still looking for a new official maintainer.

          Mark Ottaviani added a comment - @Preston, I suggest e-mailing on this thread in the jenkins-dev mailing list: https://groups.google.com/forum/#!topic/jenkinsci-dev/7vEwarVHbgc Slide merged the change today and is supposed to be pushing out a release, but he's still looking for a new official maintainer.

          Code changed in jenkins
          User: Alexander Fischer
          Path:
          .gitignore
          pom.xml
          src/test/java/jenkins/plugins/publish_over/BPBuildInfoTest.java
          http://jenkins-ci.org/commit/publish-over-plugin/a9d9ab51505ce83b3a6d507465e0b2bb9b72f558
          Log:
          fix for jenkins-bug #JENKINS-17058

          modified unit-test for resolving relative paths;
          updated pom - integrate plugin-API for Jenkins1.510 and adapt for
          Eclipse m2e

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alexander Fischer Path: .gitignore pom.xml src/test/java/jenkins/plugins/publish_over/BPBuildInfoTest.java http://jenkins-ci.org/commit/publish-over-plugin/a9d9ab51505ce83b3a6d507465e0b2bb9b72f558 Log: fix for jenkins-bug # JENKINS-17058 modified unit-test for resolving relative paths; updated pom - integrate plugin-API for Jenkins1.510 and adapt for Eclipse m2e

          Code changed in jenkins
          User: Alexander Fischer
          Path:
          src/test/java/jenkins/plugins/publish_over/BPHostConfigurationTest.java
          src/test/java/jenkins/plugins/publish_over/helper/BPHostConfigurationFactory.java
          http://jenkins-ci.org/commit/publish-over-plugin/962aace22881b26507a091e7397b79a77aaa4927
          Log:
          fix for jenkins-bug #JENKINS-17058

          overriding method readResolve() from base-class BPHostConfiguration for
          resoving Reflection-problems with XStream

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alexander Fischer Path: src/test/java/jenkins/plugins/publish_over/BPHostConfigurationTest.java src/test/java/jenkins/plugins/publish_over/helper/BPHostConfigurationFactory.java http://jenkins-ci.org/commit/publish-over-plugin/962aace22881b26507a091e7397b79a77aaa4927 Log: fix for jenkins-bug # JENKINS-17058 overriding method readResolve() from base-class BPHostConfiguration for resoving Reflection-problems with XStream

          Fixed in version 1.11 of the Publish over SSH plugin.

          Mark Ottaviani added a comment - Fixed in version 1.11 of the Publish over SSH plugin.

          David Turner added a comment -

          Hi All, For clarity, can someone please answer this q'n?

          We're still on Jenkins 1.509.2 LTS, Windows exe, bundled 1.6 Java RE (like bdellegrazie above) and have this problem.

          I am browsing the GitHub forks trying to work out the necessary dependencies to obtain a compatible 'fix' for Publish Over SSH without updating Java RE or Jenkins core.

          Will the 'fixed' SSH 1.11 work on 1.509 LTS and J6RE despite the apparent new baseline?

          Ref from the MANIFEST.MFs:

          Plugin-Version: 1.10
          Hudson-Version: 1.388
          Build-Jdk: 1.6.0_32
          Depends on Publish-Over: 0.17

          Plugin-Version: 1.11
          Hudson-Version: 1.532.1
          Jenkins-Version: 1.532.1
          Build-Jdk: 1.7.0_45
          Depends on Publish-Over: 0.18

          David Turner added a comment - Hi All, For clarity, can someone please answer this q'n? We're still on Jenkins 1.509.2 LTS, Windows exe, bundled 1.6 Java RE (like bdellegrazie above) and have this problem. I am browsing the GitHub forks trying to work out the necessary dependencies to obtain a compatible 'fix' for Publish Over SSH without updating Java RE or Jenkins core. Will the 'fixed' SSH 1.11 work on 1.509 LTS and J6RE despite the apparent new baseline? Ref from the MANIFEST.MFs: Plugin-Version: 1.10 Hudson-Version: 1.388 Build-Jdk: 1.6.0_32 Depends on Publish-Over: 0.17 Plugin-Version: 1.11 Hudson-Version: 1.532.1 Jenkins-Version: 1.532.1 Build-Jdk: 1.7.0_45 Depends on Publish-Over: 0.18

          I came in with a similar issue. I installed a brand new Jenkins and brand new set of plugins. I attempted to add a server in the manage jenkins configuration area and the values would disappear over and over again. I am essentially copying another jenkins master to test something. So, I went to the existing jenkins master and copied 

          jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin.xml

           from the old master to the new one. The values show up in the dashboard and I can modify it and it works, etc. 

          The Jenkins is version 2.104, the plugin is 1.18 The underlying OS is Centos 7.2

           

          Something is preventing Jenkins from creating this file. I don't know what to stack trace. Not a java programmer. I figure I'd throw this out there if you want a workaround. 

          Elaine Richards added a comment - I came in with a similar issue. I installed a brand new Jenkins and brand new set of plugins. I attempted to add a server in the manage jenkins configuration area and the values would disappear over and over again. I am essentially copying another jenkins master to test something. So, I went to the existing jenkins master and copied  jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin.xml  from the old master to the new one. The values show up in the dashboard and I can modify it and it works, etc.  The Jenkins is version 2.104, the plugin is 1.18 The underlying OS is Centos 7.2   Something is preventing Jenkins from creating this file. I don't know what to stack trace. Not a java programmer. I figure I'd throw this out there if you want a workaround. 

          For your information, all publish-over-ssh component type JENKINS issues related to the Publish Over SSH plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues

          Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues/204
          And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-17058%22

          (Note: this is an automated bulk comment)

          Gavin McDonald added a comment - For your information, all publish-over-ssh component type JENKINS issues related to the Publish Over SSH plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues/204 And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-17058%22 (Note: this is an automated bulk comment)

            thomasvandoren Thomas Van Doren
            thomasvandoren Thomas Van Doren
            Votes:
            30 Vote for this issue
            Watchers:
            46 Start watching this issue

              Created:
              Updated:
              Resolved: