Gitlab CICD pipeline throws bash: yarn: command not found

nandhu_sreenivasan s
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 21, 2024
Below mentioned is my cicd script
before_script:
- apt update
- apt install rsync -y
- apt install openssh-client -y
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan $LINODE_HOST >> ~/.ssh/known_hosts
script:
- echo $CI_PROJECT_DIR
- rsync -v --exclude='.git' --exclude='node_modules' --exclude='.gitlab-ci.yml' $CI_PROJECT_DIR/* $LINODE_USER@$LINODE_HOST:/root/payload-test
- ssh $LINODE_USER@$LINODE_HOST 'cd /root/payload-test && yarn build && yarn serve'

1 answer

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 22, 2024

Hi Nandhu,

Your question was created in Atlassian's Bitbucket community. We can help with issues related to Bitbucket and Bitbucket Pipelines, but you will need to reach out to Gitlab's support team or community for issues related to their CI/CD pipeline.

Please check the link below for support options:

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events