jenkinsci / jenkinsci/workflow-multibranch-plugin

[JENKINS-43466] Base (user provided) name of job not available in Multibranch pipeline

Open
#457 0 comments 0 reactions 0 assignees View on GitHub
component:workflow-multibranch-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
87
Forks
131
PR merge metrics
No merged PRs in 30d

Description

Given that



  • the base name of a Multibranch Pipeline project is the name given by the user

  • the branch name of a Multibranch Pipeline project is the complete name of the branch for which the run has been triggered,

e.g.:



  • base name = mylibrary

  • branch name = newexcitingstuff,

 

we have a variable for "mylibrary/newexcitingstuff" (JOB_NAME), a variable for "newexcitingstuff" (BRANCH_NAME), another variable for "mylibrary/newexcitingstuff" (JOB_BASE_NAME), but no variable for "mylibrary". I know that I can parse that from JOB_NAME, but I believe the variable should be introduced.

---
Originally reported by beyerj, imported from: Base (user provided) name of job not available in Multibranch pipeline


  • status: Open
  • priority: Major
  • component(s): workflow-multibranch-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 2
  • imported: 20251212-090250

Raw content of original issue

Given that



  • the base name of a Multibranch Pipeline project is the name given by the user

  • the branch name of a Multibranch Pipeline project is the complete name of the branch for which the run has been triggered,

e.g.:



  • base name = mylibrary

  • branch name = newexcitingstuff,

 

we have a variable for "mylibrary/newexcitingstuff" (JOB_NAME), a variable for "newexcitingstuff" (BRANCH_NAME), another variable for "mylibrary/newexcitingstuff" (JOB_BASE_NAME), but no variable for "mylibrary". I know that I can parse that from JOB_NAME, but I believe the variable should be introduced.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.