Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.
52 changes: 52 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
goals: 'package'

- task: Bash@3
inputs:
targetType: 'inline'
script: |
# Write your commands here

echo 'Hello world'
echo $( pwd )
echo $( ls -R )
cp target/ROOT.war /home/vsts/work/1/a

#- task: DownloadFileshareArtifacts@1
# inputs:
# filesharePath: 'target'
# artifactName: 'ROOT.war'
# downloadPath: '$(System.ArtifactsDirectory)'

- task: DownloadBuildArtifacts@0
inputs:
buildType: 'current'
downloadType: 'specific'
itemPattern: '**'
downloadPath: '$(System.ArtifactsDirectory)'
artifactName: 'ROOT.war'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'ROOT.war'
publishLocation: 'Container'