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 | 317 | March 4, 2024 | |
Python tasks ran from a code repository throws an error | 8 | 291 | May 20, 2022 | |
Powershell: Load and use a Dynamic Module directly from GitHub in Tasks | 3 | 396 | July 27, 2022 | |
:white_check_mark: Add option to run PowerShell Script tasks with PowerShell 7 | 1 | 143 | May 1, 2024 | |
Accessing Task Context Variables | 2 | 49 | November 5, 2024 |