From 73818c004da87e77d2ecec333ac6e92a42eeac34 Mon Sep 17 00:00:00 2001
From: Keshav Prasad <msknext@gmail.com>
Date: Wed, 6 Feb 2019 11:24:37 +0530
Subject: [PATCH] Type and message text change

---
 vars/deployed_versions.groovy | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/vars/deployed_versions.groovy b/vars/deployed_versions.groovy
index 181b03c0f..467db0123 100644
--- a/vars/deployed_versions.groovy
+++ b/vars/deployed_versions.groovy
@@ -3,8 +3,6 @@ def call() {
         String ANSI_GREEN = "\u001B[32m"
         String ANSI_NORMAL = "\u001B[0m"
         String ANSI_BOLD = "\u001B[1m"
-        String ANSI_RED = "\u001B[31m"
-        String ANSI_YELLOW = "\u001B[33m"
 
         stage('check upstream') {
             values = [:]
@@ -29,7 +27,7 @@ def call() {
                         mkdir -p ${JENKINS_HOME}/summary/${envDir}
                         touch -a ${JENKINS_HOME}/summary/${envDir}/summary.txt
                         sed -i "s/${jobName}.*//g" ${JENKINS_HOME}/summary/${envDir}/summary.txt
-                        sed -i "/^\\\$/d" ${JENKINS_HOME}/summary/$envDir}/summary.txt
+                        sed -i "/^\\\$/d" ${JENKINS_HOME}/summary/${envDir}/summary.txt
                         """
 
                         if (module == "Core") {
@@ -47,7 +45,7 @@ def call() {
                             """
                         }
                     } else
-                        println "This job can be only triggered from an upstream project."
+                        println(ANSI_BOLD + ANSI_GREEN + "This job can be only triggered from an upstream project." + ANSI_NORMAL)
 
                 }
         stage('Archive artifacts') {
-- 
GitLab