Skip to content

Commit

Permalink
[Cisco CustomLink] - Added new condition to redirect to externalLink …
Browse files Browse the repository at this point in the history
…without checking manifest
  • Loading branch information
aman-agrawal committed Dec 21, 2023
1 parent 364bc4d commit 9afe3bf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/core/src/manifest/stage/JobStageExecutionLogs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ export class JobStageExecutionLogs extends React.Component<IJobStageExecutionLog
public render() {
const { manifest } = this.state;
const { externalLink, podNamesProviders, location, account } = this.props;

// Added for Cisco : Without checking manifest.empty(), redirect to link if it didnt contain {{
if (externalLink && !externalLink.includes('{{')) {
return (
<a target="_blank" href={externalLink}>
Console Output (External)
</a>
);
}

// prefer links to external logging platforms
if (!isEmpty(manifest) && externalLink) {
return (
Expand Down

0 comments on commit 9afe3bf

Please sign in to comment.