Giter VIP home page Giter VIP logo

Comments (10)

KostyaSha avatar KostyaSha commented on May 24, 2024

It's git plugin and jenkins design, or probably ghprb. You can't use PR job for regular builds.

from ghprb-plugin.

mengqing avatar mengqing commented on May 24, 2024

So I can't have both ghprb and github-plugin running together?

from ghprb-plugin.

KostyaSha avatar KostyaSha commented on May 24, 2024

Atm, yes

from ghprb-plugin.

DavidTanner avatar DavidTanner commented on May 24, 2024

You would need to add another trigger to the job. The ghprb trigger is only going to run on plugins, then the source poll trigger could run on changes to your branches.

from ghprb-plugin.

mengqing avatar mengqing commented on May 24, 2024

@DavidTanner At the moment, I've got GitHub Pull Request Builder and Build when a change is pushed to GitHub triggers enabled, would this be sufficient?

If not, what other triggers can I use to do what I want to do?

from ghprb-plugin.

arcivanov avatar arcivanov commented on May 24, 2024

Simply generate multiple jobs with different trigger versions automatically using jenkinsci/job-dsl-plugin. Create a job template and only change triggers, branch designators and publishers. You also want to make sure not to publish artifacts in PR jobs vs artifacts from stable branches.

from ghprb-plugin.

benpatterson avatar benpatterson commented on May 24, 2024

As @arcivanov mentioned, this plugin is designed for pull requests, and what you're asking for--while totally reasonable--is simply out of scope. I'm going to close this for now.

from ghprb-plugin.

guruvamsichintala avatar guruvamsichintala commented on May 24, 2024

With git webhook configured , How do I build a job for specific branch when someone made a push to it. I have enabled trigger when pushed code to github. Right now all jenkins jobs are triggered even though it was pushed for a different branch.

from ghprb-plugin.

benpatterson avatar benpatterson commented on May 24, 2024

@guruvamsichintala you should be able to whitelist branches on the job configuration. However, if you have multiple jobs, you'd need to set that configuration in each job. HTH

from ghprb-plugin.

guruvamsichintala avatar guruvamsichintala commented on May 24, 2024

I have already specified branch name in "Branches to be build" option. But still when I push code to any branch , all the jobs which are configured for specific branch and triggered when something pushed to git are running. I figured it out with

http://stackoverflow.com/questions/5784329/how-can-i-make-jenkins-ci-with-git-trigger-on-pushes-to-master/9921495#9921495

Configured git plugin inside git, specified the url inside plugin and configured job with poll scm (no schedule). Worked perfectly

from ghprb-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.