Is there a way to get calamri version dynamically?

rammaram06's Avatar

rammaram06

08 Jan, 2018 03:54 PM

Hi,

In one of our scripts we are using Calamari folder path, D:\Octopus\calamari\4.1.5. Right now we are changing version number whenever a new version releases. Is there a way to get this version number dynamically?

Thanks,

Ram

  1. Support Staff 1 Posted by Robert Wagner on 09 Jan, 2018 12:20 AM

    Robert Wagner's Avatar

    Hi,

    We do not keep that version number anywhere, your best bet is getting the last created directory in that folder:

    get-childitem c:\octopus\calamari | Sort-Object { $_.CreationTime } -Descending | select -first 1

    Rob W

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac