hudson.model.Cause.UserCause is deprecated. hudson.model.Cause.UserIdCause should be used instead.
See JENKINS-20787 and JENKINS-20791
BUILD_USER_ID is not set in Maven build execution triggered by release:perform
Release button still triggers UserCause not UserIdCause. See https://github.com/jenkinsci/release-plugin/blob/master/src/main/java/hudson/plugins/release/ReleaseWrapper.java#L695
Agreed. I've integrated only the fix from the pending PR and have not searched for other usages.
My bad, to be fixed
I have submitted a PR to fix this.
Code changed in jenkins
User: Mustafa Ulu
JENKINS-20797 - Trigger builds with Cause.UserIdCause (#20)
JENKINS-20797 - Trigger with Cause.UserIdCause
Additional patch has been released in 2.6.1