Last active
December 14, 2022 08:03
-
-
Save SumindaD/b83bda1a10cd5f4bf1255430f3e40ecf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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.17' | |
jdkArchitectureOption: 'x64' | |
publishJUnitResults: true | |
testResultsFiles: '**/surefire-reports/TEST-*.xml' | |
goals: 'package' | |
- task: ArchiveFiles@2 | |
inputs: | |
rootFolderOrFile: '$(Build.SourcesDirectory)/target/azure-functions/function-app-demo' | |
includeRootFolder: false | |
archiveType: 'zip' | |
archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip' | |
replaceExistingArchive: true | |
- task: PublishBuildArtifacts@1 | |
inputs: | |
PathtoPublish: '$(Build.ArtifactStagingDirectory)' | |
ArtifactName: 'drop' | |
publishLocation: 'Container' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment