Skip to content

Commit

Permalink
Log remote status when push release task failed (#829)
Browse files Browse the repository at this point in the history
Similar to what's been done in PR #685 for release task.
  • Loading branch information
weih-kahoot authored Oct 2, 2024
1 parent 9041e39 commit a158fe6
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 a158fe6

Please sign in to comment.