Pulumi extension task fails when ran as part of a deployment #91
Labels
awaiting-feedback
Blocked on input from the author
awaiting-feedback-stale
Blocked on input from the author and hasn't been updated in 14 days
kind/question
Questions about existing features
resolution/no-repro
This issue wasn't able to be reproduced
Describe the bug
Using the Pulumi Azure DevOps extension's task within a deployment job it fails with the below error. If i copy and paste the same task into a normal job it works perfectly fine.
##[error]Error: There was an error when attempting to execute the process '/__w/_temp/c0162cb7-b00c-44f7-a09c-82bb8eefcc6a/pulumi/pulumi'. This may indicate the process failed to start. Error: spawn /__w/_temp/c0162cb7-b00c-44f7-a09c-82bb8eefcc6a/pulumi/pulumi ENOENT
To Reproduce
Using YAML pipelines, use a normal job with steps and utilise the pulumi task as shown below:
jobs:
steps:
inputs:
azureSubscription: ***
command: 'preview'
cwd: ''
stack: ''
args: '--diff'
loginArgs: azblob://***
It should work as normal.
If we use the deployment version of a job as per below it will fail:
environment: ***
workspace:
clean: all
strategy:
runOnce:
deploy:
steps:
- task: Pulumi@1
inputs:
azureSubscription: ***
command: 'preview'
cwd: ''
stack: ''
args: '--diff'
loginArgs: azblob://***
Expected behavior
Pulumi preview should run and generate the output in logs.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: