We are switching from an older Jenkins instance (1.646) to a newer one 
(2.121.3), and during addition of pipeline (Jenkinsfile) configuration, one 
of the projects succeeds, and most of the others are failing with error: 

[ERROR] Failed to execute goal 
org.sonarsource.scanner.maven:sonar-maven-plugin:3.5.0.1254:sonar (default-cli) 
on project myproject: Unable to execute SonarQube: Fail to download 
sonar-scanner-engine-shaded-7.2.1-all.jar to 
?/.sonar/cache/_tmp/fileCache5699353903196323022.tmp: EOFException -> [Help 1]


Where the scan succeeds, I do not get that message; all projects share 
credentials, and I am using the following configuration in POM:
(for properties:)
<sonar.version>7.2.1</sonar.version>
<sonar.maven.version>3.5.0.1254</sonar.maven.version>
(for pluginManagent in <build> block:)
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>${sonar.maven.version}</version>
<executions>
<execution>
<goals>
<goal>sonar</goal>
</goals>
</execution>
</executions>
</plugin>



The step in the Jenkinsfile for analysis is:
    stage('Test') {
      agent { docker mavenImage }
      steps {
        withCredentials([file(credentialsId: mavenCreds, variable: 
'CREDS')]) {
          sh 'mv $CREDS ./settings.xml'
        }
        sh 'java -version ; mvn --version'
        sh 'mvn -B -s ./settings.xml -P sonar clean 
org.jacoco:jacoco-maven-plugin:prepare-agent install 
-Dmaven.test.failure.ignore=false  sonar:sonar'
      }
    }



-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3ab015c7-4ea7-46f6-a9c6-35327afcfb38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to