Skip to content

Commit

Permalink
Catch build publish error
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Sep 5, 2024
1 parent e0247da commit 9323f14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/cleanup.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ function collectAndPublishBuildInfoIfNeeded() {
core.startGroup('Publish the build info to JFrog Artifactory');
yield utils_1.Utils.runCli(['rt', 'build-publish'], { cwd: workingDirectory });
}
catch (error) {
core.warning('Failed while attempting to publish the build info to JFrog Artifactory: ' + error);
}
finally {
core.endGroup();
}
Expand Down
2 changes: 2 additions & 0 deletions src/cleanup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ async function collectAndPublishBuildInfoIfNeeded() {
try {
core.startGroup('Publish the build info to JFrog Artifactory');
await Utils.runCli(['rt', 'build-publish'], { cwd: workingDirectory });
} catch (error) {
core.warning('Failed while attempting to publish the build info to JFrog Artifactory: ' + error);
} finally {
core.endGroup();
}
Expand Down

0 comments on commit 9323f14

Please sign in to comment.