Skip to content

[BUG]: My YAML pipeline gets picked up by v3.251.0 Microsoft-hosted agents for windows-latest and ubuntu-latest #5168

Open
@turbobobbytraykov

Description

@turbobobbytraykov

What happened?

I have a pipeline I'd like to run on the Microsoft-hosted windows-latest agent & to try to take advantage of the sparse checkout feature.

However, I noticed that my pipeline consistently gets executed on agent version 3.251.0 - regardless if I try using windows-latest or ubuntu-latest.

I even tried stripping down the pipeline to just the git repos' checkout steps and this still happens.

resources:
  repositories:
  - repository: repo1
    type: git
    name: project/repo1
    ref: develop #$(Build.SourceBranch)
    trigger: none
  - repository: repo2
    type: git 
    name: project/repo2
    ref: develop #$(Build.SourceBranch)
    trigger: none
  - repository: repo3
    type: git 
    name: project/repo3
    ref: develop #$(Build.SourceBranch)
    trigger: none

pr: none

name: $(productVersion)-pr.$(prId)-$(prIteration)

variables:
  - group: REDACTED1
  - group: REDACTED2
  - name: prId
    value: $[coalesce(variables['System.PullRequest.PullRequestId'], '000')]
  - name: prIteration
    value: $[counter(variables['prId'], 1)]
  - name: buildversion
    value: $(productVersion)-pr.$(prId)-$(prIteration)
  - name: configuration
    value: Release

stages:
- stage: BuildDotnetDistribution
  displayName: 'Build dotnet distribution'
  pool:
   vmImage: windows-latest

  jobs:
  - job: Build
    displayName: 'Build '

    steps:
    - checkout: repo1
      fetchDepth: 1
      fetchTags: false
      lfs: true
      sparseCheckoutPatterns: |
        /*
        !/Android/
        !/iOS/

    - checkout: Shared
      fetchDepth: 1
      fetchTags: false
      lfs: true

    - checkout: Services
      fetchDepth: 1
      fetchTags: false
      lfs: true

I noticed this for other pipelines in other projects as well.

I was able to get a 4.252.0 agent for both ubuntu-latest and windows latest only for a very simple pipeline:

trigger:
- master

pool:
  vmImage: windows-latest

steps:
- task: CmdLine@2
  inputs:
    script: |
      echo $(Agent.Name)
          echo $(Agent.JobName)
          echo $(System.JobId)
          echo $(System.JobName)
          echo $(System.PlanId)
          echo $(System.DefinitionId)
          echo $(Build.BuildId)
          echo $(Build.BuildNumber)

Versions

windows-latest:
OS Version: 10.0.20348 Build 3328
Image Version: 20250330.1.0

ubuntu-latest:
OS Version: 22.04.5 LTS
Kernel Version: 6.8.0-1021-azure
Image Version: 20250323.1.0
Systemd version: 249.11-0ubuntu3.12

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

  • Microsoft Hosted
  • Self-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 2022 & Ubuntu 22.04

Version controll system

git

Relevant log output

Starting: Initialize job
Agent name: 'Azure Pipelines 2'
Agent machine name: 'fv-az625-222'
Current agent version: '3.251.0'
Operating System
Runner Image
Runner Image Provisioner
Current image version: '20250330.1.0'
Agent running as: 'VssAdministrator'
##[debug]Triggering repository: repo1. repository type: Git
Prepare build directory.
##[debug]Creating build directory: 'D:\a\1'
##[debug]Delete existing artifacts directory: 'D:\a\1\a'
##[debug]Creating artifacts directory: 'D:\a\1\a'
##[debug]Delete existing test results directory: 'D:\a\1\TestResults'
##[debug]Creating test results directory: 'D:\a\1\TestResults'
##[debug]Creating binaries directory: 'D:\a\1\b'
##[debug]Creating source directory: 'D:\a\1\s'
##[debug]Creating repository source directory: 'D:\a\1\s\repo1'
##[debug]Creating repository source directory: 'D:\a\1\s\repo2'
##[debug]Creating repository source directory: 'D:\a\1\s\repo3'
Set build variables.
Download all required tasks.
Checking job knob settings.
   Knob: DockerActionRetries = true Source: $(VSTSAGENT_DOCKER_ACTION_RETRIES) 
   Knob: AgentToolsDirectory = C:\hostedtoolcache\windows Source: ${AGENT_TOOLSDIRECTORY} 
   Knob: UseGitLongPaths = true Source: $(USE_GIT_LONG_PATHS) 
   Knob: AgentPerflog = c:\vsts\perflog Source: ${VSTS_AGENT_PERFLOG} 
   Knob: EnableIssueSourceValidation = true Source: $(ENABLE_ISSUE_SOURCE_VALIDATION) 
   Knob: AgentEnablePipelineArtifactLargeChunkSize = true Source: $(AGENT_ENABLE_PIPELINEARTIFACT_LARGE_CHUNK_SIZE) 
   Knob: ContinueAfterCancelProcessTreeKillAttempt = true Source: $(VSTSAGENT_CONTINUE_AFTER_CANCEL_PROCESSTREEKILL_ATTEMPT) 
   Knob: ProcessHandlerSecureArguments = false Source: $(AZP_75787_ENABLE_NEW_LOGIC) 
   Knob: ProcessHandlerSecureArguments = false Source: $(AZP_75787_ENABLE_NEW_LOGIC_LOG) 
   Knob: ProcessHandlerTelemetry = true Source: $(AZP_75787_ENABLE_COLLECT) 
   Knob: UseNewNodeHandlerTelemetry = True Source: $(DistributedTask.Agent.USENEWNODEHANDLERTELEMETRY) 
   Knob: ProcessHandlerEnableNewLogic = true Source: $(AZP_75787_ENABLE_NEW_PH_LOGIC) 
   Knob: EnableResourceMonitorDebugOutput = true Source: $(AZP_ENABLE_RESOURCE_MONITOR_DEBUG_OUTPUT) 
   Knob: EnableResourceUtilizationWarnings = true Source: $(AZP_ENABLE_RESOURCE_UTILIZATION_WARNINGS) 
   Knob: IgnoreVSTSTaskLib = true Source: $(AZP_AGENT_IGNORE_VSTSTASKLIB) 
   Knob: FailJobWhenAgentDies = true Source: $(FAIL_JOB_WHEN_AGENT_DIES) 
   Knob: CheckForTaskDeprecation = true Source: $(AZP_AGENT_CHECK_FOR_TASK_DEPRECATION) 
   Knob: CheckIfTaskNodeRunnerIsDeprecated246 = False Source: $(DistributedTask.Agent.CheckIfTaskNodeRunnerIsDeprecated246) 
   Knob: UseNode20ToStartContainer = True Source: $(DistributedTask.Agent.UseNode20ToStartContainer) 
   Knob: LogTaskNameInUserAgent = true Source: $(AZP_AGENT_LOG_TASKNAME_IN_USERAGENT) 
   Knob: UseFetchFilterInCheckoutTask = true Source: $(AGENT_USE_FETCH_FILTER_IN_CHECKOUT_TASK) 
   Knob: Rosetta2Warning = true Source: $(ROSETTA2_WARNING) 
   Knob: AddForceCredentialsToGitCheckout = True Source: $(DistributedTask.Agent.AddForceCredentialsToGitCheckout) 
Finished checking job knob settings.
##[debug]Log plugin 'TestResultLogPlugin' is disabled.
##[debug]Log plugin 'TestFilePublisherPlugin' is disabled.
Start tracking orphan processes.
Finishing: Initialize job

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions