How to create a release with a badge via ucd.exe?

I would like to assign a badge while creating a release using the CLI tool.

The reason is because I have to pass the ReleaseID to ucd.exe badges add, but the ReleaseID is generated by ucd.exe releases create. So I need to parse stdout to get my hands on the ReleaseID.

Is there a way to get the ReleaseID without parsing stdout?

Ideally I would like to assign a badge to the “releases create” command, like:

ucd.exe releases create --bucket myBucketID --badge myBadge --force-badge

The --badge flag expects the string to add as badge.
The --force-badge flag would be to move the badge to this release, in case it’s assigned to another release already, without a yes/no prompt.

I’m using ucd_0.9.9 and run it on a Windows Jenkins Server.

Thanks. This is a good suggestion that I could see being useful for a lot of people. I’ll bring it up to our product management fokls.

Thank you for the reply. Any chance you can tell me when this feature is being added? I’m a bit in a rush, if the change takes more than a month to become available, I need to find another solution/workaround in the meantime.

Hi Peter, I’m the PM on the team. We’re going to scope and prioritize this. Let me get back to you on timing by the end of this week. I expect it will be completed well within the next month.

1 Like

Hi @Peter77 , great news! We just released CLI v0.9.14. Which now allows you to add a badge with release! Other updates include:

  • –interactive flag added globally (to disable y/n prompt)
  • promote-only bucket support
  • added --release to entries sync command
  • improved upload behavior of sync
  • added --badge with releases create command (and with entries sync when --release is specified)
2 Likes

Hello,
A question about --interactive, how would you use it?
I’m trying different combinations for releasing with badge and cannot figure out how to remove the y/n prompt on:
ucd releases create -n "release" --badge development
I tried putting --interactive on every place, tried to put things like --interactive false, --interactive 0 to no avail

Can you give me an example for this? Thank you very much

Hi! The “interactive” flag can be set to the release command by adding

Hopefully this helps!