Skip to content

Commit 03c7c69

Browse files
gavinbarronCopilot
andcommitted
Use Maven task in release pipeline
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 1a65bdd commit 03c7c69

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

‎.azure-pipelines/ci-build.yml‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,27 @@ extends:
106106
inputs:
107107
artifactsFeeds: 'GraphDeveloperExperiences_Public'
108108

109-
- script: ./mvnw install -Psigning --no-transfer-progress
109+
- task: Maven@4
110110
displayName: Publish to local Maven for verification
111+
inputs:
112+
mavenPomFile: 'pom.xml'
113+
goals: 'install'
114+
options: '-Psigning --no-transfer-progress'
115+
publishJUnitResults: false
116+
javaHomeOption: 'JDKVersion'
117+
jdkVersionOption: '1.21'
118+
jdkArchitectureOption: 'x64'
111119

112-
- script: ./mvnw deploy -Psigning --no-transfer-progress -DaltDeploymentRepository=ADO::default::file://$(Build.SourcesDirectory)/target/staging-deploy
120+
- task: Maven@4
113121
displayName: Stage artifacts for ESRP
122+
inputs:
123+
mavenPomFile: 'pom.xml'
124+
goals: 'deploy'
125+
options: '-Psigning --no-transfer-progress -DaltDeploymentRepository=ADO::default::file://$(Build.SourcesDirectory)/target/staging-deploy'
126+
publishJUnitResults: false
127+
javaHomeOption: 'JDKVersion'
128+
jdkVersionOption: '1.21'
129+
jdkArchitectureOption: 'x64'
114130

115131
- pwsh: |
116132
$pomXml = [xml](Get-Content pom.xml -Raw)

0 commit comments

Comments
 (0)