jenkinsci / pyenv-pipeline-plugin

Execute commands in Python virtualenvs in Jenkins Pipeline DSL
https://plugins.jenkins.io/pyenv-pipeline/
MIT License
33 stars 15 forks source link

.pyenv-python.exe/bin/activate: No such file or directory on Windows #5

Closed jitbasemartin closed 6 years ago

jitbasemartin commented 6 years ago

Hello,

I don't know if I use the plugin correctly but I got this error on Windows: .pyenv-python.exe/bin/activate: No such file or directory

My pipeline code is:

    node("WINDOWS") {
        stage("Install") {
            withPythonEnv("python.exe") {
                pybat "python setup.py install"
            }   
        }
    }

I use:

If I browse my workspace the activate script is in .pyenv-python.exe\Script\activate maybe it's the problem ?

Thanks

cstarner commented 6 years ago

That error is caused by using a pysh step on a Windows machine. Double-check and make sure that all of the commands that occur within the withPythonEnv block are pybat

jitbasemartin commented 6 years ago

Thanks I forgot to change all my pysh by pybat