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