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

JOB_BASE_NAME variable showing Branch value instead of Project name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • branch-api-plugin
    • None
    • Jenkins 2.57, workflow-multibranch 2.14

      As mentioned by djviking , JOB_BASE_NAME variable is showing Branch value instead of Project name, when using Multibranch pipeline.

      Same behaviour is seen being inside or outside a Folder.

      Copying the same example mentioned here:

      "BRANCH_NAME=master
      JOB_NAME=projectA/master
      JOB_BASE_NAME=master

      The value for JOB_BASE_NAME should be in this case projectA."

            Unassigned Unassigned
            ncosta Nuno Costa
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: