I have few shell scripts which I can run on Unix machine terminals.
我有很少的shell脚本,我可以在Unix机器终端上运行。
I need to make it possible to run these from a browser and display the continuous log like how jenkins updates the build log output.
我需要能够从浏览器运行这些并显示连续日志,就像jenkins如何更新构建日志输出一样。
Any ideas of how to implement this ?
有关如何实现这一点的任何想法?
1 个解决方案
#1
0
depending on the complexity of the scripts you could just simply set up a jenkins job with "Build a free-style software project" and then add a build step "execute shell". In the shell you can then add your command.
根据脚本的复杂性,您只需使用“构建*式软件项目”设置jenkins作业,然后添加构建步骤“执行shell”。在shell中,您可以添加命令。
If you look for only manual execution of various commands you could also set this job to be parameterized e.g. with a string parameter (name cmd) and execute shell could contain ${cmd} - this would allow you to be completely flexible.
如果您只查找手动执行各种命令,您还可以将此作业设置为参数化,例如使用字符串参数(名称cmd)和执行shell可以包含$ {cmd} - 这将允许您完全灵活。
#1
0
depending on the complexity of the scripts you could just simply set up a jenkins job with "Build a free-style software project" and then add a build step "execute shell". In the shell you can then add your command.
根据脚本的复杂性,您只需使用“构建*式软件项目”设置jenkins作业,然后添加构建步骤“执行shell”。在shell中,您可以添加命令。
If you look for only manual execution of various commands you could also set this job to be parameterized e.g. with a string parameter (name cmd) and execute shell could contain ${cmd} - this would allow you to be completely flexible.
如果您只查找手动执行各种命令,您还可以将此作业设置为参数化,例如使用字符串参数(名称cmd)和执行shell可以包含$ {cmd} - 这将允许您完全灵活。