Skip to content

Append Job Attempt Numbers to more artifact names to support re-running - #6807

Merged
donnie-msft merged 5 commits into
devfrom
dev-donnie-msft-jobAttempts
Oct 2, 2025
Merged

donnie-msft merged 5 commits into
devfrom
dev-donnie-msft-jobAttempts

Conversation

@donnie-msft

@donnie-msft donnie-msft commented Sep 26, 2025 •

Copy link
Copy Markdown
Contributor

Bug

Fixes: Infrastructure

Description

For NuGet's publishing of pipeline artifacts from CI, append Job Attempt numbers to more artifact names.
This reduces the incidence of permanently failing a build when the first failed (Attempt # 1) publishes logs, so subsequent attempts are unable to re-publish those logs.

This artifact publishing step will now have an attempt number:

  • LocValidation: Publish Logs as an artifact (this recently happened and inspired this change)

When re-running can still fail

  • There are still some NuGet steps that rely on a hard-coded artifact name during release. (eg, nupkgs - RTM).
  • There are also SBOM generation jobs that publish artifacts without a JobAttempt (eg, BuildConfiguration), but we don't control this YML.
  • Publish BootstrapperInfo.json as a build artifact
  • Publish NuGet.exe and VSIX as artifact Backup Build Artifacts depends on this name:
    - task: DownloadPipelineArtifact@2
    displayName: 'Download product NonRTM'
    continueOnError: true # in case build didn't publish this artifact
    inputs:
    buildType: specific
    project: $(resources.pipeline.officialbuild.projectID)
    definition: $(resources.pipeline.officialbuild.pipelineID)
    artifactName: 'VS15'
    targetPath: $(Build.ArtifactStagingDirectory)/backup/VS15
    - task: DownloadPipelineArtifact@2
    displayName: 'Download product RTM'
    continueOnError: true # in case build didn't publish this artifact
    inputs:
    buildType: specific
    project: $(resources.pipeline.officialbuild.projectID)
    definition: $(resources.pipeline.officialbuild.pipelineID)
    artifactName: 'VS15-RTM'

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@donnie-msft
donnie-msft requested a review from a team as a code owner September 26, 2025 23:11
@donnie-msft donnie-msft changed the title Append Job Attempt Numbers to all artifact names to support re-running Append Job Attempt Numbers to more artifact names to support re-running Sep 26, 2025
Comment thread eng/pipelines/templates/pipeline.yml Outdated
Comment thread eng/pipelines/templates/pipeline.yml Outdated
jeffkl
jeffkl previously approved these changes Sep 30, 2025
@donnie-msft
donnie-msft merged commit d6e2819 into dev Oct 2, 2025
17 of 18 checks passed
@donnie-msft
donnie-msft deleted the dev-donnie-msft-jobAttempts branch October 2, 2025 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants