Skip to content

Commit

Permalink
Pass custom values to retryOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
EzzhevNikita committed Jul 15, 2021
1 parent b893ebb commit 919c0c7
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Tasks/CopyFilesV2/copyfiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@ async function main(): Promise<void> {
followSymbolicLinks: true
};

const retryOptions: RetryOptions = {
timeoutBetweenRetries: 1,
numberOfReties: 1
};

const retryHelper = new RetryHelper(retryOptions);

tl.setResourcePath(path.join(__dirname, 'task.json'));

// contents is a multiline input containing glob patterns
Expand All @@ -72,6 +65,12 @@ async function main(): Promise<void> {
delayBetweenRetries = 0;
}

const retryOptions: RetryOptions = {
timeoutBetweenRetries: delayBetweenRetries,
numberOfReties: retryCount
};
const retryHelper = new RetryHelper(retryOptions);

const preserveTimestamp: boolean = tl.getBoolInput('preserveTimestamp', false);
const ignoreMakeDirErrors: boolean = tl.getBoolInput('ignoreMakeDirErrors', false);

Expand Down

0 comments on commit 919c0c7

Please sign in to comment.