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 fails for empty object JSON files #20584

Open
5 of 7 tasks
JamesInDenver opened this issue Oct 22, 2024 · 0 comments
Open
5 of 7 tasks

[BUG]: FileTransform@2 fails for empty object JSON files #20584

JamesInDenver opened this issue Oct 22, 2024 · 0 comments

Comments

@JamesInDenver
Copy link

New issue checklist

Task name

FileTransform

Task version

2

Issue Description

An empty object ({}) in a JSON file causes FileTransform@2 task to fail.

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 Server 2019, 2022 & Ubuntu 20.04

Relevant log output

##[error]Error: ShortFileBufferError /home/vsts/work/1/a/publish/appsettings.json

Full task logs with system.debug enabled

2024-10-22T17:11:18.1353758Z ##[debug]Evaluating condition for step: 'Transform settings files'
2024-10-22T17:11:18.1354874Z ##[debug]Evaluating: SucceededNode()
2024-10-22T17:11:18.1355293Z ##[debug]Evaluating SucceededNode:
2024-10-22T17:11:18.1356014Z ##[debug]=> True
2024-10-22T17:11:18.1356420Z ##[debug]Result: True
2024-10-22T17:11:18.1356816Z ##[section]Starting: Transform settings files
2024-10-22T17:11:18.1363266Z ==============================================================================
2024-10-22T17:11:18.1363464Z Task : File transform
2024-10-22T17:11:18.1363610Z Description : Replace tokens with variable values in XML or JSON configuration files
2024-10-22T17:11:18.1364013Z Version : 2.246.1
2024-10-22T17:11:18.1364147Z Author : Microsoft Corporation
2024-10-22T17:11:18.1364300Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/file-transform
2024-10-22T17:11:18.1364498Z ==============================================================================
2024-10-22T17:11:18.2320757Z ##[debug]Using node path: /home/vsts/agents/3.245.0/externals/node20_1/bin/node
2024-10-22T17:11:18.3207495Z ##[debug]agent.TempDirectory=/home/vsts/work/_temp
2024-10-22T17:11:18.3221925Z ##[debug]loading inputs and endpoints
2024-10-22T17:11:18.3230369Z ##[debug]loading INPUT_FOLDERPATH
2024-10-22T17:11:18.3252539Z ##[debug]loading INPUT_JSONTARGETFILES
2024-10-22T17:11:18.3257624Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2024-10-22T17:11:18.3262165Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2024-10-22T17:11:18.3266394Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2024-10-22T17:11:18.3278375Z ##[debug]loading SECRET_PAT5
2024-10-22T17:11:18.3283039Z ##[debug]loading SECRET_ENV_PASSWORD_TEST
2024-10-22T17:11:18.3288666Z ##[debug]loading SECRET_ENV_FEEDTOKEN_NUGET_QA_TEMP
2024-10-22T17:11:18.3293141Z ##[debug]loading SECRET_PAT3BASE64READWRITE
2024-10-22T17:11:18.3298820Z ##[debug]loading SECRET_ENV_PASSWORD_QA
2024-10-22T17:11:18.3304478Z ##[debug]loading SECRET_ENV_PASSWORD_PROD
2024-10-22T17:11:18.3310573Z ##[debug]loading SECRET_ENV_FEEDTOKEN_QA_PACKAGES
2024-10-22T17:11:18.3315356Z ##[debug]loading SECRET_PAT
2024-10-22T17:11:18.3320403Z ##[debug]loading SECRET_ENV_FEEDTOKEN_PROD_PACKAGES
2024-10-22T17:11:18.3324521Z ##[debug]loading SECRET_JWT_AUDIENCE
2024-10-22T17:11:18.3329352Z ##[debug]loading SECRET_JWT_SYMMETRICKEY
2024-10-22T17:11:18.3334317Z ##[debug]loading SECRET_ENV_FEEDTOKEN_NUGET_PROD_TEMP
2024-10-22T17:11:18.3356022Z ##[debug]loading SECRET_PAT8BASE64READWRITE
2024-10-22T17:11:18.3357143Z ##[debug]loading SECRET_PAT2
2024-10-22T17:11:18.3358094Z ##[debug]loading SECRET_PAT7
2024-10-22T17:11:18.3359399Z ##[debug]loading SECRET_CORESECURITYOPTIONS_HEALTHCHECKSETTINGS_APIKEY
2024-10-22T17:11:18.3360115Z ##[debug]loading SECRET_PAT4TEST
2024-10-22T17:11:18.3360734Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
2024-10-22T17:11:18.3361376Z ##[debug]loaded 23
2024-10-22T17:11:18.3361951Z ##[debug]Agent.ProxyUrl=undefined
2024-10-22T17:11:18.3362543Z ##[debug]Agent.CAInfo=undefined
2024-10-22T17:11:18.3363139Z ##[debug]Agent.ClientCert=undefined
2024-10-22T17:11:18.3363757Z ##[debug]Agent.SkipCertValidation=undefined
2024-10-22T17:11:18.4394837Z ##[debug]check path : /home/vsts/work/_tasks/FileTransform_8ce97e91-56cc-4743-bfab-9a9315be5f27/2.246.1/task.json
2024-10-22T17:11:18.4396191Z ##[debug]adding resource file: /home/vsts/work/_tasks/FileTransform_8ce97e91-56cc-4743-bfab-9a9315be5f27/2.246.1/task.json
2024-10-22T17:11:18.4397029Z ##[debug]system.culture=en-US
2024-10-22T17:11:18.4407153Z ##[debug]check path : /home/vsts/work/_tasks/FileTransform_8ce97e91-56cc-4743-bfab-9a9315be5f27/2.246.1/node_modules/azure-pipelines-tasks-webdeployment-common/module.json
2024-10-22T17:11:18.4408326Z ##[debug]adding resource file: /home/vsts/work/_tasks/FileTransform_8ce97e91-56cc-4743-bfab-9a9315be5f27/2.246.1/node_modules/azure-pipelines-tasks-webdeployment-common/module.json
2024-10-22T17:11:18.4409230Z ##[debug]system.culture=en-US
2024-10-22T17:11:18.4422697Z ##[debug]folderPath=/home/vsts/work/1/a/publish
2024-10-22T17:11:18.4424110Z ##[debug]Finding files matching input: /home/vsts/work/1/a/publish
2024-10-22T17:11:18.4425283Z ##[debug]xmlTransformationRules=undefined
2024-10-22T17:11:18.4426018Z ##[debug]xmlTargetFiles=undefined
2024-10-22T17:11:18.4427036Z ##[debug]jsonTargetFiles=/.json
2024-10-22T17:11:18.4433879Z ##[debug]pat5=

2024-10-22T17:11:18.4434828Z ##[debug]Env_Password_Test=***
2024-10-22T17:11:18.4436091Z ##[debug]Env_FeedToken_NuGet_QA_Temp=***
2024-10-22T17:11:18.4437067Z ##[debug]pat3base64readwrite=***
2024-10-22T17:11:18.4438040Z ##[debug]Env_Password_QA=***
2024-10-22T17:11:18.4438760Z ##[debug]Env_Password_PROD=***
2024-10-22T17:11:18.4441742Z ##[debug]Env_FeedToken_QA_Packages=***
2024-10-22T17:11:18.4442762Z ##[debug]pat=***
2024-10-22T17:11:18.4443740Z ##[debug]Env_FeedToken_Prod_Packages=***
2024-10-22T17:11:18.4445401Z ##[debug]Jwt.Audience=***
2024-10-22T17:11:18.4447276Z ##[debug]Jwt.SymmetricKey=***
2024-10-22T17:11:18.4448576Z ##[debug]Env_FeedToken_NuGet_PROD_Temp=***
2024-10-22T17:11:18.4449306Z ##[debug]pat8base64readwrite=***
2024-10-22T17:11:18.4450289Z ##[debug]pat2=***
2024-10-22T17:11:18.4451212Z ##[debug]pat7=***
2024-10-22T17:11:18.4451878Z ##[debug]CoreSecurityOptions.HealthCheckSettings.ApiKey=***
2024-10-22T17:11:18.4453305Z ##[debug]pat4test=***
2024-10-22T17:11:18.4455749Z ##[debug]system.accessToken=***
2024-10-22T17:11:18.4456584Z ##[debug]agent.acceptteeeula=True
2024-10-22T17:11:18.4457189Z ##[debug]resources.triggeringCategory=
2024-10-22T17:11:18.4457828Z ##[debug]DistributedTask.Agent.FailDeprecatedTask=True
2024-10-22T17:11:18.4458466Z ##[debug]AZP_75787_ENABLE_COLLECT=true
2024-10-22T17:11:18.4459156Z ##[debug]Env_PackageRepository_QA_Packages=https://pkgs.dev.azure.com/***/_git/***
2024-10-22T17:11:18.4459875Z ##[debug]DownloadPipelineArtifact2.BuildNumber=82865
2024-10-22T17:11:18.4460595Z ##[debug]Env_FeedRegistry_Prod_Packages=https://pkgs.dev.azure.com/***/_packaging/***/npm/registry/
2024-10-22T17:11:18.4461319Z ##[debug]system.phaseName=deploy_job_dotnetcore_Test
2024-10-22T17:11:18.4461955Z ##[debug]pipeline.repository.name=***
2024-10-22T17:11:18.4462674Z ##[debug]Env_Servers_Prod=***
2024-10-22T17:11:18.4463459Z ##[debug]build.repository.uri=https://@dev.azure.com//_git/***
2024-10-22T17:11:18.4464302Z ##[debug]ConnectionStrings.Permissions=***
2024-10-22T17:11:18.4466898Z ##[debug]DistributedTask.Agent.UseLatestGitVersion=True
2024-10-22T17:11:18.4467590Z ##[debug]system.collectionUri=https://dev.azure.com/***/
2024-10-22T17:11:18.4468278Z ##[debug]system.teamProjectId=***
2024-10-22T17:11:18.4468926Z ##[debug]system.stageDisplayName=Test
2024-10-22T17:11:18.4469713Z ##[debug]Serilog.WriteTo.1.Args.connectionString=Server=***
2024-10-22T17:11:18.4470506Z ##[debug]DistributedTask.Agent.DockerActionRetries=True
2024-10-22T17:11:18.4471148Z ##[debug]task.displayname=Transform settings files
2024-10-22T17:11:18.4472511Z ##[debug]USE_MSAL=true
2024-10-22T17:11:18.4473177Z ##[debug]DistributedTask.Agent.FailDeprecatedBuildTask=True
2024-10-22T17:11:18.4473832Z ##[debug]DistributedTask.Agent.USENEWNODEHANDLERTELEMETRY=True
2024-10-22T17:11:18.4474498Z ##[debug]system.jobName=deploy_job_dotnetcore_Test
2024-10-22T17:11:18.4475131Z ##[debug]system.definitionName=***
2024-10-22T17:11:18.4475776Z ##[debug]agent.homedirectory=/home/vsts/agents/3.245.0
2024-10-22T17:11:18.4476422Z ##[debug]agent.taskRestrictionsEnforcementMode=Enabled
2024-10-22T17:11:18.4477051Z ##[debug]USE_LATEST_GIT_VERSION=true
2024-10-22T17:11:18.4477660Z ##[debug]pipeline.workspace=/home/vsts/work/1
2024-10-22T17:11:18.4478525Z ##[debug]system.culture=en-US
2024-10-22T17:11:18.4479110Z ##[debug]task.skipTranslatorForCheckout=False
2024-10-22T17:11:18.4479716Z ##[debug]system.isazurevm=1
2024-10-22T17:11:18.4480426Z ##[debug]Env_FeedRegistry_NuGet_Prod_Packages=https://pkgs.dev.azure.com/***/_packaging/***/nuget/v3/index.json
2024-10-22T17:11:18.4481144Z ##[debug]build.buildNumber=20241022-001
2024-10-22T17:11:18.4481758Z ##[debug]VSTSAGENT_DOCKER_ACTION_RETRIES=true
2024-10-22T17:11:18.4482401Z ##[debug]DistributedTask.Agent.LogToBlobstorageService=True
2024-10-22T17:11:18.4485362Z ##[debug]agent.jobstatus=Succeeded
2024-10-22T17:11:18.4485984Z ##[debug]agent.builddirectory=/home/vsts/work/1
2024-10-22T17:11:18.4486605Z ##[debug]COPYFILESOVERSSHV0_USE_QUEUE=true
2024-10-22T17:11:18.4487207Z ##[debug]build.reason=Manual
2024-10-22T17:11:18.4489295Z ##[debug]DistributedTask.Agent.UseGitLongPaths=True
2024-10-22T17:11:18.4489942Z ##[debug]system.taskInstanceName=FileTransform
2024-10-22T17:11:18.4490611Z ##[debug]DistributedTask.Agent.ForceUpdateToLatest2Version=False
2024-10-22T17:11:18.4491273Z ##[debug]AZP_75787_ENABLE_NEW_LOGIC_LOG=false
2024-10-22T17:11:18.4491892Z ##[debug]CIVar.ciOnPremPool=***
2024-10-22T17:11:18.4492504Z ##[debug]build.repository.clean=False
2024-10-22T17:11:18.4493139Z ##[debug]agent.disablelogplugin.TestFilePublisherPlugin=true
2024-10-22T17:11:18.4493838Z ##[debug]system.jobIdentifier=test_stage.deploy_job_dotnetcore_Test.deploy_job_dotnetcore_Test
2024-10-22T17:11:18.4494515Z ##[debug]ProjectPath=***
2024-10-22T17:11:18.4495154Z ##[debug]DistributedTask.Agent.UseFetchFilterInCheckoutTask=True
2024-10-22T17:11:18.4495784Z ##[debug]system.hosttype=build
2024-10-22T17:11:18.4497382Z ##[debug]AZP_75787_ENABLE_NEW_PH_LOGIC=true
2024-10-22T17:11:18.4498039Z ##[debug]build.sourceVersion=***
2024-10-22T17:11:18.4498694Z ##[debug]build.sourceBranch=refs/heads/master
2024-10-22T17:11:18.4499321Z ##[debug]CIVar.ciOnPremLinuxPool=***
2024-10-22T17:11:18.4499935Z ##[debug]build.definitionFolderPath=***
2024-10-22T17:11:18.4500594Z ##[debug]system.phaseDisplayName=Deploy .NET Core artifact to Test
2024-10-22T17:11:18.4501280Z ##[debug]build.requestedForEmail=***
2024-10-22T17:11:18.4501915Z ##[debug]agent.workfolder=/home/vsts/work
2024-10-22T17:11:18.4502512Z ##[debug]system.jobAttempt=1
2024-10-22T17:11:18.4503137Z ##[debug]system.stageId=5cbcdf54-45ca-5498-8e3a-1b8bb0e985e7
2024-10-22T17:11:18.4503810Z ##[debug]DistributedTask.Agent.EnableResourceUtilizationWarnings=True
2024-10-22T17:11:18.4505291Z ##[debug]agent.osarchitecture=X64
2024-10-22T17:11:18.4506020Z ##[debug]Env_FeedRegistry_NuGet_QA_Packages=https://pkgs.dev.azure.com/***/_packaging/***/nuget/v3/index.json
2024-10-22T17:11:18.4506736Z ##[debug]system.pullRequest.isFork=False
2024-10-22T17:11:18.4507345Z ##[debug]build.queuedBy=***
2024-10-22T17:11:18.4507939Z ##[debug]agent.version=3.245.0
2024-10-22T17:11:18.4508582Z ##[debug]DistributedTask.Agent.FixPossibleGitOutOfMemoryProblem=False
2024-10-22T17:11:18.4509440Z ##[debug]VSTSAGENT_CONTINUE_AFTER_CANCEL_PROCESSTREEKILL_ATTEMPT=true
2024-10-22T17:11:18.4569603Z ##[debug]build.definitionName=***
2024-10-22T17:11:18.4570241Z ##[debug]system.enableAccessToken=SecretVariable
2024-10-22T17:11:18.4571120Z ##[debug]System.OidcRequestUri=***
2024-10-22T17:11:18.4572289Z ##[debug]system.jobDisplayName=Deploy .NET Core artifact to Test
2024-10-22T17:11:18.4574919Z ##[debug]AZP_AGENT_LOG_TASKNAME_IN_USERAGENT=true
2024-10-22T17:11:18.4576689Z ##[debug]CIVar.ciCloudPool=Azure Pipelines
2024-10-22T17:11:18.4577351Z ##[debug]VSTS_PROCESS_LOOKUP_ID=vsts_a6654854-7e7f-4a65-9e0f-9f1ab4317f3f
2024-10-22T17:11:18.4578037Z ##[debug]DistributedTask.Agent.IgnoreVSTSTaskLib=True
2024-10-22T17:11:18.4578720Z ##[debug]CIVar.OpenJDKPath=E:\OpenJDK17U-jdk_x64_windows_hotspot_17.0.6_10.zip
2024-10-22T17:11:18.4579456Z ##[debug]system.pipelineStartTime=2024-10-22 11:10:53-06:00
2024-10-22T17:11:18.4580807Z ##[debug]agent.disablelogplugin.TestResultLogPlugin=true
2024-10-22T17:11:18.4581431Z ##[debug]system.stageName=test_stage
2024-10-22T17:11:18.4582059Z ##[debug]agent.ToolsDirectory=/opt/hostedtoolcache
2024-10-22T17:11:18.4582715Z ##[debug]system.timelineId=cd4837a1-8d8d-48d6-9cfa-57644fff0d2d
2024-10-22T17:11:18.4583358Z ##[debug]system.stageAttempt=1
2024-10-22T17:11:18.4584616Z ##[debug]system.planId=cd4837a1-8d8d-48d6-9cfa-57644fff0d2d
2024-10-22T17:11:18.4585285Z ##[debug]DistributedTask.Agent.EnableIssueSourceValidation=True
2024-10-22T17:11:18.4585939Z ##[debug]build.queuedById=***
2024-10-22T17:11:18.4586568Z ##[debug]agent.isselfhosted=0
2024-10-22T17:11:18.4587202Z ##[debug]common.testresultsdirectory=/home/vsts/work/1/TestResults
2024-10-22T17:11:18.4587884Z ##[debug]agent.retainDefaultEncoding=false
2024-10-22T17:11:18.4589143Z ##[debug]AGENT_ENABLE_PIPELINEARTIFACT_LARGE_CHUNK_SIZE=true
2024-10-22T17:11:18.4589761Z ##[debug]system=build
2024-10-22T17:11:18.4590382Z ##[debug]agent.jobname=Deploy .NET Core artifact to Test
2024-10-22T17:11:18.4591691Z ##[debug]AZP_PS_ENABLE_INVOKE_PROCESS=true
2024-10-22T17:11:18.4592290Z ##[debug]FAIL_DEPRECATED_TASK=true
2024-10-22T17:11:18.4598639Z ##[debug]system.taskInstanceId=d397fc72-d0cc-58e7-f323-72ac9e2a2907
2024-10-22T17:11:18.4599841Z ##[debug]DownloadPipelineArtifact3.BuildNumber=82865
2024-10-22T17:11:18.4600496Z ##[debug]task.publishTelemetry=True
2024-10-22T17:11:18.4601118Z ##[debug]build.requestedFor=***
2024-10-22T17:11:18.4601729Z ##[debug]system.isdockercontainer=0
2024-10-22T17:11:18.4603061Z ##[debug]GIT_TERMINAL_PROMPT=0
2024-10-22T17:11:18.4603668Z ##[debug]system.jobParallelismTag=Private
2024-10-22T17:11:18.4604957Z ##[debug]DistributedTask.Agent.MountWorkspace=True
2024-10-22T17:11:18.4605611Z ##[debug]build.repository.localpath=/home/vsts/work/1/s
2024-10-22T17:11:18.4606240Z ##[debug]AZP_75787_ENABLE_NEW_LOGIC=false
2024-10-22T17:11:18.4607135Z ##[debug]system.debug=True
2024-10-22T17:11:18.4607752Z ##[debug]system.phaseId=0dc91dce-a7cd-523f-09d7-09ce8a8b63b2
2024-10-22T17:11:18.4608386Z ##[debug]system.phaseAttempt=1
2024-10-22T17:11:18.4609080Z ##[debug]Env_PackageRepository_Prod_Packages=https://pkgs.dev.azure.com/***/***/_git/***
2024-10-22T17:11:18.4609823Z ##[debug]DistributedTask.Tasks.RetireAzureRMPowerShellModule=True
2024-10-22T17:11:18.4610483Z ##[debug]agent.RootDirectory=/home/vsts/work
2024-10-22T17:11:18.4611139Z ##[debug]build.repository.id=***
2024-10-22T17:11:18.4612032Z ##[debug]build.sourceVersionMessage=***
2024-10-22T17:11:18.4612774Z ##[debug]agent.readOnlyVariables=true
2024-10-22T17:11:18.4613422Z ##[debug]build.artifactstagingdirectory=/home/vsts/work/1/a
2024-10-22T17:11:18.4614075Z ##[debug]DistributedTask.Agent.FailJobWhenAgentDies=True
2024-10-22T17:11:18.4614732Z ##[debug]AGENT_USE_FETCH_FILTER_IN_CHECKOUT_TASK=true
2024-10-22T17:11:18.4615381Z ##[debug]build.binariesdirectory=/home/vsts/work/1/b
2024-10-22T17:11:18.4616369Z ##[debug]build.Repository.name=***
2024-10-22T17:11:18.4619596Z ##[debug]DownloadPipelineArtifact.BuildNumber=82865
2024-10-22T17:11:18.4620915Z ##[debug]ENABLE_ISSUE_SOURCE_VALIDATION=true
2024-10-22T17:11:18.4622825Z ##[debug]system.teamProject=***
2024-10-22T17:11:18.4623480Z ##[debug]DistributedTask.Tasks.CopyFilesOverSSHV0UseQueue=True
2024-10-22T17:11:18.4624170Z ##[debug]DistributedTask.Agent.EnableResourceMonitorDebugOutput=True
2024-10-22T17:11:18.4624820Z ##[debug]agent.TempDirectory=/home/vsts/work/temp
2024-10-22T17:11:18.4625445Z ##[debug]build.containerId=29416018
2024-10-22T17:11:18.4626120Z ##[debug]MSDEPLOY_HTTP_USER_AGENT=VSTS
build_1330_0
2024-10-22T17:11:18.4626845Z ##[debug]DistributedTask.Agent.ContinueAfterCancelProcessTreeKillAttempt=True
2024-10-22T17:11:18.4627533Z ##[debug]AZP_AGENT_CHECK_FOR_TASK_DEPRECATION=true
2024-10-22T17:11:18.4628226Z ##[debug]AZURE_HTTP_USER_AGENT=VSTS
_build_1330_0
2024-10-22T17:11:18.4628885Z ##[debug]agent.useWorkspaceId=true
2024-10-22T17:11:18.4631012Z ##[debug]DistributedTask.Agent.EnableAdditionalMaskingRegexes=True
2024-10-22T17:11:18.4631648Z ##[debug]resources.triggeringAlias=
2024-10-22T17:11:18.4632502Z ##[debug]DistributedTask.Agent.ReadOnlyVariables=True
2024-10-22T17:11:18.4633286Z ##[debug]agent.name=Hosted Agent
2024-10-22T17:11:18.4634381Z ##[debug]DistributedTask.Agent.UseDockerComposeV2CompatibleMode=False
2024-10-22T17:11:18.4635245Z ##[debug]system.jobId=***
2024-10-22T17:11:18.4636143Z ##[debug]AZP_ENABLE_RESOURCE_MONITOR_DEBUG_OUTPUT=true
2024-10-22T17:11:18.4636893Z ##[debug]system.jobTimeout=60
2024-10-22T17:11:18.4637664Z ##[debug]DistributedTask.Agent.Rosetta2Warning=True
2024-10-22T17:11:18.4638502Z ##[debug]agent.os=Linux
2024-10-22T17:11:18.4639282Z ##[debug]DistributedTask.Agent.UseWorkspaceId=True
2024-10-22T17:11:18.4640058Z ##[debug]system.postLinesSpeed=500
2024-10-22T17:11:18.4640926Z ##[debug]system.taskDisplayName=Transform settings files
2024-10-22T17:11:18.4641903Z ##[debug]AZP_ENABLE_RESOURCE_UTILIZATION_WARNINGS=true
2024-10-22T17:11:18.4642735Z ##[debug]DistributedTask.Tasks.Node.SkipDebugLogsWhenDebugModeOff=True
2024-10-22T17:11:18.4643538Z ##[debug]build.buildId=82865
2024-10-22T17:11:18.4644303Z ##[debug]USE_GIT_LONG_PATHS=true
2024-10-22T17:11:18.4645080Z ##[debug]build.buildUri=vstfs:///Build/Build/82865
2024-10-22T17:11:18.4645901Z ##[debug]agent.id=27
2024-10-22T17:11:18.4646634Z ##[debug]system.workfolder=/home/vsts/work
2024-10-22T17:11:18.4647485Z ##[debug]agent.LogToBlobstorageService=true
2024-10-22T17:11:18.4648418Z ##[debug]build.requestedForId=***
2024-10-22T17:11:18.4649166Z ##[debug]build.sourceBranchName=***
2024-10-22T17:11:18.4650022Z ##[debug]system.definitionId=***
2024-10-22T17:11:18.4651547Z ##[debug]ROSETTA2_WARNING=true
2024-10-22T17:11:18.4680642Z ##[debug]agent.machinename=fv-az430-377
2024-10-22T17:11:18.4681491Z ##[debug]system.servertype=Hosted
2024-10-22T17:11:18.4682315Z ##[debug]system.teamFoundationCollectionUri=https://dev.azure.com/***/
2024-10-22T17:11:18.4683223Z ##[debug]DistributedTask.Agent.UseMsalLibrary=True
2024-10-22T17:11:18.4693357Z ##[debug]build.stagingdirectory=/home/vsts/work/1/a
2024-10-22T17:11:18.4694268Z ##[debug]DistributedTask.Agent.LogTaskNameInUserAgent=True
2024-10-22T17:11:18.4695216Z ##[debug]DistributedTask.Agent.AgentEnablePipelineArtifactLargeChunkSize=True
2024-10-22T17:11:18.4696186Z ##[debug]FAIL_JOB_WHEN_AGENT_DIES=true
2024-10-22T17:11:18.4698780Z ##[debug]Environment.Id=3
2024-10-22T17:11:18.4699532Z ##[debug]USE_MSDEPLOY_TOKEN_AUTH=true
2024-10-22T17:11:18.4700359Z ##[debug]AZP_AGENT_MOUNT_WORKSPACE=true
2024-10-22T17:11:18.4701146Z ##[debug]system.taskDefinitionsUri=https://dev.azure.com/***/
2024-10-22T17:11:18.4702059Z ##[debug]system.defaultworkingdirectory=/home/vsts/work/1/s
2024-10-22T17:11:18.4702781Z ##[debug]AZP_AGENT_IGNORE_VSTSTASKLIB=true
2024-10-22T17:11:18.4703525Z ##[debug]agent.diagnostic=True
2024-10-22T17:11:18.4704533Z ##[debug]DistributedTask.Agent.AddForceCredentialsToGitCheckout=True
2024-10-22T17:11:18.4705421Z ##[debug]system.TeamFoundationServerUri=https://dev.azure.com/***/
2024-10-22T17:11:18.4706217Z ##[debug]RETIRE_AZURERM_POWERSHELL_MODULE=true
2024-10-22T17:11:18.4707112Z ##[debug]build.sourceVersionAuthor=***
2024-10-22T17:11:18.4707922Z ##[debug]system.artifactsdirectory=/home/vsts/work/1/a
2024-10-22T17:11:18.4708741Z ##[debug]system.isScheduled=False
2024-10-22T17:11:18.4716000Z ##[debug]agent.cloudid=***
2024-10-22T17:11:18.4716853Z ##[debug]build.sourcesdirectory=/home/vsts/work/1/s
2024-10-22T17:11:18.4718690Z ##[debug]system.collectionId=***
2024-10-22T17:11:18.4719507Z ##[debug]build.definitionVersion=2
2024-10-22T17:11:18.4720354Z ##[debug]build.repository.provider=TfsGit
2024-10-22T17:11:18.4721113Z ##[debug]FAIL_DEPRECATED_BUILD_TASK=true
2024-10-22T17:11:18.4721638Z Applying JSON variable substitution for /*.json
2024-10-22T17:11:18.4722419Z ##[debug]Finding files matching input: /home/vsts/work/1/a/publish/
/.json
2024-10-22T17:11:18.4723250Z ##[debug]Matching glob pattern: /home/vsts/work/1/a/publish/**/
.json
2024-10-22T17:11:18.4724021Z ##[debug]Index of first wildcard: 28
2024-10-22T17:11:18.4724867Z ##[debug]find root dir: /home/vsts/work/1/a/publish/
2024-10-22T17:11:18.4725638Z ##[debug]findPath: '/home/vsts/work/1/a/publish/'
2024-10-22T17:11:18.4726381Z ##[debug]findOptions.allowBrokenSymbolicLinks: 'false'
2024-10-22T17:11:18.4727235Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true'
2024-10-22T17:11:18.4728009Z ##[debug]findOptions.followSymbolicLinks: 'true'
2024-10-22T17:11:18.4728820Z ##[debug]findOptions.skipMissingFiles: 'false'
2024-10-22T17:11:18.4729648Z ##[debug] /home/vsts/work/1/a/publish/ (directory)


