Jenkins: how to specify a jenkins file in a multiple-choice project

Using Jenkins for multi-platform builds.

I have several Multibranch Pipeline projects (one for each platform, since each platform requires very different build steps). I have one code repository with several branches (this is why Multibranch Pipeline projects make sense).

I would like each project of the Multibranch Pipeline project to be different from another Jenkins file, and not everyone trying to use it with the Jenkinsfile file name located in the root of the repository.

This bug fix suggests that I have to do this, but I can’t find the documentation that describes how to do this. Does anyone know how I can do this?

Thank you for your time! Allen

+3
source share
1 answer

Upgrade the Multibranch pipeline plug-in to at least version 2.15. From the change log https://wiki.jenkins.io/display/JENKINS/Pipeline+Multibranch+Plugin :

2.15 (June 01, 2017)

  • JENKINS-34561 Option to select script name / path other than Jenkins file.

After that, you can go to the project configuration page and access the settings shown below:

Jenkinsfile path configuration

+2
source

All Articles