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

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

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}"
                  }
              }
          }
      }
      
      
      

            jtaboada Jose Blas Camacho Taboada
            rsandell rsandell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: