Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
Eugene Sadovoi 2019-11-11 16:56:08 -08:00
Родитель d77a48f93d
Коммит 0bc75da705
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -11,17 +11,17 @@ variables:
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
OutputPath: '$(build.artifactstagingdirectory)'
FileVersion: 0
Git.Version: 0
steps:
- task: PowerShell@2
displayName: 'Set File Version'
displayName: 'Set Build Version'
inputs:
targetType: 'inline'
script: |
$timestamp = git log -1 --pretty="format:%ct"
Write-Host "File Version: $timestamp"
Write-Host "##vso[task.setvariable variable=FileVersion]$($timestamp)"
Write-Host "Build Version: $timestamp"
Write-Host "##vso[task.setvariable variable=Git.Version]$($timestamp)"
- task: CmdLine@2
inputs: