Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6071653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:04:19+00:00 2026-05-23T10:04:19+00:00

When building from git on master jenkins fetches and uses origin/master. When building from

  • 0

When building from git on master jenkins fetches and uses origin/master. When building from git on a branch jenkins fetches and users mybranch not origin/mybranch and isn’t picking up changes.

I switched the branch specifier to use origin/mybranch and it seems to work. Is the the standard way to handle things or am I missing a more obvious way of doing this? I don’t want to add unecessary complexity.

Please let me know if jenkins should use origin/branchname instead of branchname for its Branches-To-Build field.

Thanks

Peter

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:04:19+00:00Added an answer on May 23, 2026 at 10:04 am

    Check your current .git/config, and you will see that your “origin” and how master relates to origin is already specified. No other branches will be specified, so the plugin can’t construct a url. To add further branches…

    [remote "origin"]
            url = ssh://myserv/srv/git/proj.git
            fetch = +refs/heads/*:refs/remotes/origin/*
    [branch "master"]
            remote = origin
            merge = refs/heads/master
    [branch "im_a_branch"]
            remote = origin
            merge = refs/heads/im_a_branch_remote_branch_name
    

    This would enable you to just put in the branch name in the branches to build field in Jenkins. That’s probably overkill, and extra maintenance. Just put in the origin/branchname.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building from scratch a web application that is not trivial (have some algorithms
I'm building a historical record of development into git from saved zip files. I'm
I have jenkins set up to build any branch and merge it into master.
I've been away from building browser applications for a long time. I'm now interested
I have created a Windows Service in VB.net for building xML from a database.
I have to port the build of a DLL from building in Visual Studio
Has anyone out there got a good set of instructions for building/compiling Ruby from
I'm going to start a new project that's building web apps from scratch. I
In sql 2005, instead of building a query from dateparts year, month and date,
I´m building a jquery animation from a multidimensional array, and in the callback of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.