Skip to content

Commit f5baf9b

Browse files
Fix.
1 parent d2c5ec2 commit f5baf9b

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

app/exec/build/tasks/upload.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,8 @@ export class BuildTaskUpload extends tasksBase.BuildTaskBase<agentContracts.Task
4040
}
4141

4242
if (taskZipPath) {
43-
//var readStream = fs.createReadStream(taskZipPath);
44-
4543
// User provided an already zipped task, upload that.
4644
const data: Buffer = fs.readFileSync(taskZipPath);
47-
console.log(`initial file buffer size: ${data.byteLength}`);
4845
const z: zip = await zip.loadAsync(data);
4946

5047
// find task.json inside zip, make sure its there then deserialize content
@@ -53,14 +50,7 @@ export class BuildTaskUpload extends tasksBase.BuildTaskBase<agentContracts.Task
5350

5451
sourceLocation = taskZipPath;
5552
taskId = taskJson.id;
56-
//taskStream = z.generateNodeStream();
5753
taskStream = fs.createReadStream(taskZipPath);
58-
59-
// console.log('writing new stream to file');
60-
// const reloadedZip: string = 'D:\\reloaded.zip';
61-
// fs.writeFileSync(reloadedZip, taskStream);
62-
// const reloadedData = fs.readFileSync(reloadedZip);
63-
// console.log(`reloaded file buffer size: ${reloadedData.byteLength}`);
6454
} else {
6555
// User provided the path to a directory with the task content
6656
const taskPath: string = taskPaths[0];
@@ -87,9 +77,6 @@ export class BuildTaskUpload extends tasksBase.BuildTaskBase<agentContracts.Task
8777
trace.info("Collection URL: " + collectionUrl);
8878
const agentApi: ITaskAgentApi = await this.webApi.getTaskAgentApi(collectionUrl);
8979

90-
// console.log('returning early');
91-
// return <agentContracts.TaskDefinition> { sourceLocation: sourceLocation, };
92-
9380
await agentApi.uploadTaskDefinition(null, taskStream, taskId, overwrite);
9481
trace.debug("Success");
9582
return <agentContracts.TaskDefinition> { sourceLocation: sourceLocation, };

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)