Created
July 9, 2019 06:00
-
-
Save juliuscanute/e750812c8d4a8f93d87c089076155bad to your computer and use it in GitHub Desktop.
Azure Pipeline
This file contains hidden or 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: | |
- master | |
pool: | |
vmImage: 'ubuntu-latest' | |
steps: | |
- task: Maven@3 | |
inputs: | |
mavenPomFile: 'pom.xml' | |
options: '-Dbuild.artifactId=$(artifactId) -Dbuild.artifactVersion=$(Build.BuildNumber) -DfunctionAppName=$(functionAppName)' | |
mavenOptions: '-Xmx3072m' | |
javaHomeOption: 'JDKVersion' | |
jdkVersionOption: '1.8' | |
jdkArchitectureOption: 'x64' | |
publishJUnitResults: false | |
testResultsFiles: '**/surefire-reports/TEST-*.xml' | |
goals: 'package' | |
- task: CopyFiles@2 | |
displayName: Copy Files | |
inputs: | |
SourceFolder: $(System.DefaultWorkingDirectory)/target/azure-functions/ | |
Contents: '**' | |
TargetFolder: $(Build.ArtifactStagingDirectory) | |
- task: PublishBuildArtifacts@1 | |
displayName: Publish Artifact | |
inputs: | |
PathtoPublish: $(Build.ArtifactStagingDirectory) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment