Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions CI/job_templates/deploy_drawing_libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,28 @@ jobs:
symbolServerType: TeamServices
detailedLog: true
# Store Version Information
- task: file-creator@6
# Built-in PowerShell instead of the marketplace file-creator@6 task, which runs on Node 10 and fails on
# current hosted agents ("No compatible Node.js version available for host execution").
- task: PowerShell@2
displayName: Store Version Information
inputs:
filepath: 'VersionInformation/versions.xml'
filecontent: |
targetType: 'inline'
pwsh: true
script: |
# Single-quoted: Azure DevOps substitutes the $(...) macros before the script runs; anything it
# leaves undefined is written literally, as the old task did, instead of being run by PowerShell.
$content = @'
<?xml version="1.0" encoding="utf-8"?>
<Versions>
<Configuration>$(Configuration)</Configuration>
<IronDrawingNuGetVersion>$(NuGetVersion)</IronDrawingNuGetVersion>
<IronDrawingAssemblyVersion>$(AssemblyVersion)</IronDrawingAssemblyVersion>
<GitCommitHash>$(Build.SourceVersion)</GitCommitHash>
</Versions>
fileoverwrite: true
verbose: true
'@
New-Item -ItemType Directory -Force -Path 'VersionInformation' | Out-Null
Set-Content -Path 'VersionInformation/versions.xml' -Value $content -Encoding utf8NoBOM
Get-Content 'VersionInformation/versions.xml'
- task: PublishBuildArtifacts@1
displayName: Publish IronDrawing Version Information
inputs:
Expand Down
Loading