Skip to content
Merged
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: 2 additions & 0 deletions source/tasks/OctoCli/OctoCliV5/octoCli.ts
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);
}
}
1 change: 1 addition & 0 deletions source/tasks/OctoInstaller/OctoInstallerV5/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export class Installer {
public async run(versionSpec: string) {
await executeWithSetResult(
async () => {
tasks.warning("This task is using a deprecated version of the Octopus CLI, we recommend using the latest version.");
const endpoint = await new DownloadEndpointRetriever(this.octopurlsUrl).getEndpoint(versionSpec);
let toolPath = tools.findLocalTool(TOOL_NAME, endpoint.version);

Expand Down
Loading