https://pulumi.com logo
Title
s

shy-exabyte-78907

03/16/2021, 1:29 PM
Hey guys, I am trying to use Pulumi in Azure Dev Ops release pipeline and I am receiving this
error: no resource plugin 'pulumi-nodejs' found in the workspace or on your $PATH
every time I try to run
pulumi preview
. In this pipeline I am using the installation script but I can’t change the PATH. Therefore, I am adding the path of the installation to
PULUMI_HOME
as
C:/<path>/.pulumi
. I am running pulumi as
<path>/.pulumi/bin/pulumi.exe
. Even after all that, the error about not finding the plugin is still happening. Any idea?
f

future-morning-96441

03/16/2021, 1:43 PM
looks like the postinstall script is failing. You could try to manually install the resource plugin by
pulumi plugin install
s

shy-exabyte-78907

03/16/2021, 1:56 PM
Got it @future-morning-96441. Where can I see the list of plugins I can install. In this case I need to install the
pulumi-nodejs
but I need the KIND and VERSION infos to install it.
f

future-morning-96441

03/16/2021, 2:05 PM
I believe you can try just running
pulumi plugin install
- iirc we have this statement in our ci script and it tries to install the correct plugins
s

shy-exabyte-78907

03/16/2021, 2:14 PM
Unfortunately, the same issue is still happening @future-morning-96441
f

future-morning-96441

03/16/2021, 2:15 PM
did
pulumi plugin install
print any errors? is
PULUMI_HOME
set as well, when the command gets executed?
s

shy-exabyte-78907

03/16/2021, 2:17 PM
Prints nothing, just finishes successfully and yes, the
PULUMI_HOME
is set to this command as well
It seems that the
PULUMI_HOME
is not being used for some reason.
f

future-morning-96441

03/16/2021, 2:19 PM
is
pulumi plugin ls
showing some installed plugins?
s

shy-exabyte-78907

03/16/2021, 2:22 PM
It shows an empty list after the
pulumi plugin install
f

future-morning-96441

03/16/2021, 3:50 PM
hm, I'm not sure how you could proceed from here. Did you find https://www.pulumi.com/docs/guides/continuous-delivery/azure-devops/ ?
We used bitbucket pipelines and are currently moving to gitlab ci where we do the following steps iirc: • use install script • move the installed files to another dir, which can be accessed easier • export PULUMI_HOME • add pulumi dir to PATH • .. other irrelevant stuff .. • npm i • pulumi plugin install • someSetupScriptToCalculateMoreEnvironmentVars.sh • pulumi update -s $PULUMI_STACK_NAME