The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

TAGS
AUG Leaders

Atlassian Community Events