Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
Mark Iantorno 2020-05-05 13:22:03 -04:00
parent e17e6308e2
commit c41349a837
1 changed files with 6 additions and 5 deletions

View File

@ -18,9 +18,9 @@ pool:
variables: variables:
currentImage: $(imageName) currentImage: $(imageName)
codecov: $(CODECOV_TOKEN)
steps: steps:
- task: PowerShell@2 - task: PowerShell@2
inputs: inputs:
targetType: 'inline' targetType: 'inline'
@ -30,7 +30,6 @@ steps:
Write-Host $pomXml.project.version Write-Host $pomXml.project.version
$version=$pomXml.project.version $version=$pomXml.project.version
Write-Host "##vso[task.setvariable variable=version]$version" Write-Host "##vso[task.setvariable variable=version]$version"
- task: Maven@3 - task: Maven@3
inputs: inputs:
mavenPomFile: 'pom.xml' mavenPomFile: 'pom.xml'
@ -41,13 +40,15 @@ steps:
publishJUnitResults: true publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml' testResultsFiles: '**/surefire-reports/TEST-*.xml'
goals: 'clean package' goals: 'clean package'
- bash: echo Current version => $(version) - bash: echo Current version => $(version)
displayName: 'version' displayName: 'version'
# - script: bash <(curl https://codecov.io/bash) -t $(CODECOV_TOKEN) - bash: echo codecov => $(codecov)
# displayName: 'codecov' displayName: 'codecov'
- script: bash <(curl https://codecov.io/bash) -t $(codecov)
displayName: 'codecov'
- task: PublishCodeCoverageResults@1 - task: PublishCodeCoverageResults@1
inputs: inputs:
codeCoverageTool: 'JaCoCo' codeCoverageTool: 'JaCoCo'