Skip to content

DW-41: Replace the Node 10 file-creator task in the deploy pipeline - #162

Merged
Sawraz-IS merged 1 commit into
developfrom
DW-41-replace-file-creator
Dec 3, 2026
Merged

Sawraz-IS merged 1 commit into
developfrom
DW-41-replace-file-creator

Conversation

@Sawraz-IS

Copy link
Copy Markdown
Collaborator

Why

The Drawing deploy now fails at Store Version Information:

##[error]No compatible Node.js version available for host execution. Handler type: Node10HandlerData.
Update the task to use Node24, enable AGENT_RESTRICT_EOL_NODE_VERSIONS, or install the required runner manually.

That step uses the marketplace task file-creator@6 (Elio Struyf), which runs on Node 10. Current hosted agents no longer ship Node 10. It's the only third-party task in our pipelines; every other step is a built-in Microsoft task.

Change

CI/job_templates/deploy_drawing_libraries.yml: replace file-creator@6 with a built-in PowerShell@2 step (pwsh: true) that writes the same VersionInformation/versions.xml. The next step, Publish IronDrawing Version Information, publishes it unchanged.

  • Same XML content and path. UTF-8 without BOM, and an existing file is overwritten (as fileoverwrite: true did).
  • The content is a single-quoted here-string. Azure DevOps substitutes $(Configuration), $(NuGetVersion), $(AssemblyVersion) and $(Build.SourceVersion) before the script runs; a variable that isn't defined is written literally, as the old task did, instead of being run as a PowerShell expression.
  • The file is echoed to the log (the old task's verbose: true).

Verified

  • The YAML parses.
  • The step's script, run locally with the macros substituted (and $(AssemblyVersion) deliberately left undefined), produces valid XML with the expected values, the undefined one kept literally, and no BOM.

The same change is already on skiasharp-net462 (#160, c829674), which is being deployed for DW-41.

…ll step to store version information in the deploy pipeline
@Sawraz-IS
Sawraz-IS merged commit 236fd88 into develop Dec 3, 2026
9 checks passed
@Sawraz-IS
Sawraz-IS deleted the DW-41-replace-file-creator branch December 3, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants