Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

pipline not working

support
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!
November 26, 2024

we wanted to auto sync the most updated file from git server to our production site.we have created a pipeline but its not working ...please guide us ...

2 answers

1 accepted

0 votes
Answer accepted
support
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!
November 28, 2024

no error is showing but the live server is not git not pull. git server's latest code but the live server is not pulled.

0 votes
support
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!
November 26, 2024

hello please reply

Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 27, 2024

Hi @support 

Welcome to the Bitbucket Cloud community! :)

May you please provide additional context? What does your pipeline configuration look like and what has been attempted already?

Cheers!

- Ben (Bitbucket Cloud Support)

support
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!
November 27, 2024

# bitbucket-pipelines.yml

image: atlassian/default-image:latest

pipelines:
branches:
dev: # This pipeline runs for the dev branch
- step:
name: Deploy to Linux Server
script:
# 1. Setup environment variables
- export SSH_HOST=${SSH_HOST}
- export SSH_USER=${SSH_USER}
- export DEPLOY_DIR=${DEPLOY_DIR}
- export DEPLOY_PASS=${DEPLOY_PASS}

# 2. Install sshpass and SSH client
- apt-get update && apt-get install -y sshpass openssh-client

# 3. Pull latest changes and set ownership
- sshpass -p "$DEPLOY_PASS" ssh -o StrictHostKeyChecking=no $SSH_USER@$SSH_HOST "
hostnamectl &&
echo "===================================================" &&
echo "hostnamectl command running successfully" &&
cd $DEPLOY_DIR &&
cp .env ../.env-bkp &&
echo "===================================================" &&
echo ".env file backed up to the user's home directory..." &&
pwd &&
git branch &&
git pull origin dev &&
echo "Code deployed successfully from bitbucket." &&
cp ../.env-bkp .env &&
echo ".env file reverted from the user's home directory..." &&
echo "=========================Finished=========================="
"

support
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!
November 27, 2024

I am using the local system to push git server but it does not reflect the live site.

Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 28, 2024

What is the error message you are seeing?

support
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!
November 28, 2024

I am using the local system to push git server but it does not reflect the live site.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events