Hi all,

Does anybody have a good idea as to how various git properties could be exported, so that they are available for use in other build steps?

In particular, we have Jenkins jobs which only build from git tags, and we have patched the git-plugin to export the tag message in an environment variable named GIT_TAG_MESSAGE. We then use that in later build steps.

While we have a patch, and I submitted a pull request to try and bring this functionality upstream, it was apparently not the most ideal way to implement it:
https://github.com/jenkinsci/git-plugin/pull/180

So, does anybody have an opinion about what would be a good way to implement this that it would be useful for everybody?

It need not just be for git tag messages, but I could imagine maybe that the value of the `git commit` message, or `git notes` could be useful too.

Thanks,
Chris

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to