|
Most infrastructure scripts and facilities will utilise environment variables (
FOLIO-3189
Closed
and
FOLIO-3217
Closed
) so as to be prepared ahead of time to switch the project repositories to branch name "main".
However there are two scripts "vars/sonarqubeMvn.groovy" and "vars/sonarqubeScanNPM.groovy" which have hard-coded "master" for configuration. Use a Jenkinsfile property "defaultBranch" set to "master" to be ready beforehand.
If we decide (
FOLIO-3225
Open
) to switch all existing project repositories (
FOLIO-2811
Open
) on a particular day, then the task will be to set that property to "main" in "vars/buildMvn.groovy" and "vars/buildNPM.groovy".
If we decide to switch each individually, then this property (=main) will be added to their project Jenkinsfile.
This technique also enables us to do a migration of a back-end and a front-end repository to ensure that facilities are ready.
|