looking for some solutions? You are welcome.

SOLVED: jenkins pipeline - check when expression only based on the previous when expression

K-rwer:

Here is my scenario, Kindly suggest on the below,

When Curr_Version is not equal to 19.02(i.e., 19.03,19.04 etc), the next expression should be executed and check for the file existence.

When Curr_Version is equal to 19.02, it should not check for the file existence

               when{
                 expression {
                   return "${Curr_Version}" != 19.02
                   expression {
                     return 
                  (fileExists("""${Path}/${Prev_Version}/Base/final.txt"""))  
                    }
                  }
               }

Thanks in advance.!



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
Share:

No comments:

Recent