Skip to content

Commit

Permalink
Encode special characters like spaces for project and repository in t…
Browse files Browse the repository at this point in the history
…he extension task
  • Loading branch information
mburumaxwell committed Dec 17, 2020
1 parent 3b221e6 commit 9dec0f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/extension/task/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ async function run() {

// Set the project
let project: string = tl.getVariable('System.TeamProject');
project = encodeURI(project); // encode special characters like spaces
dockerRunner.arg(['-e', `PROJECT=${project}`]);

// Set the repository
let repository: string = tl.getVariable('Build.Repository.Name');
repository = encodeURI(repository); // encode special characters like spaces
dockerRunner.arg(['-e', `REPOSITORY=${repository}`]);

// Set the package manager
Expand Down

0 comments on commit 9dec0f9

Please sign in to comment.