Skip to content

Commit

Permalink
Allow users to use botUser in slackSend even if global URL is set (#799)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgray1206 authored Mar 16, 2022
1 parent 4510a5a commit 19e3b44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ boolean postToSlack(String apiEndpoint, JSONObject body) {
HttpPost post;
String url;

if (!botUser || StringUtils.isNotEmpty(baseUrl)) {
if (!botUser) {
url = "https://" + teamDomain + "." + "slack.com" + "/services/hooks/jenkins-ci?token=" + populatedToken;
if (!StringUtils.isEmpty(baseUrl)) {
url = baseUrl + populatedToken;
Expand Down

0 comments on commit 19e3b44

Please sign in to comment.