I have a shared pipeline created for all my microservices, the steps are more or less same but vary on branch execution. with different variable set. How can I achieve below functionality
Example:
**********************************************************
Shared Pipeline
***********************************************************
export: true
definitions:
pipelines:
share-pipeline-java8: &share-pipeline-java8
- step: &Maven-Build-and-Test
image:
name: abc.io/maven:3.9-jdk8
username: $ART_USER
password: $ARTI_PASSWORD
caches:
- maven
script:
- mvn clean install
artifacts:
- target/*.jar
after-script:
# Collect checkstyle results, if any, and convert to Bitbucket Code Insights.
- pipe: atlassian/checkstyle-report:0.3.0
**********************************************************************
Import Pipeline
***************************************************************************
pipelines:
branches:
develop:
import: xyz:develop:share-pipeline-java8
deployment: develop
step: *Maven-Build-and-Test
master:
import: xyz:master:share-pipeline-java8
deployment: production
step: *Maven-Build-and-Test