I would like to deploy Firebase cloud function on Jenkins but it responds "firebase: command not found".
Here is my execute shell on Jenkins
chmod 755 ./DeployCloudFunction.sh
./DeployCloudFunction.sh
but it output
DeployCloudFunction.sh
: line 3: firebase: command not found
And this is the DeployCloudFunction.sh
below
#!/bin/bash firebase use myProject firebase deploy --only functions
When I run DeployCloudFunction.sh
on the terminal on mac, it's working perfectly. I have no idea why it goes wrong when run on Jenkings.