I would like the ability to have stage names be dynamic strings. This is useful, for instance, when defining stages within a matrix, so that the stage names can contain the values of the axes. (Part of the problem here is that Blue Ocean doesn't render matrixes well at all.) Right now attempting to do this yields an error because stage names can only be string literals, not Groovy strings (interpolation).

      Note that I am not looking for the steps within the stage to be dynamic.

      Example:

      matrix {
          axes {
              axis {
                  name 'PLATFORM'
                  values 'linux', 'mac', 'windows'
              }
          }
          stages {
              stage("Build ${PLATFORM}") {
                  // ...
              }
              stage("Test ${PLATFORM}") {
                  // ...
              }
              stage("Deploy ${PLATFORM}") {
                  // ...
              }
          }
      }
      

          [JENKINS-61280] Allow dynamic stage names

          Jesse Rittner created issue -
          Liam Newman made changes -
          Assignee Original: Andrew Bayer [ abayer ] New: Liam Newman [ bitwiseman ]
          Stefan Drissen made changes -
          Attachment New: image-2020-03-19-17-20-23-015.png [ 50709 ]
          Stefan Drissen made changes -
          Attachment New: image-2020-03-19-17-20-50-002.png [ 50710 ]
          Stefan Drissen made changes -
          Attachment New: image-2020-03-19-17-22-05-861.png [ 50711 ]
          Stefan Drissen made changes -
          Attachment Original: image-2020-03-19-17-20-50-002.png [ 50710 ]
          Stefan Drissen made changes -
          Attachment New: image-2021-01-27-08-24-59-432.png [ 53889 ]
          Guillaume DeMengin made changes -
          Attachment New: workaround1.png [ 56745 ]
          Zachary Feuerborn made changes -
          Comment [ Would love to to see this added! ]
          sascha inu made changes -
          Attachment New: jenkins-pipeline-original.PNG [ 59971 ]
          sascha inu made changes -
          Attachment New: jenkins-pipeline-changed.png [ 59972 ]

            bitwiseman Liam Newman
            rittneje Jesse Rittner
            Votes:
            58 Vote for this issue
            Watchers:
            58 Start watching this issue

              Created:
              Updated: