Skip to content

Settings and activity

3 results found

  1. 3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    4 comments  ·  Product Feedback  ·  Flag idea as inappropriate…  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    Michael McDaniel commented  · 

    @Sean

    Actually, we do both! The script in my previous comment should work in both cases.

    An error occurred while saving the comment
    Michael McDaniel commented  · 

    We have a similar scenario. But we work around what you are suggesting by having those scripts (many in our case) in another project that is deployed to each server to a path that is specified in a library variable. (like #{Deploy-Scripts-Path}="c:\deployment\scripts") We then use that variable path in our other projects to call the scripts using:

    $script = ($OctopusParameters["Deploy-Scripts-Path"] + "\script.ps1")
    if (![System.IO.File]::Exists($script))
    {
    throw ("Script Not Found: $script`r`nPlease Verify that Deployment Scripts were deployed to: " + $OctopusParameters["Deploy-Scripts-Path"])
    }
    . $script

  2. 7 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Product Feedback  ·  Flag idea as inappropriate…  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Michael McDaniel supported this idea  · 
  3. 4 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Product Feedback  ·  Flag idea as inappropriate…  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Michael McDaniel shared this idea  ·