We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e4ea662 + 0e9215a commit b99dcdbCopy full SHA for b99dcdb
build/teamcity-support.sh
@@ -12,7 +12,8 @@ source "$root/build/teamcity-common-support.sh"
12
source "$root/build/teamcity/util.sh"
13
14
remove_files_on_exit() {
15
- rm -f ~/.ssh/id_rsa{,.pub}
+ # Remove the ssh key on exit only on TeamCity agents, not on the local machine.
16
+ rm -f ~agent/.ssh/id_rsa{,.pub}
17
common_support_remove_files_on_exit
18
}
19
trap remove_files_on_exit EXIT
0 commit comments