|
|
|
[
Permlink
| « Hide
]
Robin Shen [16/Jan/16 03:20 AM]
Also we can not add this feature as QB internally has to forcibly take snapshot at start of the build to make it repository revision consistent across the build (either for change calcuation, label step, or checkout step, etc.). Make this option may cause many issues for common use cases.
Instead for scenarios where user want to postpone snapshot taking to later phase in the build, they can always call below code to force QB to re-take snapshot:
repositories.get("repo").setRevision(null); repositories.get("repo").takeSnapshot(); Our rule is to make QB simple for common use cases, and make it possible for special cases via scripting. That's what I'm doing currently, so I will continue to do that. It is a bit cumbersome to have to cargo-cult this script around from configuration to configuration, but you are right that it's possible.
Thanks for the response, and please feel free to close this out, if you want.
|