I have a Python script I am testing in Azure pipelines that works fine if I edit the yaml file to be:
- script: python Directory/test_script.py
I would like to run it using the PythonScript task because I need to pass arguments into the script and that doesn't seem to be supported using just the - script method.
My yaml file contains:
inputs:
scriptSource: 'filePath'
scriptPath: python Directory/test_script.py
arguments: --hello world
When the pipeline executes it shows the following error:
##[error]ENOENT: no such file or directory, stat '/home/vsts/work/1/s/python
How can I get the script to execute correctly so I can input parameters? I've also tried changing the workingDirectory parameter.