forked from cstarner/pyenv-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Hi,
I try to run plugin withPythonEnv on windows server with code:
stage('Creat VENV') {
steps {
bat '''python -m venv venv
'''
}
}
stage('Build') {
steps {
withPythonEnv('venv\\Scripts\\python.exe'){
bat '''pip install -r requirements.txt
pip list
pyinstaller --onefile bo_installer.py
'''
}
}
but when start execute step Build Jenkins fails with error
[Pipeline] withPythonEnv
$ venv\Scripts\python.exe --version
[Pipeline] // withPythonEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
java.io.IOException: CreateProcess error=2, can't find file
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from ci3/10.50.1.53:55834
step 'Creat VENV' finish without any error. And I clearly knew that file python.exe exist in folder.
Jenkins ver. 2.204.1
Pyenv Pipeline Plugin ver 2.1.2
Have you any suggestion why it's fails?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.