[FOLIO-3226] Transition master: jenkins-pipeline-libs use Jenkinsfile property defaultBranch Created: 02/Jul/21  Updated: 03/Aug/21  Resolved: 02/Jul/21

Status: Closed
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: Task Priority: TBD
Reporter: David Crossley Assignee: David Crossley
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Relates
relates to FOLIO-2858 Transition to 'main' as the new defau... In Progress
Sprint: DevOps Sprint 117
Development Team: FOLIO DevOps

 Description   

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.


Generated at Thu Feb 08 23:26:33 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.