From 1ac8642d80b6520228f01fc9f7d243fb9d44ea07 Mon Sep 17 00:00:00 2001 From: Jean Schmitz Date: Wed, 19 Jun 2024 12:09:07 +0200 Subject: [PATCH] Create Jenkinsfile Signed-off-by: Jean Schmitz --- Jenkinsfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..ce4fe457 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,11 @@ +node { + stage('SCM') { + checkout scm + } + stage('SonarQube Analysis') { + def mvn = tool 'Maven 3.9.8'; + withSonarQubeEnv() { + sh "${mvn}/bin/mvn clean verify sonar:sonar -Dsonar.projectKey=TalkforgeAI -Dsonar.projectName='TalkforgeAI'" + } + } +}