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

The "when" step is not working with the "withFolderProperties" on version 1.1

XMLWordPrintable

      On the last version of plugin 1.1, there is an issue with the "withFolderProperties". This property when is used with the "When" block is returning always false.

       

      I have tested this simple script and always skip the stage. If I remove the "withFolderProperties" it works:

       

      pipeline{
          agent any
          stages{
          stage('Run ADFS'){
              when {
                  expression {
                      withFolderProperties

      {                                          return true;                                 }

                  }
             }
             steps

      {                        echo "hello"               }

           }

      }

       

       

       

            mig82 Miguelángel Fernández
            jraezrus Javier Raez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: