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

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

    XMLWordPrintable

Details

    • Declarative backlog

    Description

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: