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: 

My Bitbucket-Pipeline.yml file is not working!

Pandiarajan Subburam
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 6, 2021

script: - pipe: atlassian/ssh-run:0.3.0

variables:

SSH_USER: 'ubuntu'

SSH_KEY: $MY_SSH_KEY

SERVER: '**.***.***.***'

MODE: 'script'

COMMAND: '/deploy.sh'

 

I'm trying to execute the script which is inside my AWS instance. Above is the pipeline command which I'm using to execute. This is the configuration error I'm getting, "There is an error in your bitbucket-pipelines.yml at [(root level)]. To be precise: The top-level "pipelines" section is missing, empty, or null." I checked the yml file in yamllint and it looks good. What I need to correct here to execute the shell script file in my server.

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Deepesh Nellutla
May 22, 2021

The pipelines section gives information of the branches ( master/pull-request/feature etc., ) under which the script details are given.

Example given below:

 pipelines:
default:
- step: *xxxx  

script:
branches:
master:
- step: *xx 

script:

TAGS
AUG Leaders

Atlassian Community Events