From fef25863313f6611e627e0c2441eeed7966116ac Mon Sep 17 00:00:00 2001 From: mathansaha <52911550+mathansaha@users.noreply.github.com> Date: Sun, 12 May 2024 12:12:49 +0530 Subject: [PATCH 1/4] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..7e8e52b7 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,35 @@ +# Starter pipeline +# Start with a minimal pipeline that you can customize to build and deploy your code. +# Add steps that build, run tests, deploy, and more: +# https://aka.ms/yaml + +trigger: +- devops-azure + +pool: + vmImage: ubuntu-latest + +stages: + - stage: 'Junit' + displayName: 'Junit Stage' + jobs: + - job: 'JunitTest' + displayName: 'Running unit tests' + steps: + - script: echo 'Running Spring demo app unit test' + - task: Maven@3 + inputs: + mavenPomFile: 'pom.xml' + goals: 'test' + publishJUnitResults: true + testResultsFiles: '**/surefire-reports/TEST-*.xml' + codeCoverageToolOption: 'JaCoCo' + javaHomeOption: 'JDKVersion' + mavenVersionOption: 'Default' + mavenAuthenticateFeed: false + effectivePomSkip: false + sonarQubeRunAnalysis: false + checkStyleRunAnalysis: true + pmdRunAnalysis: true + findBugsRunAnalysis: true + From 01f6b90860f0462e829252a691e519d8c5235a57 Mon Sep 17 00:00:00 2001 From: mathansaha <52911550+mathansaha@users.noreply.github.com> Date: Sun, 12 May 2024 12:14:35 +0530 Subject: [PATCH 2/4] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7e8e52b7..0a22cd26 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -4,7 +4,7 @@ # https://aka.ms/yaml trigger: -- devops-azure +- master pool: vmImage: ubuntu-latest From 32ea311d9ea619b2d5fec22ab1a885a32762c8c1 Mon Sep 17 00:00:00 2001 From: mathansaha <52911550+mathansaha@users.noreply.github.com> Date: Sun, 12 May 2024 12:24:55 +0530 Subject: [PATCH 3/4] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0a22cd26..7e8e52b7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -4,7 +4,7 @@ # https://aka.ms/yaml trigger: -- master +- devops-azure pool: vmImage: ubuntu-latest From 1ac76a14c6f8070f5234f655f431265bf60633cc Mon Sep 17 00:00:00 2001 From: mathansaha <52911550+mathansaha@users.noreply.github.com> Date: Sun, 12 May 2024 12:29:58 +0530 Subject: [PATCH 4/4] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7e8e52b7..0a22cd26 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -4,7 +4,7 @@ # https://aka.ms/yaml trigger: -- devops-azure +- master pool: vmImage: ubuntu-latest