title: Jenkinsfile add if else script?
body: <p>i would like to integrate a simple if else script to my Jenkinsfile but i have a little problem :</p>
  
  <p>My Bash Script :</p>
  
  <pre><code>#!/bin/bash
  if [ -e /root/test/*.php ];then
  echo "Found file"
  else
  echo "Did not find file"
  fi
  </code></pre>
  
  <p>The Script work very well but if i try to integrate in a stage they dont function :</p>
  
  <pre><code>        stage('Test') {
          steps {
              script {
                      if [ -e "/root/test/*.php" ];then
                          echo found
                      else 
                          echo not found
                  }
              }
      }
  </code></pre>