Skip to content

Commit

Permalink
Ignore SSL error in await task (#321)
Browse files Browse the repository at this point in the history
* Ignore SSL error in await task

* Build!
  • Loading branch information
tothegills authored Jan 8, 2024
1 parent 2c31417 commit 553be12
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions source/tasks/AwaitTask/AwaitTaskV6/waiter.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Client, ClientConfiguration, Logger, ServerTaskWaiter, SpaceRepository, TaskState } from "@octopusdeploy/api-client";
import { Client, Logger, ServerTaskWaiter, SpaceRepository, TaskState } from "@octopusdeploy/api-client";
import { OctoServerConnectionDetails } from "tasks/Utils/connection";
import { TaskWrapper } from "tasks/Utils/taskInput";
import { getUserAgentApp } from "../../Utils/pluginInformation";
import { getInputParameters } from "./input-parameters";
import { ExecutionResult } from "../../Utils/executionResult";
import { getClient } from "../../Utils/client";

export interface WaitExecutionResult extends ExecutionResult {
successful: boolean;
Expand All @@ -15,13 +15,7 @@ export class Waiter {
public async run() {
const inputParameters = getInputParameters(this.logger, this.task);

const config: ClientConfiguration = {
userAgentApp: getUserAgentApp("task", "wait", 6),
instanceURL: this.connection.url,
apiKey: this.connection.apiKey,
logging: this.logger,
};
const client = await Client.create(config);
const client = await getClient(this.connection, this.logger, "task", "wait", 6)

const waiter = new ServerTaskWaiter(client, inputParameters.space);

Expand Down

0 comments on commit 553be12

Please sign in to comment.