Git Plugin checking out mystery commit

5 views
Skip to first unread message

Shaun McArthur

unread,
Sep 4, 2019, 6:06:41 PM9/4/19
to Jenkins Users
This is happening more often than I'd like, and I can't figure out why.

- the commit I want to test is c3a9...
- the git plugin ends up checking out cd69.... - which appears to be master (?why?)

> /usr/bin/git merge -s recursive --ff c3a9d9a295f1acd636078514a49558c871cb502a # timeout=10
00:00:10.967  > /usr/bin/git rev-parse HEAD^{commit} # timeout=10
00:00:11.053 Seen 91 remote branches
00:00:11.068  > /usr/bin/git show-ref --tags -d # timeout=10
00:00:11.083 Checking out Revision cd69b45ba6a34f67791c5cbc6964b5c152415aae (origin/master)

- and of course, when I try to update the status, I get an error:
message": "No commit found for SHA: cd69b45ba6a34f67791c5cbc6964b5c152415aae"


...and then we end up re-testing master.

What is the Git Plugin doing?


Related - is there a way to script something before the git plugin does it's thing? I could convert the branch name to a commit id.


Thanks for any assistance. Cross posted to SO.
Shaun

Vincent Latombe

unread,
Sep 6, 2019, 5:25:14 AM9/6/19
to Jenkins Users
Hi,

you're probably using a strategy that is merging your branch with master before building.
Not sure what you use there but I would recommend you to review the git configuration in your job.

Vincent


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/34c14b2c-d7f5-423f-9711-72603e89c471%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages