Expose refspec and depth to runner
-
Review changes -
-
Download -
Patches
-
Plain diff
All threads resolved!
All threads resolved!
What does this MR do?
This MR exposes refspecs
and depth
(for git-fetch) to runners according to this specification.
GitLab-Runner uses the exposed spec and depth in order to checkout source code.
We're going to use merge request's refs (e.g. refs/merge-requests/:iid/head
) in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/25504.
Sample response on POST jobs/request
When the job is not associated with a merge request
{
"id":6594,
"token":"FNWRozxyDZ4Q1HHWyW-1",
"allow_git_fetch":true,
"job_info":{
"name":"deploy",
"stage":"test",
"project_id":89,
"project_name":"prospective-merge-pipelines"
},
"git_info":{
"repo_url":"http://gitlab-ci-token:FNWRozxyDZ4Q1HHWyW-1@localhost:8181/root/prospective-merge-pipelines.git",
"sha":"abb6076c965eec51b92667388be8e7ef559f9ca3",
"before_sha":"0000000000000000000000000000000000000000",
"ref":"patch-7",
"ref_type":"branch",
"refspecs":[
"+refs/heads/*:refs/remotes/origin/*",
"+refs/tags/*:refs/tags/*"
],
"depth":0
},
...
}
What are the relevant issue numbers?
Related: https://gitlab.com/gitlab-org/gitlab-ee/issues/7380
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary - [-] Documentation created/updated via this MR
- [-] Documentation reviewed by technical writer or follow-up review issue created
-
Tests added for this feature/bug - [-] Tested in all supported browsers
-
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides - [-] Link to e2e tests MR added if this MR has Requires e2e tests label. See the Test Planning Process.
-
Security reports checked/validated by reviewer
Edited by Kamil Trzciński
Merge request reports
Compare and
- version 567147237e
- version 55fbed774f
- version 546d335cdb
- version 5398bc9245
- version 5246d42a7c
- version 51d08f03e1
- version 50ab9447ea
- version 49de0be596
- version 480bf97f0b
- version 474bea3f6a
- version 46e2b8d367
- version 45ebfbc376
- version 4445caf658
- version 43810ab356
- version 4217e83bf6
- version 418cf73e1c
- version 402364d1cb
- version 393a9f8a24
- version 389f49f451
- version 37544ac196
- version 36d0b0c14c
- version 352448b142
- version 340dd9a3e0
- version 33f533dd72
- version 3284765266
- version 3191c0cf7b
- version 308cbc0a7b
- version 29bfa2bfd9
- version 2853530a9d
- version 278d1c4cfb
- version 263d3f3954
- version 25cc311c6e
- version 242c67e8cd
- version 236fd3121a
- version 22f4631587
- version 21daec1cab
- version 20a17a15e6
- version 19063acca9
- version 18330b068a
- version 17d20e6f08
- version 1634efa286
- version 158263463e
- version 1448fa9fb5
- version 1392911ad7
- version 1205a1511d
- version 11283546f9
- version 105b9e892a
- version 91dc6888e
- version 840b809ef
- version 782d69c59
- version 6ece5071b
- version 5f7770354
- version 4dfa38d30
- version 3f5ffc41e
- version 236abee8d
- version 1eed3b325
- master (base)
- latest version7ba89e4a1 commit,
- version 567147237e1 commit,
- version 55fbed774f1 commit,
- version 546d335cdb2 commits,
- version 5398bc92452 commits,
- version 5246d42a7c1 commit,
- version 51d08f03e11 commit,
- version 50ab9447ea1 commit,
- version 49de0be5964 commits,
- version 480bf97f0b3 commits,
- version 474bea3f6a2 commits,
- version 46e2b8d3671 commit,
- version 45ebfbc3761 commit,
- version 4445caf6581 commit,
- version 43810ab3561 commit,
- version 4217e83bf64 commits,
- version 418cf73e1c3 commits,
- version 402364d1cb2 commits,
- version 393a9f8a241 commit,
- version 389f49f4512 commits,
- version 37544ac1961 commit,
- version 36d0b0c14c10 commits,
- version 352448b1429 commits,
- version 340dd9a3e08 commits,
- version 33f533dd727 commits,
- version 32847652666 commits,
- version 3191c0cf7b5 commits,
- version 308cbc0a7b4 commits,
- version 29bfa2bfd93 commits,
- version 2853530a9d2 commits,
- version 278d1c4cfb1 commit,
- version 263d3f39541 commit,
- version 25cc311c6e1 commit,
- version 242c67e8cd1 commit,
- version 236fd3121a1 commit,
- version 22f46315871 commit,
- version 21daec1cab1 commit,
- version 20a17a15e61 commit,
- version 19063acca91 commit,
- version 18330b068a3 commits,
- version 17d20e6f082 commits,
- version 1634efa2861 commit,
- version 158263463e1 commit,
- version 1448fa9fb51 commit,
- version 1392911ad78 commits,
- version 1205a1511d7 commits,
- version 11283546f96 commits,
- version 105b9e892a5 commits,
- version 91dc6888e5 commits,
- version 840b809ef4 commits,
- version 782d69c593 commits,
- version 6ece5071b3 commits,
- version 5f77703542 commits,
- version 4dfa38d301 commit,
- version 3f5ffc41e3 commits,
- version 236abee8d2 commits,
- version 1eed3b3251 commit,
4 files
+ 23
− 28
Compare changes
- Side-by-side
- Inline
Files
4+ 6
− 0
@@ -463,6 +463,8 @@ def features
@@ -476,6 +478,10 @@ def merge_request
Loading