6

I want to trigger a specific multibranch pipeline job 'maven-release-workflow-test' (specific branch) within a regular pipeline job. Is there a special build() command pattern that i need to specify?

The snippet generator just prints:

no such job maven-release-workflow-test

Jotschi
  • 3,270
  • 3
  • 31
  • 52

1 Answers1

10

Found the right pattern via trial and error:

build 'maven-release-workflow-test/master'
Jotschi
  • 3,270
  • 3
  • 31
  • 52
  • What if the branch name has slash (e.g feature/foo)? Should that be encoded? – James Selvakumar Aug 17 '18 at 09:32
  • 3
    I printed the job name of a multibranch pipeline that the branch contains slash, it showed something like `multibranch-pipeline-job/feature%2foo`. It seems that the slash becomes the UTF-8 encoding. And that weird name is able to trigger the job. – Hsu Hau Sep 13 '18 at 08:48