I have a task with a PS script in a repo. Script runs and executes fine. I want to access some other files in the repo but it appears the working directory the script runs in is “/opt/morpheus/lib/tomcat/temp/” rather than the repo (like it does for Python). How can I ref the directory of the repo files within the PS task?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Task PowerShell script - How to use PowerShell 7.x | 4 | 258 | March 4, 2024 | |
Python tasks ran from a code repository throws an error | 8 | 285 | May 20, 2022 | |
Powershell: Load and use a Dynamic Module directly from GitHub in Tasks | 3 | 388 | July 27, 2022 | |
:white_check_mark: Add option to run PowerShell Script tasks with PowerShell 7 | 1 | 137 | May 1, 2024 | |
How to use morpheus tags key variable in an automation task script | 3 | 329 | April 28, 2023 |