I found that ucd.exe releases create
sometimes does not work, for more details please see this post .
Having a --dryrun
for the releases create
command, similar to how you implemented it to entries sync
command, would be beneficial for me.
I follow the “one bucket per platform per environment” approach as recommended here and now I’m in a situation where I want to ensure that all release commands work, before actually creating releases, to avoid that I release the android bucket and later fail to release the ios bucket.
The CLI steps would be like this (pseudo code)
if (call("ucd.exe releases create --dryrun --bucket androidBucketID") == failed)
abortBuild();
if (call("ucd.exe releases create --dryrun --bucket iosBucketID") == failed)
abortBuild();
// these calls would still check the return value, I left it out for simplicity in this example
call("ucd.exe releases create android");
call("ucd.exe releases create ios");
The --dryrun allows to reduce the risk that a sync command fails.