Jenkins: putting my Python module on the PYTHONPATH

前端 未结 3 1947
终归单人心
终归单人心 2020-12-21 01:51

I am using Jenkins to test a Python module nodepy that I develop. However, I get errors like the following:

File \"/var/lib/jenkins/jobs/NodePy/workspace/co         


        
3条回答
  •  离开以前
    2020-12-21 02:24

    It turns out all I needed to do was follow the answer to this question in order to have Jenkins clone my repo into a subdirectory workspace/nodepy/. Since Jenkins runs the build in workspace, it then finds the package.

    When I first did this, it somehow created an infinite recursion of nodepy/nodepy/nodepy/... directories. After I cleared out the workspace, this problem went away.

提交回复
热议问题