From f45437b2bfa3049058c1a831cbc3a554a7b14818 Mon Sep 17 00:00:00 2001 From: SID Geiger Date: Mon, 16 Oct 2023 17:35:43 +0200 Subject: [PATCH 1/3] Set up CI with Azure Pipelines default YAML configuration [skip ci] --- azure-pipelines.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..7438c7453 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,22 @@ +# Maven +# Build your Java project and run tests with Apache Maven. +# Add steps that analyze code, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/java + +trigger: +- main + +pool: + vmImage: ubuntu-latest + +steps: +- task: Maven@3 + inputs: + mavenPomFile: 'pom.xml' + mavenOptions: '-Xmx3072m' + javaHomeOption: 'JDKVersion' + jdkVersionOption: '1.8' + jdkArchitectureOption: 'x64' + publishJUnitResults: true + testResultsFiles: '**/surefire-reports/TEST-*.xml' + goals: 'package' From 006d2d01beddaf051c889bdb39f8cb71bc7da654 Mon Sep 17 00:00:00 2001 From: SID Geiger Date: Tue, 17 Oct 2023 12:22:39 +0200 Subject: [PATCH 2/3] Update azure-pipelines.yml for Azure Pipelines updated configuration --- azure-pipelines.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7438c7453..4e6698eea 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,4 +1,5 @@ -# Maven + + # Build your Java project and run tests with Apache Maven. # Add steps that analyze code, save build artifacts, deploy, and more: # https://docs.microsoft.com/azure/devops/pipelines/languages/java @@ -10,7 +11,7 @@ pool: vmImage: ubuntu-latest steps: -- task: Maven@3 +- task: Maven@4 inputs: mavenPomFile: 'pom.xml' mavenOptions: '-Xmx3072m' @@ -20,3 +21,13 @@ steps: publishJUnitResults: true testResultsFiles: '**/surefire-reports/TEST-*.xml' goals: 'package' + publishJUnitResults: true + testResultsFiles: '**/surefire-reports/TEST-*.xml' + codeCoverageToolOption: 'Cobertura' + codeCoverageFailIfEmpty: true + codeCoverageRestoreOriginalPomXml: true + mavenVersionOption: 'Default' + mavenAuthenticateFeed: false + effectivePomSkip: false + sonarQubeRunAnalysis: true + sqMavenPluginVersionChoice: 'latest' From b833ec6a1b8eca37edaf94702ca9329db231a15b Mon Sep 17 00:00:00 2001 From: SID Geiger Date: Tue, 17 Oct 2023 12:23:15 +0200 Subject: [PATCH 3/3] Update azure-pipelines.yml for Azure Pipelines updated configugartion --- azure-pipelines.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4e6698eea..ea6bcf8eb 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -21,8 +21,6 @@ steps: publishJUnitResults: true testResultsFiles: '**/surefire-reports/TEST-*.xml' goals: 'package' - publishJUnitResults: true - testResultsFiles: '**/surefire-reports/TEST-*.xml' codeCoverageToolOption: 'Cobertura' codeCoverageFailIfEmpty: true codeCoverageRestoreOriginalPomXml: true