Using not existing environment variables in environment GString expression causes strange error message

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

XMLWordPrintable

    • Declarative backlog

      Mini reproduction case

      pipeline {
          agent none
          environment {
              FOO = "${BAR?.contains('banana') ? 'bar has banana' : 'no bar or no banana'}"
          }
          stages {
              stage('echo') {
                  steps {
                      echo "FOO is ${FOO}"
                  }
              }
          }
      }
      
      
      

            Assignee:
            Jose Blas Camacho Taboada
            Reporter:
            rsandell
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: