From 03c7c6904809c66fc992c71fad7a90131ed40e58 Mon Sep 17 00:00:00 2001 From: "Gavin Barron (from Dev Box)" Date: Tue, 4 Aug 2026 17:02:23 -0700 Subject: [PATCH] Use Maven task in release pipeline Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .azure-pipelines/ci-build.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/ci-build.yml b/.azure-pipelines/ci-build.yml index 119c9aa6..6aed8291 100644 --- a/.azure-pipelines/ci-build.yml +++ b/.azure-pipelines/ci-build.yml @@ -106,11 +106,27 @@ extends: inputs: artifactsFeeds: 'GraphDeveloperExperiences_Public' - - script: ./mvnw install -Psigning --no-transfer-progress + - task: Maven@4 displayName: Publish to local Maven for verification + inputs: + mavenPomFile: 'pom.xml' + goals: 'install' + options: '-Psigning --no-transfer-progress' + publishJUnitResults: false + javaHomeOption: 'JDKVersion' + jdkVersionOption: '1.21' + jdkArchitectureOption: 'x64' - - script: ./mvnw deploy -Psigning --no-transfer-progress -DaltDeploymentRepository=ADO::default::file://$(Build.SourcesDirectory)/target/staging-deploy + - task: Maven@4 displayName: Stage artifacts for ESRP + inputs: + mavenPomFile: 'pom.xml' + goals: 'deploy' + options: '-Psigning --no-transfer-progress -DaltDeploymentRepository=ADO::default::file://$(Build.SourcesDirectory)/target/staging-deploy' + publishJUnitResults: false + javaHomeOption: 'JDKVersion' + jdkVersionOption: '1.21' + jdkArchitectureOption: 'x64' - pwsh: | $pomXml = [xml](Get-Content pom.xml -Raw)