I have only added below code on my pipeline
After pushing the code am getting the below error
There is an error in your bitbucket-pipelines.yml at [(root level)]. The top-level "pipelines" section is missing, empty, or null.
Hi @Rupak Kumar Rath and welcome to the community!
Based on your definition, it looks like you are using the template for shared pipelines as per the following documentation:
The content of your bitbucket-pipelines.yml is used when you define pipelines that you want to reuse in other repos of the workspace (this feature is available for workspaces on the Premium plan).
What is missing is an additional pipelines section for this repository. If you don't want pipelines to run automatically for this repo at the moment, you can add a dummy custom pipeline as follows:
export: true
definitions:
pipelines:
share-pipeline-1:
- step:
name: "hello world"
script:
- echo hello world
pipelines:
custom:
custom-do-not-use:
- step:
script:
- echo "hello"
Since this is a custom pipeline, it will not get triggered automatically on every push.
If you do want to define pipelines that will run automatically on this repo, you can check our documentation here:
Please feel free to reach out if you have any questions!
Kind regards,
Theodora
The "pipelines:" line should not be indented! It should appear in the left-most position, meaning the top-level in YAML!
See the reference or this snippet:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.