teamcity-deployer-plugin icon indicating copy to clipboard operation
teamcity-deployer-plugin copied to clipboard

[Request] SCP Download

Open xetra11 opened this issue 5 years ago • 4 comments

I'd love to see a Download option. I tried to get it done with Command Line but I fail hard cause I can't access the Uploaded SSH Keys. Would be cool to have this integrated!

xetra11 avatar Aug 27 '19 16:08 xetra11

Thank you for the request. As a workaround, did you try using SSH Agent build feature? https://www.jetbrains.com/help/teamcity/ssh-agent.html

nskvortsov avatar Aug 27 '19 17:08 nskvortsov

hm na will try that thx!

xetra11 avatar Aug 27 '19 17:08 xetra11

This is a glaring missing feature. There is no way to use SCP from within TeamCity to download artifacts built on a remote server. Here is our use case:

  1. TeamCity executes arbitrary build commands on a remote Mac using SSH Exec
  2. Artifacts are packaged on the remote Mac
  3. TeamCity executes SCP download from remote Mac to TeamCity Agent
  4. TeamCity publishes pulled artifacts

Right now we are using Amazon S3 public bucket as an intermediary... which is less than ideal. There are many other options but that was the easiest. In our current configuration Step 3 from above is the Mac pushing artifacts to S3 (authed) then TeamCity accessing the S3 bucket (public, no auth) to download the artifacts.

droidmonkey avatar Dec 14 '19 15:12 droidmonkey

An easier workaround is to use the SSHAgent build feature and then run scp manually as a "Command Line" Build step. Seems to work pretty well, although I'd prefer a dedicated build step for this.

phoerious avatar Dec 21 '19 13:12 phoerious