Hi @piash tanjin and welcome to the community!
If I understand correctly, your deploy.sh script includes a yarn command, but you get a 'command not found error' when it runs. Is that correct?
Can you please provide the following info so I can better help you:
If yarn is indeed installed on this server for this user, and the echo $PATH command in the deploy.sh script does not show yarn's path, you can add another command in the deploy.sh script to add it, e.g.
export PATH="$PATH:/path/to/yarn/"
On an unrelated note, please keep in mind that the following syntax in your yml file is not supported:
variable:
USER: $USER
SERVER: $SERVER
Variables can be defined in the yml only for custom pipelines, see the documentation:
Since you have a branch pipeline, the variables $USER and $SERVER will be available to the step if you define them as repository or workspace variables.
Just a heads up, I moved your post to a new question. Please create a new question if you need assistance instead of posting on someone else's, as an existing question may become convoluted if we try to troubleshoot multiple users' issues in it.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.