[JIRA] (JENKINS-53232) Report original commit ID when using "Merge before build"

2 views
Skip to first unread message

alex.goldberg@vectorzeroinc.com (JIRA)

unread,
Aug 24, 2018, 3:09:01 PM8/24/18
to jenkinsc...@googlegroups.com
Alex Goldberg created an issue
 
Jenkins / Improvement JENKINS-53232
Report original commit ID when using "Merge before build"
Issue Type: Improvement Improvement
Assignee: Antonio Mansilla
Components: bitbucket-build-status-notifier-plugin, git-plugin
Created: 2018-08-24 19:08
Priority: Minor Minor
Reporter: Alex Goldberg

We trigger changes on pushes to feature branches, and want to perform a local merge with master before building (in order to ensure that master will build when the feature is later merged).

The "Merge before build" option on the git plugin handles this nicely, but it unfortunately leaves the workspace on a different changeset (if a fast-forward wasn't possible), as it operates by first checking out master and then merging in the feature branch.  

As a result, the Bitbucket Build Status Notifier plugin sometimes reports success/failure for a nonexistent changeset.  We want to report status for the commit on the feature branch that triggered the build (not the throwaway local changeset resulting from merge).

We can add a prebuild step to execute the git commands manually (eg. by merging master into feature with --no-commit), but then we have to manually deal with things like updating git LFS (since master may have new git lfs files)

Has anyone else found a more graceful solution to this issue?

Seems related to this issue: JENKINS-21536

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

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

unread,
Sep 14, 2019, 10:18:02 PM9/14/19
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
Change By: Mark Waite
Component/s: git-plugin
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages