[JIRA] [git-plugin] (JENKINS-31267) cannot push non-HEAD to remote repo

1 view
Skip to first unread message

akostadinov@java.net (JIRA)

unread,
Oct 29, 2015, 12:45:02 PM10/29/15
to jenkinsc...@googlegroups.com
akostadinov created an issue
 
Jenkins / Bug JENKINS-31267
cannot push non-HEAD to remote repo
Issue Type: Bug Bug
Assignee: Mark Waite
Components: git-plugin
Created: 29/Oct/15 4:44 PM
Environment: 1.609.3
Priority: Minor Minor
Reporter: akostadinov

Git publisher plug-in can push current HEAD to remote repo but does not allow arbitrary branch specifier.

What I'm doing is performing repo mirror periodically, e.g.

git push mirror origin/master:master
git push mirror origin/another_branch:another_branch

I have a workaround to use ssh agent environemnt plug-in + shell commands but would be nice if option to specify custom source branch is possible.

P.S. I see that mirroring can be done but only for a single branch per job definition. So if you have multiple branches to mirror it means extrapolating job number and making job management harder.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

mark.earl.waite@gmail.com (JIRA)

unread,
Oct 29, 2015, 12:55:02 PM10/29/15
to jenkinsc...@googlegroups.com
Mark Waite assigned an issue to Unassigned
Change By: Mark Waite
Assignee: Mark Waite

furax@ya.ru (JIRA)

unread,
Nov 26, 2019, 8:03:02 AM11/26/19
to jenkinsc...@googlegroups.com
Dmitry Baskakov commented on Bug JENKINS-31267
 
Re: cannot push non-HEAD to remote repo

Impacts us, too. We have a job which tags and merges the branch we have the release done from: first, it creates tag for the current branch, then it merges it into 'master', then it merges 'master' into 'develop'. We have a script which does tagging and merging by using native 'git' command, but it can't push without extra work.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages