]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-15310 Add compilation instruction to Maven tutorials
authorMathieu Suen <mathieu.suen@sonarsource.com>
Mon, 23 Aug 2021 10:09:19 +0000 (12:09 +0200)
committersonartech <sonartech@sonarsource.com>
Mon, 23 Aug 2021 20:07:55 +0000 (20:07 +0000)
server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/Maven.tsx
server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/Maven-test.tsx.snap
server/sonar-web/src/main/js/components/tutorials/manual/commands/JavaMaven.tsx
server/sonar-web/src/main/js/components/tutorials/manual/commands/__tests__/__snapshots__/JavaMaven-test.tsx.snap

index 48f0cbd398c4c7082dfd662b8f3a0fde6cfa33e8..8aea9e2ffd07cda53ec5cb9afd2642492b8f2015 100644 (file)
@@ -32,7 +32,7 @@ const JENKINSFILE_SNIPPET = `node {
   stage('SonarQube Analysis') {
     def mvn = tool 'Default Maven';
     withSonarQubeEnv() {
-      sh "\${mvn}/bin/mvn sonar:sonar"
+      sh "\${mvn}/bin/mvn clean verify sonar:sonar"
     }
   }
 }`;
index b8da799365fe31aa171b8572cda9c50b7e9debac..178203627a80b8d673942dca34673270082af5e4 100644 (file)
@@ -24,7 +24,7 @@ exports[`should render correctly 1`] = `
   stage('SonarQube Analysis') {
     def mvn = tool 'Default Maven';
     withSonarQubeEnv() {
-      sh \\"\${mvn}/bin/mvn sonar:sonar\\"
+      sh \\"\${mvn}/bin/mvn clean verify sonar:sonar\\"
     }
   }
 }"
index cd9e6a5b5c39f52e5ae7261911f85f743252e005..0ae0a0f26674044705c8343e53bb23c81b7530e3 100644 (file)
@@ -34,7 +34,7 @@ export interface JavaMavenProps {
 export default function JavaMaven(props: JavaMavenProps) {
   const { host, component, token } = props;
   const command = [
-    'mvn sonar:sonar',
+    'mvn clean verify sonar:sonar',
     `-Dsonar.projectKey=${component.key}`,
     `-Dsonar.host.url=${host}`,
     `-Dsonar.login=${token}`
index aafc6e3517e3763e892fb7eee661044eae29a067..741cf44262abeda6fe7581274eccc25b9d2e1db9 100644 (file)
@@ -17,7 +17,7 @@ exports[`renders correctly 1`] = `
   <CodeSnippet
     snippet={
       Array [
-        "mvn sonar:sonar",
+        "mvn clean verify sonar:sonar",
         "-Dsonar.projectKey=projectKey",
         "-Dsonar.host.url=host",
         "-Dsonar.login=token",