2
votes

I've setup a Bamboo specs repository to store build and deployment plans. As part of the deployment plan, I'm using the SCP and SSH tasks to copy artifacts and execute commands on a remote server. What is the recommended way to store the SSH key?

  • I don't want to store it in the spec, because this would mean that I'm committing credentials to source control.
  • If I upload the key using the UI, it gets removed when I update the plan in the specs repo.
  • I could use a global variable (which I'm not entirely sure would work), but it seems global variables are available to all plans, which is a security risk.
1

1 Answers

2
votes

Since version 6.3 Bamboo supports usage of Shared credentials for SSH/SCP tasks. You can store your SSH keys in Shared credential and then reuse it at deployment tasks