Skip to content

Commit

Permalink
log for test
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Sep 3, 2024
1 parent e8c621a commit abcb63c
Show file tree
Hide file tree
Showing 2 changed files with 6 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 @@ -60,11 +60,14 @@ function autoPublishBuildsAndGenerateSummary() {
return __awaiter(this, void 0, void 0, function* () {
// First we check for compatible CLI version
let supported = yield supportedCliVersion();
core.info("JFrog CLI version is compatible: " + supported);
if (supported) {
// Auto-publish build info if needed
try {
if (!core.getBooleanInput(utils_1.Utils.AUTO_BUILD_PUBLISH_DISABLE)) {
core.startGroup('Auto-publishing build info to JFrog Artifactory');
yield collectAndPublishBuildInfoIfNeeded();
core.endGroup();
}
}
catch (error) {
Expand Down
3 changes: 3 additions & 0 deletions src/cleanup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@ async function cleanup() {
async function autoPublishBuildsAndGenerateSummary() {
// First we check for compatible CLI version
let supported: boolean = await supportedCliVersion();
core.info('JFrog CLI version is compatible: ' + supported);
if (supported) {
// Auto-publish build info if needed
try {
if (!core.getBooleanInput(Utils.AUTO_BUILD_PUBLISH_DISABLE)) {
core.startGroup('Auto-publishing build info to JFrog Artifactory');
await collectAndPublishBuildInfoIfNeeded();
core.endGroup();
}
} catch (error) {
core.warning('failed while attempting to publish build info: ' + error);
Expand Down

0 comments on commit abcb63c

Please sign in to comment.