简体   繁体   English

收集脚本的输出并将其发布到Jenkins中

[英]Collect output of script and publish it to confluence in Jenkins

I have a shell script that logs on to the given server, finds all the wars running on the same and prints their name and versions to the console. 我有一个shell脚本,该脚本登录到给定的服务器,找到在同一服务器上运行的所有war,并将其名称和版本打印到控制台。 I need to take this output and display it on a page in confluence. 我需要获取此输出并将其显示在页面上。

I went through this plugin for Jenkins and can connect and print static stuff on the page I provide. 我通过了Jenkins 插件 ,可以在我提供的页面上连接并打印静态内容。

The output that my script creates is dynamic, how do I, say store it in a variable and use it in the: Post-build Actions -> Publish to confluence -> Wiki Markup Replacements. 我的脚本创建的输出是动态的,我要说如何将其存储在变量中,并在以下位置使用它:构建后操作->发布到合流-> Wiki标记替换。

I have googled around and played with Jenkins to get these results, to no avail. 我四处搜寻并与詹金斯(Jenkins)一起玩以获得这些结果,但无济于事。 I have seen '/env-vars.html' page, but none of these are of use to me, for my data is dynamic. 我看过“ /env-vars.html”页面,但是这些都不对我有用,因为我的数据是动态的。

我提到这个来完成这项任务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM