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

Using fileExists in when condition causes exception

XMLWordPrintable

      Minimal reproduction:

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

      Stack trace attached.

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

              Created:
              Updated: