Azure-pipelines-tasks: %25 detected in ##vso command in some Tasks

Created on 28 Jan 2021  Â·  12Comments  Â·  Source: microsoft/azure-pipelines-tasks

Note

##[warning]%25 detected in ##vso command. In March 2021, the agent command parser will be updated to unescape this to %. To opt out of this behavior, set a job level variable DECODE_PERCENTS to false. Setting to true will force this behavior immediately. More information can be found at https://github.com/microsoft/azure-pipelines-agent/blob/master/docs/design/percentEncoding.md

Question, Bug, or Feature?
Bug

Enter Task Name:

Issue Description

As of today we've been getting warnings in Template deploys and in FileTransforms relating to the % encoding feature. The tasks seem to be emitting ##vso commands which contain these characters and so clutter our build logs with warnings.

Task logs

image
image

Core triage

Most helpful comment

I have the same issue. Also, release is not triggered after a new build is available. I am sure it was working

All 12 comments

I have the exact same issue on Docker@2.
It started only a few hours ago

jobs:
  - job: BuildAndPush
    displayName: Build and Push Image
    pool:
      vmImage: ubuntu-16.04
     steps:

      - task: Docker@2
         inputs:
         command: login
         containerRegistry: docker-service-connection

      - task: Docker@2
         displayName: Build and push image
         inputs:
          command: buildAndPush
          containerRegistry: docker-service-connection
          repository: ${{ parameters.imageRepository }}
          dockerfile: ${{ parameters.dockerfilePath }}
          tags: |
            ${{ parameters.tag1 }}
            ${{ parameters.tag2 }}

output:

##[warning]%25 detected in ##vso command. In March 2021, the agent command parser will be updated to unescape this 
to %. To opt out of this behavior, set a job level variable DECODE_PERCENTS to false. Setting to true will force this behavior 
immediately. More information can be found at https://github.com/microsoft/azure-pipelines- 
agent/blob/master/docs/design/percentEncoding.md

I have the same issue. Also, release is not triggered after a new build is available. I am sure it was working

Same issue!!

Uploading image.png…

We have started hitting this with the PublishTestResults task as well:

==============================================================================
Task         : Publish Test Results
Description  : Publish test results to Azure Pipelines
Version      : 2.171.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/test/publish-test-results
==============================================================================
##[warning]%25 detected in ##vso command. In March 2021, the agent command parser will be updated to unescape this to %. To opt out of this behavior, set a job level variable DECODE_PERCENTS to false. Setting to true will force this behavior immediately. More information can be found at https://github.com/microsoft/azure-pipelines-agent/blob/master/docs/design/percentEncoding.md

These are coming from tasks that are build in this repo and so it seems like we need to get these all updated before we start blasting everyone's builds with these warnings.

We are seeing this warning during our build when we push a Docker image to a container registry

Same issue!!

Uploading image.png…

Which tasks is this? Your image is broken.

Bumping, we get this with when using:

- task: CopyFiles@2

maybe related to this?
microsoft/azure-pipelines-agent#3204

it also happens to us
AzureCli@2 (with % in parameter or inline script)
AzureRmWebAppDeployment@3 (did not try to update to @4 yet)

Same here.

image

Which commands? I'm trying to keep an updated list in my issue

Which commands? I'm trying to keep an updated list in my issue

I get it by using AzureResourceGroupDeployment@2
Not sure what commands internally are used.

I see this too. But this is happening when the nuget security analysis job runs (This is injected by policy. So i do not control it).

__**Nuget Security Analysis (auto-injected by policy)

Starting: Nuget Security Analysis (auto-injected by policy)

Task : Nuget Security Analysis
Description : A task to scan for vulnerabilities in nuget files.
Version : 0.1.60
Author : Microsoft Corporation

Help : See https://aka.ms/nugetsecurityanalysis for more information. Please contact [email protected] if you run into problems or have questions with this task.

For more information please visit: https://aka.ms/nugetsecurityanalysis

[warning]%25 detected in ##vso command. In March 2021, the agent command parser will be updated to unescape this to %. To opt out of this behavior, set a job level variable DECODE_PERCENTS to false. Setting to true will force this behavior immediately. More information can be found at https://github.com/microsoft/azure-pipelines-agent/blob/master/docs/design/percentEncoding.md

Finishing: Nuget Security Analysis (auto-injected by policy)_**_

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MichaelWhiteCodingForFun picture MichaelWhiteCodingForFun  Â·  3Comments

jabbera picture jabbera  Â·  3Comments

yaananth picture yaananth  Â·  3Comments

syltaxue picture syltaxue  Â·  3Comments

ThomasBarnekow picture ThomasBarnekow  Â·  3Comments