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

    • Sprint:
      Declarative backlog
    • Similar Issues:

      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

          Hide
          abayer Andrew Bayer added a comment -

          Merged, will be in the upcoming 1.3.5 release.

          Show
          abayer Andrew Bayer added a comment - Merged, will be in the upcoming 1.3.5 release.

            People

            • Assignee:
              jtaboada Jose Blas Camacho Taboada
              Reporter:
              rsandell rsandell
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: