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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Tasks/Common/packaging-common/cache/feedUtilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export async function doesPackageExist(hash: string): Promise<boolean> {
// Getting package name from hash
const packageId = tl
.getVariable("Build.DefinitionName")
.replace(/\s/g, "")
.replace(/[^a-z0-9\-]/g, "")
.substring(0, 255)
.toLowerCase();

Expand Down
2 changes: 1 addition & 1 deletion Tasks/Common/packaging-common/cache/universaldownload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export async function run(artifactToolPath: string, hash: string, targetFolder:

// Getting package name from hash
const packageId = tl.getVariable('Build.DefinitionName')
.replace(/\s/g, "")
.replace(/[^a-z0-9\-]/g, "")
.substring(0, 255)
.toLowerCase();

Expand Down
2 changes: 1 addition & 1 deletion Tasks/Common/packaging-common/cache/universalpublish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export async function run(artifactToolPath: string, hash: string, targetFolder:
serviceUri = tl.getEndpointUrl("SYSTEMVSSCONNECTION", false);

packageName = tl.getVariable('Build.DefinitionName')
.replace(/\s/g, "")
.replace(/[^a-z0-9\-]/g, "")
.substring(0, 255)
.toLowerCase();

Expand Down