I am wanting to grab preview results from the Pulu...
# azure
r
I am wanting to grab preview results from the Pulumi@1 task in Azure Pipelines and set it to a variable so I can toss the results onto a pull request as a comment. It doesn't appear any outputs are currently supported by the Pulumi-as-pipelines-task. Does anyone know an easy way around this or should I probably just make my own shell script to run Pulumi preview and accomplish this?
c
The task extension doesn't currently automatically capture stack outputs and make them available to subsequent steps. So yeah you'd have to add a separate step to do that yourself by running
pulumi stack output
and setting it as an output variable using https://docs.microsoft.com/en-us/azure/devops/pipelines/process/set-variables-scripts?view=azure-devops&tabs=bash
r
I really specifically want to output the diff results from the preview rather than the stack outputs but that all makes sense. Thanks!
c
Gotcha i see what you mean now by "preview output"...yeah you'd have to manually get the diff result. There is an issue for that as well in that repo, if you want to comment about your use case there and +1 it.
❤️ 1
r
Will do
c