1
votes

I went through other threads on this plugin discussions but couldn't find what I wanted. Here is my question. Before kicking off a build in Jenkins assume the latest 2 commits are commit-a and commit-b. During build time we make some changes and do a new commit and push, let's call this commit-c. Now I've configured this as post plugin and it shows me the changes between commit-a and commit-b in change log, how can I get the differences between commit-b and commit-c to show up in post build change log in present build (where commit-c was done)?

In plugin configuration I'm using ${GIT_PREVIOUS_COMMIT} and ${GIT_COMMIT} for comparision.

Thanks.

1

1 Answers

0
votes

it shows me the changes between commit-a and commit-b in change log

It shows you the changes at the moment the build was triggered: if commit-c was not pushed at that time, that diff is expected.

Then, once commit-c is pushed, the next job will show you the diff between commit-b and commit-c.