mirror of
https://github.com/jlengrand/jreleaser.git
synced 2026-03-10 08:31:24 +00:00
[sdks] trace failures
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,6 +91,7 @@ public class MailAnnouncer implements Announcer {
|
||||
.build()
|
||||
.execute();
|
||||
} catch (MailException e) {
|
||||
context.getLogger().trace(e);
|
||||
throw new AnnounceException(e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user