How can I run python script from Jenkins declarative pipeline?
The machine is Windows and I already have python 2.7 installed on it. I tried several ways:
def return_val = bat(script: 'C:\\aaa.py', returnStdout: true)
python C:\\aaa.py
python.exe C:\\aaa.py
python returnStatus: true, script: 'C:\\aaa.py'