mirror of
				https://github.com/scm-manager/scm-manager.git
				synced 2025-10-31 10:35:56 +01:00 
			
		
		
		
	Use develop as target branch for sonarqube
This commit is contained in:
		
							
								
								
									
										6
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							| @@ -71,12 +71,12 @@ pipeline { | |||||||
|     stage('SonarQube') { |     stage('SonarQube') { | ||||||
|       steps { |       steps { | ||||||
|         sh 'git config --replace-all "remote.origin.fetch" "+refs/heads/*:refs/remotes/origin/*"' |         sh 'git config --replace-all "remote.origin.fetch" "+refs/heads/*:refs/remotes/origin/*"' | ||||||
|         sh 'git fetch origin master' |         sh 'git fetch origin develop' | ||||||
|         script { |         script { | ||||||
|           withSonarQubeEnv('sonarcloud.io-scm') { |           withSonarQubeEnv('sonarcloud.io-scm') { | ||||||
|             String parameters = " -Dsonar.organization=scm-manager -Dsonar.branch.name=${env.BRANCH_NAME}" |             String parameters = " -Dsonar.organization=scm-manager -Dsonar.branch.name=${env.BRANCH_NAME}" | ||||||
|             if (env.BRANCH_NAME != "master") { |             if (env.BRANCH_NAME != "develop") { | ||||||
|               parameters += " -Dsonar.branch.target=master" |               parameters += " -Dsonar.branch.target=develop" | ||||||
|             } |             } | ||||||
|             gradle "sonarqube ${parameters}" |             gradle "sonarqube ${parameters}" | ||||||
|           } |           } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user