• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • None
    • Centos 7.4
      Jenkins ver. 2.109

      after upgrade plugin to 1.19 version settings Remove prefix and Remote directory are not saving.
      Downgrade to version 1.18 helpful.

          [JENKINS-49770] publish-over-ssh not saving settings

          Alex Earl added a comment -

          Thanks for the report, I'll take a look.

          Alex Earl added a comment - Thanks for the report, I'll take a look.

          Alex Al added a comment -

          this broke all related jobs for me 

          was forced to downgrade to version 1.18.

          Alex Al added a comment - this broke all related jobs for me  was forced to downgrade to version 1.18.

          Same here, just completed the bug report and found this bug report

          In case more info is needed you can find it below.

           

          ------------------------------------------------------------------------------------------------------------------------------------

          Environment

          ------------------------------------------------------------------------------------------------------------------------------------

          user@sname:~# cat /etc/*release
          DISTRIB_ID=Ubuntu
          DISTRIB_RELEASE=16.04
          DISTRIB_CODENAME=xenial
          DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"
          NAME="Ubuntu"
          VERSION="16.04.3 LTS (Xenial Xerus)"
          ID=ubuntu
          ID_LIKE=debian
          PRETTY_NAME="Ubuntu 16.04.3 LTS"
          VERSION_ID="16.04"
          HOME_URL="http://www.ubuntu.com/"
          SUPPORT_URL="http://help.ubuntu.com/"
          BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
          VERSION_CODENAME=xenial
          UBUNTU_CODENAME=xenial

          user@sname:~# uname -a
          Linux sname 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

          user@sname:~# dpkg --list | grep -i java
          ii  ca-certificates-java             20160321ubuntu1                            all          Common CA certificates (JKS keystore)
          ii  default-jre-headless             2:1.8-56ubuntu2                            amd64        Standard Java or Java compatible Runtime (headless)
          ii  java-common                      0.56ubuntu2                                all          Base package for Java runtimes
          ii  javascript-common                11                                         all          Base support for JavaScript library packages
          ii  libjs-openlayers                 2.13.1+ds2-2                               all          JavaScript library for displaying map data in web browsers
          ii  openjdk-8-jre:amd64              8u151-b12-0ubuntu0.16.04.2                 amd64        OpenJDK Java runtime, using Hotspot JIT
          ii  openjdk-8-jre-headless:amd64     8u151-b12-0ubuntu0.16.04.2                 amd64        OpenJDK Java runtime, using Hotspot JIT (headless)

          user@sname:~# dpkg --list | grep -i openj
          ii  openjdk-8-jdk:amd64              8u151-b12-0ubuntu0.16.04.2                 amd64        OpenJDK Development Kit (JDK)
          ii  openjdk-8-jdk-headless:amd64     8u151-b12-0ubuntu0.16.04.2                 amd64        OpenJDK Development Kit (JDK) (headless)
          ii  openjdk-8-jre:amd64              8u151-b12-0ubuntu0.16.04.2                 amd64        OpenJDK Java runtime, using Hotspot JIT
          ii  openjdk-8-jre-headless:amd64     8u151-b12-0ubuntu0.16.04.2                 amd64        OpenJDK Java runtime, using Hotspot JIT (headless)

          user@sname:~# dpkg --list | grep -i jenkins
          ii  jenkins                          2.89.4                                     all          Jenkins is an open source automation server which enables developers around the world to reliably automate  their development lifecycle processes of all kinds, including build, document, test, package, stage, deployment, static analysis and many more.

          Jenkins version 2.89.4
          Plugin Name: Publish Over SSH
          Plugin version: 1.19

           

          ------------------------------------------------------------------------------------------------------------------------------------

          Description

          ------------------------------------------------------------------------------------------------------------------------------------

          In a job (Send build artifacts over SSH -> SSH Publishers)

          In the Transfers section:
          'Remove prefix' or 'Remote directory' are not saved when apply or saved button is pressed.
          Tried from multiple browsers and it seems that that is not the problem.
          After downgrading the plug-in to version 1.18 the problem was solved.

           

          Also while this change was made on a job the 'Exec timeout (ms)' option was also lost and had to reset it back to 0 (from the 120000 default value). So this may be another parameter that is lost. Others may be affected.

          The problem was spot when the Remote directory stopped working.

          The weird thing is that only the new jobs are affected. The existing jobs don't have this problem while nobody does any changes to them.

           

          While looking the POST request made by the Jenkins web interface to the backend I saw that the parameters are sent, but the plug-in doesn't seem to read and apply them.

           

           

          Strajan Sebastian added a comment - Same here, just completed the bug report and found this bug report In case more info is needed you can find it below.   ------------------------------------------------------------------------------------------------------------------------------------ Environment ------------------------------------------------------------------------------------------------------------------------------------ user@sname:~# cat /etc/*release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS" NAME="Ubuntu" VERSION="16.04.3 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.3 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial user@sname:~# uname -a Linux sname 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux user@sname:~# dpkg --list | grep -i java ii  ca-certificates-java             20160321ubuntu1                            all          Common CA certificates (JKS keystore) ii  default-jre-headless             2:1.8-56ubuntu2                            amd64        Standard Java or Java compatible Runtime (headless) ii  java-common                      0.56ubuntu2                                all          Base package for Java runtimes ii  javascript-common                11                                         all          Base support for JavaScript library packages ii  libjs-openlayers                 2.13.1+ds2-2                               all          JavaScript library for displaying map data in web browsers ii  openjdk-8-jre:amd64              8u151-b12-0ubuntu0.16.04.2                 amd64        OpenJDK Java runtime, using Hotspot JIT ii  openjdk-8-jre-headless:amd64     8u151-b12-0ubuntu0.16.04.2                 amd64        OpenJDK Java runtime, using Hotspot JIT (headless) user@sname:~# dpkg --list | grep -i openj ii  openjdk-8-jdk:amd64              8u151-b12-0ubuntu0.16.04.2                 amd64        OpenJDK Development Kit (JDK) ii  openjdk-8-jdk-headless:amd64     8u151-b12-0ubuntu0.16.04.2                 amd64        OpenJDK Development Kit (JDK) (headless) ii  openjdk-8-jre:amd64              8u151-b12-0ubuntu0.16.04.2                 amd64        OpenJDK Java runtime, using Hotspot JIT ii  openjdk-8-jre-headless:amd64     8u151-b12-0ubuntu0.16.04.2                 amd64        OpenJDK Java runtime, using Hotspot JIT (headless) user@sname:~# dpkg --list | grep -i jenkins ii  jenkins                          2.89.4                                     all          Jenkins is an open source automation server which enables developers around the world to reliably automate  their development lifecycle processes of all kinds, including build, document, test, package, stage, deployment, static analysis and many more. Jenkins version 2.89.4 Plugin Name: Publish Over SSH Plugin version: 1.19   ------------------------------------------------------------------------------------------------------------------------------------ Description ------------------------------------------------------------------------------------------------------------------------------------ In a job (Send build artifacts over SSH -> SSH Publishers) In the Transfers section: 'Remove prefix' or 'Remote directory' are not saved when apply or saved button is pressed. Tried from multiple browsers and it seems that that is not the problem. After downgrading the plug-in to version 1.18 the problem was solved.   Also while this change was made on a job the 'Exec timeout (ms)' option was also lost and had to reset it back to 0 (from the 120000 default value). So this may be another parameter that is lost. Others may be affected. The problem was spot when the Remote directory stopped working. The weird thing is that only the new jobs are affected. The existing jobs don't have this problem while nobody does any changes to them.   While looking the POST request made by the Jenkins web interface to the backend I saw that the parameters are sent, but the plug-in doesn't seem to read and apply them.    

          Jon Stonis added a comment -

          I am having the same problem.  I downgraded to version 1.18, but the SSH section doesn't appear under manage jenkins -> configure system.  Hope this gets fixed soon.

          Jon Stonis added a comment - I am having the same problem.  I downgraded to version 1.18, but the SSH section doesn't appear under manage jenkins -> configure system.  Hope this gets fixed soon.

          Alex Earl added a comment -

          Ok, I'm pretty sure I know what the issue is. I hope to have a release tomorrow.

          Alex Earl added a comment - Ok, I'm pretty sure I know what the issue is. I hope to have a release tomorrow.

          Code changed in jenkins
          User: Alex Earl
          Path:
          src/main/java/jenkins/plugins/publish_over_ssh/BapSshTransfer.java
          http://jenkins-ci.org/commit/publish-over-ssh-plugin/81e80e924bf447dd785af75d2127b7ff207629e8
          Log:
          Fix JENKINS-49770

          Move to previous DataBoundConstructor because of publish-over constraints

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alex Earl Path: src/main/java/jenkins/plugins/publish_over_ssh/BapSshTransfer.java http://jenkins-ci.org/commit/publish-over-ssh-plugin/81e80e924bf447dd785af75d2127b7ff207629e8 Log: Fix JENKINS-49770 Move to previous DataBoundConstructor because of publish-over constraints

          Alex Earl added a comment -

          Fixed in 1.19.1

          Alex Earl added a comment - Fixed in 1.19.1

          Hello! I had the same issue as described in the ticket, after updating to 1.19.1 Remove prefix can be saved.

          Vadim Yeshchenko added a comment - Hello! I had the same issue as described in the ticket, after updating to 1.19.1 Remove prefix can be saved.

          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/109
          And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-49770%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/109 And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-49770%22 (Note: this is an automated bulk comment)

            slide_o_mix Alex Earl
            gemorroj Gemor Roj
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: