-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7c1d4a
commit 3cd5709
Showing
1 changed file
with
2 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
import { OctoServerConnectionDetails } from "../../Utils/connection"; | ||
import { executeTask } from "../../Utils/octopusTasks"; | ||
import { OctopusToolRunner } from "../../Utils/tool"; | ||
import * as tasks from "azure-pipelines-task-lib"; | ||
|
||
export class OctoCli { | ||
constructor(readonly tool: OctopusToolRunner, readonly command: string, readonly connection: OctoServerConnectionDetails) {} | ||
|
||
public async run(args: string | undefined) { | ||
this.tool.arg(this.command); | ||
tasks.warning("This task is using a deprecated version of the Octopus CLI, we recommend using the latest version."); | ||
await executeTask(this.tool, "(cli;run;v5)", this.connection, "Succeeded executing octo command.", "Failed to execute octo command.", args); | ||
} | ||
} |