Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REGRESSION]: FileTransform@2 uses old v2.246.1 in classic pipeline and throws error on JSON variable substitution #20900

Open
4 of 7 tasks
davidnbooth opened this issue Mar 3, 2025 · 1 comment
Assignees
Labels
Area: Release bug regression This used to work, but a change in the service/tasks broke it. triage

Comments

@davidnbooth
Copy link

New issue checklist

Task name

FileTransform@2

Breaking task version

2.246.1

Last working task version

2.249.1

Regression Description

Related to this issue. We are using Classic release pipelines, they were working fine, and then with no change on our part they started failing with "Error: Cannot perform XML transformations on a non-Windows platform."

I can see in the log (attached below) that the version of the task is '2.246.1'. It used to be '2.249.1'.

The "view YAML" option shows that enableXmlTransform: false is present.

I would expect the task to succeed because we are not trying to do an XmlTransform.

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Ubuntu 24.04

Relevant log output

2025-03-03T15:03:43.4148736Z ##[section]Starting: File Transform
2025-03-03T15:03:43.4153068Z ==============================================================================
2025-03-03T15:03:43.4153153Z Task         : File transform
2025-03-03T15:03:43.4153191Z Description  : Replace tokens with variable values in XML or JSON configuration files
2025-03-03T15:03:43.4153257Z Version      : 2.246.1
2025-03-03T15:03:43.4153315Z Author       : Microsoft Corporation
2025-03-03T15:03:43.4153357Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/file-transform
2025-03-03T15:03:43.4153421Z ==============================================================================
2025-03-03T15:03:43.5679995Z ##[error]Error: Cannot perform XML transformations on a non-Windows platform.
2025-03-03T15:03:43.5717830Z ##[section]Finishing: File Transform

Full task logs with system.debug enabled

No response

Repro steps

@davidnbooth davidnbooth added bug regression This used to work, but a change in the service/tasks broke it. labels Mar 3, 2025
@EshitaD
Copy link
Contributor

EshitaD commented Mar 4, 2025

Hi @davidnbooth, identified a regression on version 2.249.1, implemented code changes, and completed deployment up to Ring 1. Could you please share your organization name?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Release bug regression This used to work, but a change in the service/tasks broke it. triage
Projects
None yet
Development

No branches or pull requests

2 participants