Skip to content

Commit bb462fe

Browse files
Merge pull request #336 from microsoft/users/stfrance/fix-task-upload
Fix uploading task zip to preserve original file stream
2 parents 4bfe4eb + f5baf9b commit bb462fe

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/exec/build/tasks/upload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class BuildTaskUpload extends tasksBase.BuildTaskBase<agentContracts.Task
5050

5151
sourceLocation = taskZipPath;
5252
taskId = taskJson.id;
53-
taskStream = z.generateNodeStream();
53+
taskStream = fs.createReadStream(taskZipPath);
5454
} else {
5555
// User provided the path to a directory with the task content
5656
const taskPath: string = taskPaths[0];

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tfx-cli",
3-
"version": "0.8.0",
3+
"version": "0.8.1",
44
"description": "CLI for Azure DevOps Services and Team Foundation Server",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)