Skip to content

Instantly share code, notes, and snippets.

@juliuscanute
Created July 9, 2019 06:00
Show Gist options
  • Save juliuscanute/e750812c8d4a8f93d87c089076155bad to your computer and use it in GitHub Desktop.
Save juliuscanute/e750812c8d4a8f93d87c089076155bad to your computer and use it in GitHub Desktop.
Azure Pipeline
# 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