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

    • Similar Issues:
    • Sprint:
      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

          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.
          Hide
          bitwiseman Liam Newman added a comment -

          Bulk closing resolved issues.

          Show
          bitwiseman Liam Newman added a comment - Bulk closing resolved issues.

            People

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

              Dates

              Created:
              Updated:
              Resolved: