Skip to content

Commit

Permalink
Log remote status when push release task failed
Browse files Browse the repository at this point in the history
Similar to what's been done in PR allegro#685 for release task.
  • Loading branch information
weih-kahoot committed Oct 2, 2024
1 parent 9041e39 commit fa4c79c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ abstract class PushReleaseTask extends BaseAxionTask {
ScmPushResult result = releaser.pushRelease()

if (result.outcome === ScmPushResultOutcome.FAILED) {
def status = result.failureStatus
def message = result.remoteMessage.orElse("Unknown error during push")
logger.error("remote status: ${status}")
logger.error("remote message: ${message}")
throw new ReleaseFailedException(message)
}
Expand Down

0 comments on commit fa4c79c

Please sign in to comment.