Forums

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

Bitbucket pipeline using ssh setup issue

venkatcss October 20, 2019

Hi Team,

This is Venkat, I was already setup the bitbucket pipeline using ssh that is working fine , now i want to add the one more folder under the pipeline can you please guide me.

My bitbuket repository folder structure I gave. please find the attachment.

I have setup the pipeline for admin folder.

 

NOw i want to add the Mobile_API_setup folder under this pipeline and I want to deploy those code under path  (api.ydtwebstaging.com) on server.

 

 

ydt.PNG

My pipeline setup configuration file is bitbucket_pipeline.yml

image: ubuntu:16.04
pipelines:
branches:
Ydtwebstaging:
- step:
name: PHP
script:
- apt-get update -y
- apt-get install -y zip
- apt-get install php libapache2-mod-php -y
- apt-get install curl -y
- cd admin/back-end
- zip -r artifact.zip *
- apt-get install sshpass -y
- time sshpass -p 'password' scp -o StrictHostKeyChecking=no -o LogLevel=DEBUG artifact.zip username@ip:/home/ydtwebstaging/deploy

- step:
image: node:10.15.0
name: NPM
script:
- apt-get update -y
- apt-get install -y zip
- cd admin/front-end
- npm install
- CI=false
- npm run build
- zip -r artifact1.zip *
- apt-get install sshpass -y
- time sshpass -p 'password' scp -o StrictHostKeyChecking=no -o LogLevel=DEBUG artifact1.zip username@ip:/home/ydtwebstaging/deploy

 

 

under this configuration i want to zip Mobile_API_setup folder also

 

Can you please guide me

 

Regards,

Venkat

 

 

 

 

1 answer

0 votes
venkatcss October 20, 2019

Hi Team,

 

For this issue I have tried with following configuration file but I am getting the error alt last step.

 

image: ubuntu:16.04
pipelines:
branches:
Ydtwebstaging:
- step:
name: API
script:
- apt-get update -y
- apt-get install -y zip
- apt-get install php libapache2-mod-php -y
- apt-get install curl -y
- cd Mobile_API_Setup
- zip -r artifactapi.zip *
- apt-get install sshpass -y
- time sshpass -p 'password' scp -o StrictHostKeyChecking=no -o LogLevel=DEBUG artifactapi.zip username@ip:/home/ydtwebstaging/deploy
- step:
name: PHP
script:
- apt-get update -y
- apt-get install -y zip
- apt-get install php libapache2-mod-php -y
- apt-get install curl -y
- cd admin/back-end
- zip -r artifact.zip *
- apt-get install sshpass -y
- time sshpass -p 'password' scp -o StrictHostKeyChecking=no -o LogLevel=DEBUG artifact.zip username@ip:/home/ydtwebstaging/deploy
- step:
image: node:10.15.0
name: NPM
script:
- apt-get update -y
- apt-get install -y zip
- cd admin/front-end
- npm install
- CI=false
- npm run build
- zip -r artifact1.zip *
- apt-get install sshpass -y
- time sshpass -p 'passowrd' scp -o StrictHostKeyChecking=no -o LogLevel=DEBUG artifact1.zip username@ip:/home/ydtwebstaging/deploy

 

The error i am getting :-

 

error ydt webstaging.PNG

Build failed link

 

https://bitbucket.org/ydtmeldev/ocs_admin/addon/pipelines/home#!/results/1525

 

 

Regards:

Venkat

venkatcss October 21, 2019

Hi Team,

It;'s got resolved  I have fixed issue

Regards,

Venkat

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, compass, developer experience, devex, platform engineering, internal developer platform, component catalog, atlassian learning, productivity tools, developer productivity, software architecture, compass webinar, engineering teams

Discover how Compass drives DevEx and productivity at Atlassian 🏃🏻‍♂️

Learn why Compass was built to tackle dev experience at scale. See how Atlassian uses it to boost visibility, reduce cognitive load, and drive consistency—plus tips to get started and customize your IDP for stronger team engagement.

Join the webinar ✨
AUG Leaders

Atlassian Community Events