Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To execute PowerShell code from a job running inside a "plus" Agent container you can use the following sequence of commands for the job script:

Code Block
languagepowershell
titleExecute PowerShell jobs in a "plus" container
linenumberstrue
pwsh -NoLogo -NonInteractive -Command '& {
    Import-Module JS7
    Connect-JS7 -Url http://root:root@js7-joc-primary:4446 -Id jobscheduler

    Get-JS7ControllerStatus -display
}'