Uploaded image for project: 'Bamboo'
  1. Bamboo
  2. BAM-14097

"Invoke-Command" in powershell script doesn't work when invoke it from bamboo task only

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Gathering Impact (View Workflow)
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Windows
    • Labels:
      None

      Description

      See more details there
      https://answers.atlassian.com/questions/239823/invoke-command-in-powershell-script-doesn-t-work-when-invoke-it-from-bamboo-task-only

      Steps to reproduce

      Create Script task with PowerShell interpreter

      $session = New-PSSession
      Invoke-Command -Session $session -ScriptBlock {
          Start-Process "calc.exe"
      }
      

      Start agent on windows host under Administrative account
      Add requirement to created plan to be sure it's executed at started Windows agent
      Start plan

      Expected: calculator window
      Actual: nothing happened

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            andreyworks Andrey AndreySh
            Votes:
            8 Vote for this issue
            Watchers:
            10 Start watching this issue

              Dates

              Created:
              Updated: