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

[BUG]: FileTransform@2 task fails if "Changes are already present in the package." #20837

Closed
4 of 7 tasks
woeterman94 opened this issue Feb 5, 2025 · 1 comment
Closed
4 of 7 tasks

Comments

@woeterman94
Copy link

New issue checklist

Task name

FileTransform@2

Task version

2.249.1

Issue Description

The taks (and build) fails entirely if there is nothing to transform. Version 2.249.1.

Image

Behavior before (version 2.246.1)

Image

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

Windows_NT (10.0.20348)

Relevant log output

Starting: Transform appsettings.json
==============================================================================
Task         : File transform
Description  : Replace tokens with variable values in XML or JSON configuration files
Version      : 2.246.1
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/file-transform
==============================================================================
Applying JSON variable substitution for **/appsettings.json
Applying JSON variable substitution for H:\_work_agent\3\s\REDACTED\web\appsettings.json
Applying JSON variable substitution for H:\_work_agent\3\s\REDACTED\web\bin\Release\net8.0\appsettings.json
##[error]Failed to apply JSON variable substitution. Changes are already present in the package.
Finishing: Transform appsettings.json

Full task logs with system.debug enabled

No response

Repro steps

@Devvox93
Copy link

Devvox93 commented Feb 5, 2025

Duplicate of #20835

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants