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

Bitbucket Pipeline Error

Rameshwar Katkar
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!
August 19, 2022

Hi,

I have a scenario regarding the bitbucket pipeline. Explored bitbucket blog and document regarding this scenario. But not found proper solution. Scenario is mentioned below.
If we have master bitbucket-pipelines.yml and inside the repository we have folders like tomcat01, tomcat02 etc. file and each tomcat folder has files tomcat01.yml, tomcat02.yml in the respective folder. If we pass variable ‘tomcat01’, will this only trigger tomcat01.yml in the pipeline?
Can anyone help me with the proper solution?

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 22, 2022

Hi @Rameshwar Katkar,

What is the purpose of the files tomcat01.yml, tomcat02.yml etc? Do you store in these files configuration for Bitbucket pipelines, similarly to bitbucket-pipelines.yml file?

If yes, then what you are doing is not going to work. Configuration for Bitbucket Pipelines needs to be stored in the bitbucket-pipelines.yml only.

You may want to look into custom pipelines, that can also make use of variables.

Custom pipelines do not get triggered automatically on every push, they can be triggered either manually or on schedule.
It is also possible to define variables for custom pipelines and give a value to these variables once you trigger a build.

You can check an example of a custom pipeline with variables here:

If you need further help, please provide some more details about your requirements and we can look into it.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events