Unverified Commit ce1145c7 authored by Keshav Prasad's avatar Keshav Prasad Committed by GitHub
Browse files

fix: Update variable name

Showing with 2 additions and 2 deletions
+2 -2
......@@ -9,8 +9,8 @@ def call(String status) {
stage('slack_notify') {
sh "printenv"
env = sh(returnStdout: true, script: "echo $JOB_NAME").split('/')[-3].trim()
channel_env_name = env.toUpperCase() + "_NOTIFY_SLACK_CHANNEL"
envDir = sh(returnStdout: true, script: "echo $JOB_NAME").split('/')[-3].trim()
channel_env_name = envDir.toUpperCase() + "_NOTIFY_SLACK_CHANNEL"
try {
slack_channel = evaluate "$channel_env_name"
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment