diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml index a65d82e..9ac2968 100644 --- a/.mvn/extensions.xml +++ b/.mvn/extensions.xml @@ -2,6 +2,6 @@ io.jenkins.tools.incrementals git-changelist-maven-extension - 1.3 + 1.4 diff --git a/pom.xml b/pom.xml index a148b24..b5de226 100644 --- a/pom.xml +++ b/pom.xml @@ -5,14 +5,12 @@ org.jenkins-ci.plugins plugin - 4.33 + 4.46 Discord Notifier - Discord Notifier allows you to send Discord embeds about your builds via Discord's webhooks. - - https://github.com/jenkinsci/discord-notifier-plugin/blob/master/README.md + https://github.com/jenkinsci/discord-notifier-plugin nz.co.jammehcow discord-notifier @@ -23,13 +21,12 @@ 1.4.15 999999-SNAPSHOT jenkinsci/discord-notifier-plugin - 2.235.1 - 8 + 2.319.3 false - scm:git:git://github.com/${gitHubRepo}.git + scm:git:https://github.com/${gitHubRepo}.git scm:git:git@github.com:${gitHubRepo}.git https://github.com/${gitHubRepo} ${scmTag} @@ -38,7 +35,7 @@ MIT License - http://opensource.org/licenses/MIT + https://opensource.org/licenses/MIT @@ -73,8 +70,8 @@ io.jenkins.tools.bom - bom-2.235.x - 918.vae501d2cdc99 + bom-2.319.x + 1589.v952386a_7b_85a import pom @@ -85,7 +82,7 @@ com.konghq unirest-java - 3.13.6 + 3.13.10 diff --git a/src/main/java/nz/co/jammehcow/jenkinsdiscord/DiscordPipelineStep.java b/src/main/java/nz/co/jammehcow/jenkinsdiscord/DiscordPipelineStep.java index 640245c..6924302 100644 --- a/src/main/java/nz/co/jammehcow/jenkinsdiscord/DiscordPipelineStep.java +++ b/src/main/java/nz/co/jammehcow/jenkinsdiscord/DiscordPipelineStep.java @@ -12,7 +12,7 @@ import org.kohsuke.stapler.DataBoundConstructor; import org.kohsuke.stapler.DataBoundSetter; -import javax.annotation.Nonnull; +import edu.umd.cs.findbugs.annotations.NonNull; import javax.inject.Inject; import jenkins.model.JenkinsLocationConfiguration; @@ -267,7 +267,7 @@ public String getFunctionName() { return "discordSend"; } - @Nonnull + @NonNull @Override public String getDisplayName() { return "Send an embed message to Webhook URL"; diff --git a/src/main/java/nz/co/jammehcow/jenkinsdiscord/WebhookPublisher.java b/src/main/java/nz/co/jammehcow/jenkinsdiscord/WebhookPublisher.java index fcc3e88..a9a4248 100644 --- a/src/main/java/nz/co/jammehcow/jenkinsdiscord/WebhookPublisher.java +++ b/src/main/java/nz/co/jammehcow/jenkinsdiscord/WebhookPublisher.java @@ -1,5 +1,6 @@ package nz.co.jammehcow.jenkinsdiscord; +import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import hudson.EnvVars; import hudson.Extension; import hudson.Launcher; @@ -27,6 +28,7 @@ * Date: 22/04/17. */ +@SuppressFBWarnings(value = "NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE", justification = "Requires triage") public class WebhookPublisher extends Notifier { private final String webhookURL; private final String branchName; diff --git a/src/main/resources/index.jelly b/src/main/resources/index.jelly new file mode 100644 index 0000000..c71efcc --- /dev/null +++ b/src/main/resources/index.jelly @@ -0,0 +1,4 @@ + +
+ Discord Notifier allows you to send Discord embeds about your builds via Discord's webhooks. +