function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vladimir BessonovVladimir Bessonov 

sfdx gitlab-ci.yml to run jobs on non master branch

Hi. Can somebody share gitlab-ci.yml for not master branch? 

When I use default template - there is a problem when pushed to non master branch.

defined stages are no execuded.
instead of 
 
stages:
  - preliminary-testing
  - create-scratch-org
  - test-scratch-org
  - package
  - staging
  - production

only the following are executed
 
stages:
  - preliminary-testing
  - create-scratch-org
  - test-scratch-org

I use slightly modifed gitlab-ci.yml from salesforce tamplates for gitlab

It is too long to copy-paste, link is below 

sfdx-cicd-template (https://gitlab.com/sfdx/sfdx-cicd-template/-/blob/master/Salesforce.gitlab-ci.yml#L167-169)
 
SwethaSwetha (Salesforce Developers) 
HI Vladimir ,
The stages -package , staging ,production only run in the master branch and this is the default behaviour as mentioned in https://gitlab.com/sfdx/sfdx-cicd-template/-/tree/master.
Vladimir BessonovVladimir Bessonov
Thanks. Swetha. 
what if I want to have another branch and be able to deploy to Sandbox from that branch? Where I can get a template for such setup? 
in this case shall I create new package for the branch ? it will be like having 2 separate projects in this case?