我在 Windows 10 机器上安装了 Jenkins Windows 设置。我想安排一个只执行 BAT 文件的建筑物,该文件旨在在 Anaconda Virtual Env 上运行脚本:
call C:\ProgramData\Anaconda3\Scripts\activate.bat C:\ProgramData\Anaconda3
call cd C:\tensorflow1\Projects\dcp\m3u\m3u_parser
call conda activate tensorflow1
当我尝试运行它时,我收到了这个错误
Started by user admin
Running as SYSTEM
Building in workspace C:\Program Files (x86)\Jenkins\workspace\txx
[txx] $ cmd /c call C:\Windows\TEMP\jenkins401597951051427948.bat
C:\Program Files (x86)\Jenkins\workspace\txx>call C:\ProgramData\Anaconda3\Scripts\activate.bat C:\ProgramData\Anaconda3
(base) C:\Program Files (x86)\Jenkins\workspace\txx>call cd C:\tensorflow1\Projects\dcp\m3u\m3u_parser
(base) C:\tensorflow1\Projects\dcp\m3u\m3u_parser>call conda activate tensorflow1
Could not find conda environment: tensorflow1
You can list all discoverable environments with `conda info --envs`.
(base) C:\tensorflow1\Projects\dcp\m3u\m3u_parser>exit 1
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE
如果我从 Windows 运行 BAT,我可以毫无问题地执行。我究竟做错了什么?谢谢
守着星空守着你
相关分类