mirror of
				https://github.com/kitabisa/sonarqube-action.git
				synced 2025-10-31 21:24:18 +08:00 
			
		
		
		
	Fix error message when pom or build.gradle are detected (#48)
This commit is contained in:
		
							parent
							
								
									616b2df627
								
							
						
					
					
						commit
						ee95a7cad6
					
				| @ -12,12 +12,12 @@ else | |||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| if [[ -f "${INPUT_PROJECTBASEDIR%/}/pom.xml" ]]; then | if [[ -f "${INPUT_PROJECTBASEDIR%/}/pom.xml" ]]; then | ||||||
|   echo "::error file=${INPUT_PROJECTBASEDIR%/}pom.xml::Maven project detected. You should run the goal 'org.sonarsource.scanner.maven:sonar' during build rather than using this GitHub Action." |   echo "::error file=${INPUT_PROJECTBASEDIR%/}/pom.xml::Maven project detected. You should run the goal 'org.sonarsource.scanner.maven:sonar' during build rather than using this GitHub Action." | ||||||
|   exit 1 |   exit 1 | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| if [[ -f "${INPUT_PROJECTBASEDIR%/}/build.gradle" ]]; then | if [[ -f "${INPUT_PROJECTBASEDIR%/}/build.gradle" ]]; then | ||||||
|   echo "::error file=${INPUT_PROJECTBASEDIR%/}build.gradle::Gradle project detected. You should use the SonarQube plugin for Gradle during build rather than using this GitHub Action." |   echo "::error file=${INPUT_PROJECTBASEDIR%/}/build.gradle::Gradle project detected. You should use the SonarQube plugin for Gradle during build rather than using this GitHub Action." | ||||||
|   exit 1 |   exit 1 | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Francisco Robles Martín
						Francisco Robles Martín