0

I am trying to create a Task Group that can be used interchangeably between Build and Release pipelines.

However, I am having an issue passing one of the arguments to my Powershell Task Group.

The reason for this is that the argument data that I'm trying to pass doesn't exist within the Build environment.

- envName "$(Release.EnvironmentName)"

Is there a way for me to pass this argument only if it exists? Or to pass this argument OR a different argument?

Thanks!

  • you could script it in powershell, that would probably be easier – 4c74356b41 Apr 14 at 15:30
  • I am hoping to avoid that if possible. The variable that I am passing is going into Powershell, but I was hoping that there might be a way to pass an argument variable that is dynamic to the pipeline environment.... or possibly do some basic if/then within the argument passing. – nuprap Apr 15 at 13:39
  • I dont think releases support yaml syntax - so I dont think they support ifs – 4c74356b41 Apr 15 at 13:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.