2024-10-22T17:11:18.5089616Z ##[debug] /home/vsts/work/1/a/publish/appsettings.Development.json (file)
2024-10-22T17:11:18.5090323Z ##[debug] /home/vsts/work/1/a/publish/appsettings.json (file)
2024-10-22T17:11:18.5090974Z ##[debug] /home/vsts/work/1/a/publish/coresettings.json (file)
2024-10-22T17:11:18.5093411Z ##[debug] /home/vsts/work/1/a/publish/permissionssettings.json (file)
2024-10-22T17:11:18.5113739Z ##[debug] /home/vsts/work/1/a/publish/serilogsettings.json (file)
2024-10-22T17:11:18.5114402Z ##[debug] /home/vsts/work/1/a/publish/web.config (file)
2024-10-22T17:11:18.5115006Z ##[debug]130 results
2024-10-22T17:11:18.5115572Z ##[debug]patternRoot: ''
2024-10-22T17:11:18.5116151Z ##[debug]matchOptions.debug: 'undefined'
2024-10-22T17:11:18.5116754Z ##[debug]matchOptions.nobrace: 'undefined'
2024-10-22T17:11:18.5117373Z ##[debug]matchOptions.noglobstar: 'undefined'
2024-10-22T17:11:18.5117980Z ##[debug]matchOptions.dot: 'undefined'
2024-10-22T17:11:18.5118592Z ##[debug]matchOptions.noext: 'undefined'
2024-10-22T17:11:18.5119199Z ##[debug]matchOptions.nocase: 'false'
2024-10-22T17:11:18.5119801Z ##[debug]matchOptions.nonull: 'undefined'
2024-10-22T17:11:18.5120403Z ##[debug]matchOptions.matchBase: 'true'
2024-10-22T17:11:18.5121002Z ##[debug]matchOptions.nocomment: 'undefined'
2024-10-22T17:11:18.5121631Z ##[debug]matchOptions.nonegate: 'undefined'
2024-10-22T17:11:18.5122260Z ##[debug]matchOptions.flipNegate: 'undefined'
2024-10-22T17:11:18.5122896Z ##[debug]pattern: '/home/vsts/work/1/a/publish//.json'
2024-10-22T17:11:18.5123497Z ##[debug]expanding braces
2024-10-22T17:11:18.5124107Z ##[debug]applying include pattern against original list
2024-10-22T17:11:18.5124702Z ##[debug]8 matches
2024-10-22T17:11:18.5125255Z ##[debug]8 final results
2024-10-22T17:11:18.5125834Z ##[debug]Detecting file encoding using BOM
2024-10-22T17:11:18.5126461Z ##[debug]Unable to detect File encoding using BOM
2024-10-22T17:11:18.5127098Z ##[debug]Detecting file encoding without BOM
2024-10-22T17:11:18.5127764Z Applying JSON variable substitution for /home/vsts/work/1/a/publish/
.deps.json
2024-10-22T17:11:18.5128370Z ##[debug]Detecting file encoding using BOM
2024-10-22T17:11:18.5128980Z ##[debug]Unable to detect File encoding using BOM
2024-10-22T17:11:18.5129609Z ##[debug]Detecting file encoding without BOM
2024-10-22T17:11:18.5130132Z Applying JSON variable substitution for /home/vsts/work/1/a/publish/***.runtimeconfig.json
2024-10-22T17:11:18.5130770Z ##[debug]Detecting file encoding using BOM
2024-10-22T17:11:18.5131384Z ##[debug]Unable to detect File encoding using BOM
2024-10-22T17:11:18.5132021Z ##[debug]Detecting file encoding without BOM
2024-10-22T17:11:18.5132528Z Applying JSON variable substitution for /home/vsts/work/1/a/publish/appsettings.Development.json
2024-10-22T17:11:18.5170301Z ##[warning]Can't find loc string for key: ShortFileBufferError
2024-10-22T17:11:18.5179009Z ##[debug]Processed: ##vso[task.issue type=warning;source=TaskInternal;correlationId=61faa3aa-2791-41ab-9815-5d6649d35b32;]Can't find loc string for key: ShortFileBufferError
2024-10-22T17:11:18.5180223Z ##[debug]task result: Failed
2024-10-22T17:11:18.5181454Z ##[error]Error: ShortFileBufferError /home/vsts/work/1/a/publish/appsettings.json
2024-10-22T17:11:18.5182219Z ##[debug]Processed: ##vso[task.issue type=error;source=TaskInternal;correlationId=61faa3aa-2791-41ab-9815-5d6649d35b32;]Error: ShortFileBufferError /home/vsts/work/1/a/publish/appsettings.json
2024-10-22T17:11:18.5184341Z ##[debug]Processed: ##vso[task.complete result=Failed;]Error: ShortFileBufferError /home/vsts/work/1/a/publish/appsettings.json
2024-10-22T17:11:18.5186653Z ##[section]Finishing: Transform settings files

Repro steps

  • task: FileTransform@2
    displayName: "Transform settings files"
    inputs:
    folderPath: "$(Build.ArtifactStagingDirectory)/publish"
    jsonTargetFiles: '**/*.json'
    xmlTransformationRules: ''
    xmlTargetFiles: ''
@v-schhabra v-schhabra added Area:RM RM task team and removed Area: Artifacts labels Oct 23, 2024
@v-schhabra v-schhabra added Area:RM RM task team and removed Area:RM RM task team labels Nov 10, 2024
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

2 participants