jenkinsci / publish-over-ssh-plugin

https://plugins.jenkins.io/publish-over-ssh/
117 stars 150 forks source link

Wrong baseDirectory when using publish-over-ssh via promotion #256

Open drvora opened 2 years ago

drvora commented 2 years ago

After Jenkins upgrade to latest LTS version (2.346.1) and plugin upgrade to latest version (1.24), we are seeing the issue. I can see builds are being archived properly. Anyone found fix or workaround for this issue? @gmcdonald @olamy

ERROR: Exception when publishing, exception message [The base directory does not exist. If this is a promotion, have you "Archived the artifacts"?]

Reproduction Steps - 1) Install Jenkins 2) Install these publish-over-ssh and promoted-builds plugins. 3) Create a freestyle job 4) Create a dummy file or use git repo to bring down some files. 5) Add post-build action -> Archive the Artifacts 6) Archive some file 7) Create a promotion. On the Job configuration page -> Promote Builds when... -> Promotion process -> Add Action to "Send build artifacts over SSH -> Add source file -> Add remote directory 8) Save, build and promote to see the error.

Originally posted by @drvora in https://github.com/jenkinsci/publish-over-ssh-plugin/issues/85#issuecomment-1180981732

drvora commented 2 years ago

Any input on this issue? We have a lots of jobs using this plugin.