Folder properties not available in declarative environment step

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Folder properties set on an Organization Folder project is not available in the "environment" step

      With the following property set:
      Name: TEST_VAR
      Value: TRUE

      pipeline {
          agent none
      
          options {
              withFolderProperties()
          }
      
          environment {
              IS_SET = "${env.TEST_VAR}"
          }
      
          stages {
              stage ('Test')
              {
                  agent any
                  steps {
                      echo "TEST_VAR: ${env.TEST_VAR}!!!"
                      echo "IS_SET: ${env.IS_SET }!!!"
                  }
              }
          }
      }
      

      I get the following result:

      [Pipeline] echo
      TEST_VAR: TRUE!!!
      [Pipeline] echo
      IS_SET  : null!!!
      

            Assignee:
            Unassigned
            Reporter:
            Carel Combrink
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: