0

I would like to pass a username of a person who initiated deploy in Release pipeline in command line script task.

I have tried:

echo $(username)

But $(username) gives me an account of agent service, not the user who initiated deploy.

Shayki Abramczyk
  • 36,824
  • 16
  • 89
  • 114
Boris Makovecki
  • 63
  • 1
  • 2
  • 4

1 Answers1

0

You can use the Release.RequestedFor pre-defined variable, it ill display the display name of identity that triggered the release.

Shayki Abramczyk
  • 36,824
  • 16
  • 89
  • 114