-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide GIT_COMMIT_TITLE as environment variable #1074
base: master
Are you sure you want to change the base?
Conversation
Updating the local repository
I wonder when this pr can be merged, it's been a long time... |
I would recommend caution here - as per the if this is needed then it would seem beneficial to those that want this to obtain it directly the checkout themselves ( |
JENKINS-52490 - Provide GIT_COMMIT_TITLE as environment variable
Updated the pull request by Jeff Krunek . Fixed the test case testCommitMessageisEnvVar to directly run the freestyle job so the checkout step is automatically initiated and setting up the GIT_COMMIT_TITLE environment variable in the buildEnvironment API instead of the checkout step.
Checklist
Types of changes
Further Comments
As CaptureEnvironmentBuilder does not capture the environment variable GIT_COMMIT_TITLE if populated in the checkout step. Other variables like GIT_BRANCH and GIT_COMMIT are captured by the CaptureEnvironmentBuilder as they are populated in the buildEnvironment API as well, but GIT_COMMIT_TITLE can not be populated so implemented it in buildEnvironment API.