Skip to content

Limit the number of pipeline artifacts that are published where possible #1407

Open
@mthalman

Description

@mthalman

When using 1ES pipeline templates, each time a pipeline artifact is published, it executes a set of auto-injected steps to scan the artifact (8 of these steps, currently). In the publishing pipeline, multiple artifacts are published even from the same job. For example, both the build and publish jobs publish two artifacts each and some upcoming changes to the publish stage will increase that one to three. So there are multiple sets of these steps that get injected into the pipeline. This is problematic for a few reasons:

  • It makes it difficult to find a specific step in the UI because of all the noise from these auto-injected steps.
  • It increases the risk of a random failure occurring from one of these steps, forcing a retry.
  • It's likely not efficient from a performance perspective to execute these steps across multiple artifacts when it could execute them once on a consolidated artifact.

We should consider trying to consolidate the files we want to store as artifacts and publish them only once. I expect that there are some cases where this might not be possible based on other constraints.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Current Release

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions