【问题标题】:Automatically execute Sphinx on Python script using Jenkins使用 Jenkins 在 Python 脚本上自动执行 Sphinx
【发布时间】:2019-05-27 09:02:24
【问题描述】:

我一直在尝试创建一个自动执行 python 脚本并通过 Sphinx 启动其文档的 Jenkins 作业。

执行部分运行良好,但我无法执行 Sphinx 部分。我的第一个想法是在使用cd 进入正确的目录后,使用make html 命令在Jenkins 作业中创建一个“执行Windows 脚本bash”步骤。但我不断收到此错误:

make is not recognized as an internal or external command

当我从 CMD 工具执行此操作时,同样的想法也有效。 我已经在 J​​enkins 设置中使用 System32 文件夹添加了 PATH 变量。

系统信息:

  • 操作系统:Windows
  • 架构:x64

【问题讨论】:

  • 能否请您添加系统信息,操作系统等?
  • 我使用的是 Windows 10 x64

标签: python windows jenkins python-sphinx


【解决方案1】:

我想通了,我只需将以下内容放入我的 Windows Shell 作业中:

call "Path\To\make.bat" 

【讨论】:

    猜你喜欢
    • 2021-03-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多