Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-49378

Using fileExists in when condition causes exception

      Minimal reproduction:

      pipeline {
         agent any
         stage('when') {
            when { expression { fileExists('my-src-file') } }
            steps { echo '' }
         }
      }

      Stack trace attached.

          [JENKINS-49378] Using fileExists in when condition causes exception

          Robby Pocase created issue -
          Andrew Bayer made changes -
          Assignee Original: Andrew Bayer [ abayer ]

            Unassigned Unassigned
            rpocase Robby Pocase
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: