Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Pipeline name can contain characters not allowed for package id #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thviQit
Copy link

@thviQit thviQit commented Nov 30, 2020

After investigating why this task would not work I realized it was because of characters not allowed.

The problem lies in that pipeline names, which are defined as Build.DefinitionName in the pipeline, have a more relaxed set of rules of allowed characters than package ids for the universal package feed.

There's already a regular expression removing empty space, but that is not enough.

Since it is not possible to apply your own name for the package id in the task input, this works a quick fix removing all the characters not allowed in the package id according to Azure DevOps documentation.

@ghost
Copy link

ghost commented Nov 30, 2020

CLA assistant check
All CLA requirements met.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant