-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins ver. 1.649
Git plugin 2.4.2
Our repositories have lots of references and we only need to build from a single branch from each job. For example, I have a job with refspec +refs/heads/master:refs/remotes/origin/master.
On the first clone, it does the following:
Cloning the remote Git repository
Using shallow clone
Avoid fetching tags
Cloning repository https://github.com/foo.git
> git init /tmp/jenkins/slave1/workspace/sample/smoke-test # timeout=10
Fetching upstream changes from https://github.com/foo.git
> git --version # timeout=10
> git -c core.askpass=true fetch --no-tags --progress https://github.com/foo.git +refs/heads/*:refs/remotes/origin/* --depth=1 # timeout=10
- is related to
-
JENKINS-36507 git plugin 2.5.2 breaks builds which use a narrow refspec but expect all refs were fetched
-
- Closed
-
-
JENKINS-31393 Git plugin fetches all branches before fetching the specified refspec
-
- Closed
-
- relates to
-
JENKINS-28516 refspec is not applied on clone (initial fetch)
-
- Closed
-
[JENKINS-33140] Git plugin doesn't use refspec on the first clone/fetch
Description |
Original:
Our repositories have lots of references and we only need to build from a single branch from each job. For example, I have a job with refspec +refs/heads/master:refs/remotes/origin/master. On the first clone, it does the following: Cloning the remote Git repository Using shallow clone Avoid fetching tags Cloning repository https://github.com/foo.git > git init /tmp/jenkins/slave1/workspace/sample/smoke-test # timeout=10 Fetching upstream changes from https://github.com/foo.git > git --version # timeout=10 > git -c core.askpass=true fetch --no-tags --progress https://github.com/foo.git +refs/heads/*:refs/remotes/origin/* --depth=1 # timeout=10 |
New:
Our repositories have lots of references and we only need to build from a single branch from each job. For example, I have a job with refspec +refs/heads/master:refs/remotes/origin/master. On the first clone, it does the following: Cloning the remote Git repository Using shallow clone Avoid fetching tags Cloning repository https://github.com/foo.git > git init /tmp/jenkins/slave1/workspace/sample/smoke-test # timeout=10 Fetching upstream changes from https://github.com/foo.git > git --version # timeout=10 > git -c core.askpass=true fetch --no-tags --progress https://github.com/foo.git +refs/heads/**:refs/remotes/origin/** --depth=1 # timeout=10 |
Assignee | Original: Mark Waite [ markewaite ] |
Resolution | New: Duplicate [ 3 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |
Workflow | Original: JNJira [ 169013 ] | New: JNJira + In-Review [ 209746 ] |
Resolution | Original: Duplicate [ 3 ] | |
Status | Original: Closed [ 6 ] | New: Reopened [ 4 ] |
Link |
New:
This issue is related to |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Reopened [ 4 ] | New: Resolved [ 5 ] |
Link |
New:
This issue is related to |
Link |
New:
This issue relates to |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |