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

Add a new envrironment varibale to get only the job's name in a matrix project

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • matrix-project-plugin
    • None

      The env var JOB_NAME, and its description in env-vars.html are confusing.

      In a simple project, the meaning and the description correspond, but in a matrix project, it is more complicated.

      If the main job's name is Foo, using a matrix with 2 parameters bar and baz, then JOB_NAME returns "Foo/bar=x,baz=y". This was the request JENKINS-1047.

      Is it possible to add another env var, like JOB_SHORT_NAME, or to be more coherent, use JOB_NAME to get the real name and JOB_IDENTIFIER for example to get the full description?

      Thanks

          [JENKINS-6467] Add a new envrironment varibale to get only the job's name in a matrix project

          rockeye created issue -
          Jenkins IRC Bot made changes -
          Component/s New: matrix-project [ 18765 ]
          Component/s Original: matrix [ 15501 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 136562 ] New: JNJira + In-Review [ 174516 ]

            Unassigned Unassigned
            rockeye rockeye
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: