diff --git a/src/main/java/jenkins/plugins/rocketchatnotifier/RocketChatNotifier.java b/src/main/java/jenkins/plugins/rocketchatnotifier/RocketChatNotifier.java index 81b3b68c..65dd1c8a 100644 --- a/src/main/java/jenkins/plugins/rocketchatnotifier/RocketChatNotifier.java +++ b/src/main/java/jenkins/plugins/rocketchatnotifier/RocketChatNotifier.java @@ -397,11 +397,11 @@ public RocketClient newRocketChatClient(AbstractBuild r, BuildListener listener) } String webhookTokenCredentialId = this.webhookTokenCredentialId; if (StringUtils.isEmpty(webhookTokenCredentialId)) { - channel = getDescriptor().getWebhookTokenCredentialId(); + webhookTokenCredentialId = getDescriptor().getWebhookTokenCredentialId(); } String webhookToken = this.webhookToken; if (StringUtils.isEmpty(webhookToken)) { - channel = getDescriptor().getWebhookToken(); + webhookToken = getDescriptor().getWebhookToken(); } EnvVars env;