we have some manual stages. In a task we need the username who start a manual stage.
This is available in bamboo.ManualBuildTriggerReason.userName
Thank you for the fast answer.
Is the user who start a deployment to an evironment also available?
That'll be the same bamboo.ManualBuildTriggerReason.userName variable.
Access not possible
Our Usecase:
Build (automatic trigger)
compile
promoteStage
promoteTask
The value bamboo.ManualBuildTriggerReason.userName is set after run the manual stage promoteStage. The value is set in the metadata from the build but not in the metadata from promoteStage. I don't have access to the value in the promoteTask. I tried to get access with the environment from promoteTask and with configuration the promoteTask environment with ManUserName=${bamboo.ManualBuildTriggerReason.username}
bamboo.ManualBuildTriggerReason.userName
ManUserName=${bamboo.ManualBuildTriggerReason.username}
<br>
example.png
Result:
ManUserName=${bamboo.ManualBuildTriggerReason.userName}
Value is not replaced
It looks like you're new here. Sign in or register to get started.