From 6d4b5a15fccc0952f8e144b5f85d0507b6a7d5ea Mon Sep 17 00:00:00 2001 From: dev-mkoebis Date: Thu, 25 Jun 2026 16:09:24 +0200 Subject: [PATCH] =?UTF-8?q?Jenkinsfile=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MergeCMInpro.csproj | 4 ++++ config/Jenkinsfile | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 config/Jenkinsfile diff --git a/MergeCMInpro.csproj b/MergeCMInpro.csproj index 6e2b31b..1ed5320 100644 --- a/MergeCMInpro.csproj +++ b/MergeCMInpro.csproj @@ -17,4 +17,8 @@ + + + + diff --git a/config/Jenkinsfile b/config/Jenkinsfile new file mode 100644 index 0000000..2c757ea --- /dev/null +++ b/config/Jenkinsfile @@ -0,0 +1,37 @@ +pipeline +{ + agent + { + node + { + label 'Jenkins_Homer' + } + } + stages + { + stage('Build') + { + steps + { + bat "\"${tool 'MSBuild17'}\" ${WORKSPACE}\\MergeCMInpro\\MergeCMInpro.csproj /t:Restore /t:Rebuild /p:Configuration=Release" + } + + } + stage('SonarQube') + { + environment + { + scannerHome = tool 'sonar-scanner4.4' + project = 'mergecminpro' + token = 'sqa_07d4e3802cf6283fc38a002e75bd0a5eb158af87' + } + steps + { + withSonarQubeEnv('SonarQube_Homer') + { + bat "${scannerHome}/bin/sonar-scanner -Dsonar.projectKey=${project} -Dsonar.login=${token}" + } + } + } + } +}