Krzysztof Wolny
Krzysztof Wolny

Reputation: 11086

TeamCity SSH-Exec Build step with password from parameter

I have my build with SSH-Exec Build step (or SSH deployer), which requires username and password in its configuration to connect.

The problem I faced is that username can be provided by a parameter (so I can ask user when triggering build for his username) but I cannot do the same with password (it is masked and parameters reference is not supported in this field).

How can I configure a SSH-Exec Build step so password is taken from parameter?

(I'm aware of other then password auth methods, but I like explicitly ask the one who runs it for password to confirm he is in charge to run it).

Upvotes: 1

Views: 2386

Answers (1)

SunshinyDoyle
SunshinyDoyle

Reputation: 3584

You can enter a password parameter into the password field to use a parameter. It still masks the value so it feels a little weird but it works.

Upvotes: 1

Related Questions