Jenkins Multibranch project trowes fatal: ambiguous argument 'upstream/master': unknown revision or path not in the working tree. for the PR build
Asked Answered
P

1

1

I am working on a project same as this question. Even though I used the same solution still i'am getting below error. Is anything updated in git recently? or anyone have solution to fix it?

16:48:06  + git rev-parse upstream/master
16:48:06  fatal: ambiguous argument 'upstream/master': unknown revision or path not in the working tree.
16:48:06  Use '--' to separate paths from revisions, like this:
16:48:06  'git <command> [<revision>...] -- [<file>...]'
16:48:06  upstream/master
Poul answered 5/8, 2020 at 8:2 Comment(1)
It is telling you that the branch upstream/master does not exist on the server.Piecework
P
5

I found the solution finally. adding ref specs to project fixed the issue.enter image description here

Poul answered 5/8, 2020 at 14:59 Comment(1)
This helped me greatly.Waylin

© 2022 - 2024 — McMap. All rights reserved.