From bb35916fb2b883a77579b937839d338d2d459c56 Mon Sep 17 00:00:00 2001
From: Reza Behzadan <rbehzadan@gmail.com>
Date: Sun, 31 Mar 2024 15:36:14 +0330
Subject: [PATCH] Fix using NOTIFY_TOKEN env var

---
 Jenkinsfile | 10 ++++++++--
 VERSION     |  2 +-
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 65370c5..841de7a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -41,12 +41,18 @@ pipeline {
 
     success {
       echo 'Build succeeded!'
-      notifyEvents title: 'jenkins.home.behzadan.ir/$JOB_NAME/$BUILD_ID', message: 'Build succeeded!', priority: 'NORMAL', token: '$NOTIFY_TOKEN'
+      notifyEvents title: 'jenkins.home.behzadan.ir/$JOB_NAME/$BUILD_ID',
+                   message: 'Build succeeded!',
+                   priority: 'NORMAL',
+                   token: "${env.NOTIFY_TOKEN}"
     }
 
     failure {
       echo 'Build failed!'
-      notifyEvents title: 'jenkins.home.behzadan.ir/$JOB_NAME/$BUILD_ID', message: 'Build failed!', priority: 'NORMAL', token: '$NOTIFY_TOKEN'
+      notifyEvents title: 'jenkins.home.behzadan.ir/$JOB_NAME/$BUILD_ID',
+                   message: 'Build failed!',
+                   priority: 'NORMAL',
+                   token: "${env.NOTIFY_TOKEN}"
     }
 
   }
diff --git a/VERSION b/VERSION
index 238d6e8..b0f3d96 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.0.7
+1.0.8