Code Monkey home page Code Monkey logo

Comments (3)

bluesliverx avatar bluesliverx commented on July 20, 2024

@chrylis, the only option here is to configure it programmatically with the job dsl plugin or Jenkins Job Builder (if it's still around). We generate our jobs programmatically with the job dsl plugin and add the branch property there. It will not work from a Jenkinsfile for the reasons I mentioned in #4.

from github-pr-comment-build-plugin.

bluesliverx avatar bluesliverx commented on July 20, 2024

To expand the explanation a bit more - the multibranch plugin actually creates jobs and their triggers on the fly based on info from github. A jenkinsfile has no ties into the multibranch plugin to be able to control this kind of behavior. If they have added a way, that's great, let me know and I'll look into it. But as far as I know it is quite against the principles of the multibranch framework that we're working in to be able to control this from Jenkinsfiles directly.

The job dsl plugin can do it since it can set the branch property as it generates the multibranch job.

from github-pr-comment-build-plugin.

chrylis avatar chrylis commented on July 20, 2024

Thanks for the explanation. It really seems like CloudBees has charged ahead with their multibranch model without considering a number of in-use setups.

from github-pr-comment-build-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.