<< Back to previous view

[QB-3426] Only build if there are new patch sets in Gerrit repository
Created: 24/Jul/19  Updated: 27/Feb/20

Status: Closed
Project: QuickBuild
Component/s: None
Affects Version/s: 9.0.14
Fix Version/s: 9.0.38

Type: Improvement Priority: Major
Reporter: Robin Shen Assigned To: Robin Shen
Resolution: Fixed Votes: 1
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown


 Comments   
Comment by Robin Shen [ 24/Jul/19 01:05 AM ]
Refer to https://support.pmease.com/PMEase/QuickBuild/topics/4119/gerrit-event-triggering-qb?0
Comment by Robin Shen [ 27/Feb/20 07:20 AM ]
With QB9, it is already possible to only build against open changes with new patch sets. This is what I am done:

1. Define a configuration and add a gerrit repository
2. Add relevant steps to checkout the gerrit repository and build against it
3. Make sure build condition of the configuration is set to "if changes found in referenced repositories"
4. Now schedule the configuration. When scheduled time reaches for the first time, all open changes will be built, as there is no previous build to determine patch set change. After that when scheduled time reaches again, all open changes will fire build requests, however only those with new patch sets will actually generate a build. Those without new patch sets will be ignored as there is no changes since previous run.

Please verify.
Comment by Robin Shen [ 27/Feb/20 07:31 AM ]
Also if option "Queue Changed Branches Only" is enabled in advanced setting of the configuration, the build request itself will not be queued for changes without new patch sets to save more resource.
Generated at Fri Apr 19 07:05:04 UTC 2024 using JIRA 189.