Quantcast
Viewing all articles
Browse latest Browse all 17

Answer by Recoba20 for Bitbucket pipelines: Deployment destination dependent on commit author

the idea is for each team member to have his/her own environment assigned, but deploy using a shared parametrized pipeline
  1. You could use definitions for the steps for each environment.
definitions:  steps:    - step: deploy to staging1        script:          - echo "Staging 1"    - step: deploy to staging2        script:          - echo "Staging 2"
  1. Then just express each colleague branch and restrict his commits to just this branch.For each of the branches you could call your needed definitions.
branches:    #these will run on every push of the branch    feature/john.b:      - step:          # call needed definition step/s    feature/pavel.m:          # call needed definition step/s

This gives u flexibility to express multiple definitions steps for one person if needed.


Viewing all articles
Browse latest Browse all 17

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>