JetBrains / teamcity-deployer-plugin

Deployer plugin for TeamCity CI server
http://confluence.jetbrains.net/display/TW/Deployer+plugin
Apache License 2.0
39 stars 29 forks source link

[Request] SCP Download #109

Open xetra11 opened 5 years ago

xetra11 commented 5 years ago

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!

nskvortsov commented 5 years ago

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

xetra11 commented 5 years ago

hm na will try that thx!

droidmonkey commented 4 years ago

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.

phoerious commented 4 years ago

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.