[sdks] trace failures

This commit is contained in:
Andres Almiray
2021-04-13 18:07:51 +02:00
parent 261bb13d5a
commit fc75b69e05
9 changed files with 9 additions and 0 deletions

View File

@@ -83,6 +83,7 @@ public class GiteaReleaser implements Releaser {
createRelease(api, tagName, changelog, context.getModel().getProject().isSnapshot());
}
} catch (IOException | IllegalStateException e) {
context.getLogger().trace(e);
throw new ReleaseException(e);
}
}

View File

@@ -84,6 +84,7 @@ public class DiscussionsAnnouncer implements Announcer {
api.createDiscussion(discussions.getOrganization(), discussions.getTeam(), title, message);
} catch (IOException | IllegalStateException e) {
context.getLogger().trace(e);
throw new AnnounceException(e);
}
}

View File

@@ -80,6 +80,7 @@ public class GithubReleaser implements Releaser {
createRelease(api, tagName, changelog, context.getModel().getProject().isSnapshot());
}
} catch (IOException | IllegalStateException e) {
context.getLogger().trace(e);
throw new ReleaseException(e);
}
}

View File

@@ -85,6 +85,7 @@ public class GitlabReleaser implements Releaser {
createRelease(api, tagName, changelog, context.getModel().getProject().isSnapshot());
}
} catch (IOException | IllegalStateException e) {
context.getLogger().trace(e);
throw new ReleaseException(e);
}
}

View File

@@ -91,6 +91,7 @@ public class MailAnnouncer implements Announcer {
.build()
.execute();
} catch (MailException e) {
context.getLogger().trace(e);
throw new AnnounceException(e);
}
}

View File

@@ -180,6 +180,7 @@ public class Sdkman {
try {
if (!dryrun) runnable.run();
} catch (RuntimeException e) {
logger.trace(e);
throw new SdkmanException("Sdkman vendor operation failed", e);
}
}

View File

@@ -80,6 +80,7 @@ public class Slack {
try {
if (!dryrun) return runnable.call();
} catch (Exception e) {
logger.trace(e);
throw new SlackException("Slack operation failed", e);
}

View File

@@ -65,6 +65,7 @@ public class Twitter {
try {
if (!dryrun) op.execute();
} catch (twitter4j.TwitterException e) {
logger.trace(e);
throw new TwitterException("Twitter operation failed", e);
}
}

View File

@@ -72,6 +72,7 @@ public class Zulip {
try {
if (!dryrun) runnable.run();
} catch (RuntimeException e) {
logger.trace(e);
throw new ZulipException("Zulip operation failed", e);
}
}