mirror of
				https://github.com/kitabisa/sonarqube-action.git
				synced 2025-10-31 13:04:18 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			406 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			406 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| set -e
 | |
| 
 | |
| if [[ -z "${INPUT_PASSWORD}" ]]; then
 | |
| 	SONAR_PASSWORD="&& true"
 | |
| else
 | |
| 	SONAR_PASSWORD="${INPUT_PASSWORD}"
 | |
| fi
 | |
| 
 | |
| sonar-scanner \
 | |
| 	-Dsonar.host.url=${INPUT_HOST} \
 | |
| 	-Dsonar.projectKey=${PWD##*/} \
 | |
| 	-Dsonar.projectBaseDir=${INPUT_PROJECTBASEDIR} \
 | |
| 	-Dsonar.login=${INPUT_LOGIN} \
 | |
| 	-Dsonar.password=${INPUT_PASSWORD} \
 | |
| 	-Dsonar.sources=. \
 | |
| 	-Dsonar.sourceEncoding=UTF-8 \
 | |
| 	${SONAR_PASSWORD}
 | |
| 
 | 
