Skip to content

Commit

Permalink
Update jenkins-send-discord.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lutfailham96 committed Sep 8, 2022
1 parent 9662f8d commit f8c8e44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jenkins-send-discord.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jenkins_job_name="$(echo ${JOB_NAME} | awk -F / '{print $1}')"

if [ -n "${discord_id}" ]; then
while IFS= read -r user; do
#discord_mention+="<@${user}> "
discord_mention="${discord_mention} <@${user}>"
done <<< $(echo "${discord_id}" | sed -n 1'p' | tr ',' '\n')
discord_mention+="<@${user}> "
#discord_mention="${discord_mention} <@${user}>"
done <<< $(echo "${discord_id}" | sed 's/,/\n/g')
fi

if [ "${jenkins_notification_type}" = "approval" ]; then
Expand Down

0 comments on commit f8c8e44

Please sign in to comment.