My Bitbucket-Pipeline.yml file is not working!

Pandiarajan Subburam 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

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:

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events