• Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-plugin
    • None

      We use local, read-only mirrors at our development sites around the globe. When a repo is cloned from a mirror, the first step is to set the git push-url to the primary server. It would be much better if this could be done during the repo creation phase. It would need to be in the repo section (not additional behaviors) as more than one repo might be involved in a build..

          [JENKINS-46586] Can't set push-url in git configuration area

          John David added a comment -

          Forgot to mention. I am trying to use the git plugin to pre-build merge 2 branches into a third branch in a Matrix job.. This appears to require 2 builds. I will need to push the changes from the first build if it's successful. I can set the push-url during the axis builds but not in the parent build unless I do it in a post-build step. It would just be a lot cleaner if it could be done right up front.

          John David added a comment - Forgot to mention. I am trying to use the git plugin to pre-build merge 2 branches into a third branch in a Matrix job.. This appears to require 2 builds. I will need to push the changes from the first build if it's successful. I can set the push-url during the axis builds but not in the parent build unless I do it in a post-build step. It would just be a lot cleaner if it could be done right up front.

          Mark Waite added a comment -

          Do you consistently use the same credential for your pull and your push URL?

          I agree with your preference that the setting should be in the repository definition section. However, in the current implementation, there would not be a separate credentials selection for the push URL. If you're using the same credentials for pull and push, that would not be a problem. If you're using different credentials for pull and push, then the absence of a push url credential would be a problem.

          Mark Waite added a comment - Do you consistently use the same credential for your pull and your push URL? I agree with your preference that the setting should be in the repository definition section. However, in the current implementation, there would not be a separate credentials selection for the push URL. If you're using the same credentials for pull and push, that would not be a problem. If you're using different credentials for pull and push, then the absence of a push url credential would be a problem.

          John David added a comment -

          These are Bitbucket smart mirrors. Mirrors are nothing but a clone/fetch copy of the primary server. The same set of credentials apply globally on the primary server and all mirrors.

          John David added a comment - These are Bitbucket smart mirrors. Mirrors are nothing but a clone/fetch copy of the primary server. The same set of credentials apply globally on the primary server and all mirrors.

            Unassigned Unassigned
            anstaafl John David
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: