From cf90c619c1a048e0f07738c8ce2970abe6021a81 Mon Sep 17 00:00:00 2001 From: Zohar Date: Sun, 7 Apr 2024 18:53:02 -0400 Subject: [PATCH] test2 --- Jenkinsfile-1 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile-1 b/Jenkinsfile-1 index f7a1de274..db612c2a3 100644 --- a/Jenkinsfile-1 +++ b/Jenkinsfile-1 @@ -1,4 +1,8 @@ node { + agent any + tools { + nodejs "node" // The name you gave in the Global Tool Configuration + } stage('SCM') { checkout scm } @@ -8,11 +12,12 @@ node { } stage('SonarQube Analysis') { environment{ - SCANNER_HOME = tool 'sonar-scanner' + SCANNER_HOME = tool 'sonar-scanner' + } def mvn = tool 'M3'; withSonarQubeEnv("sq1") { - sh "${mvn}/bin/mvn sonar:sonar -Dsonar.projectKey=Web -Dsonar.projectName='Web' -Dsonar.sources=src/ -Dsonar.java.binaries=target/classes/ -Dsonar.exclusions=src/test/java/****/*.java,**/*.html,**/*.js,**/*.css, **/*.html.js" + sh "${mvn}/bin/mvn sonar:sonar -Dsonar.projectKey=Web -Dsonar.projectName='Web' -Dsonar.sources=src/ -Dsonar.java.binaries=target/classes/ -Dsonar.exclusions=src/test/java/****/*.java" } } } \ No newline at end of file