1

Description

Jenkins job was made and configured to build release branch which already existed and had changes on it before first build. Job also monitors for push on BitBucket and starts building if something is pushed to the release branch.

Problem is we didn't made any changes on release branch, instead we were rebasing it on development and pushing it which triggered builds but it shows "No changes in any of the builds." in Changes menu.

Question

Is there special configuration for Jenkins which allows it to handle rebase commits and show changes that occurred to that commit comparing to previous build?

  • Was the rebase a fast-forward one? Do you see a merge commit for it in git log (after the last development branch commit being merged)? – Dan Cornilescu Jun 26 '18 at 14:07
  • @DanCornilescu this is what it shows for rebase, I don't see merge commit. f7398e22 (origin/release/2.0.1, release/2.0.1) HEAD@{16}: rebase finished: returning to refs/heads/release/2.0.1 f7398e22 (origin/release/2.0.1, release/2.0.1) HEAD@{17}: rebase: NOT-600: Updated version number 751fd43c (HEAD -> development, origin/feature/NOT-594, origin/development) HEAD@{18}: rebase: checkout development b450c488 HEAD@{19}: checkout: moving from development to release/2.0.1 – Najdan Tomić Jun 26 '18 at 14:24
  • Is JENKINS-17411 describing your scenario? – Dan Cornilescu Jun 26 '18 at 14:43
  • @DanCornilescu not really. Jenkins does build, but changes section is always empty. – Najdan Tomić Jun 26 '18 at 14:53
1

Temporary workaround

Instead of calculating changes between builds compare changes against specific branch.

  1. Open job configuration
  2. Go to Source Code Management -> Git -> Additional Behaviours
  3. Add Calculate changelog against a specific branch
  4. Enter name of repository (origin in my case), and branch (master in my case)

Now instead of showing only new changes, each build will show all commits in release branch that are different comparing to master.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.