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

Wrong baseDirectory when using publish over ssh via promotion

    XMLWordPrintable

Details

    Description

      After we updated our jenkins to 2.190.1 we are not able to to use the pubish over ssh feature within a manually approved promotion. Even after updating to 2.190.2 the issue exists.

      The issue is that the publish-over.BPPlugin resolves in line 115 the path from the promtion job which is different from the real build path. In my case it is '/opt/jenkins/jobs/frontend/promotions/Deployment server/builds/11/archive' but it should be '/opt/jenkins/jobs/frontend/builds/61/archive'.

      The job log of a failed publish over ssh is:

      Running as SYSTEM
      Building in workspace /opt/jenkins/workspace/frontend
      Promoting frontend #61
      SSH: Connecting from host [jenkins]
      SSH: Connecting with configuration [server] ...
      SSH: Disconnecting configuration [server] ...
      ERROR: Exception when publishing, exception message [The base directory does not exist. If this is a promotion, have you "Archived the artifacts"?]

       

      Do we use a deprecated configuration?

      Attachments

        Activity

          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/85
          And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-60020%22

          (Note: this is an automated bulk comment)

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

          Closing ticket, please use the corresponding Github Issue as linked above.

          gmcdonald Gavin McDonald added a comment - Closing ticket, please use the corresponding Github Issue as linked above.

          People

            oleg_nenashev Oleg Nenashev
            saskiabikle Saskia Bikle
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: