ubuntu - Jenkins "Console Output"几乎是空的

标签 ubuntu configuration console jenkins output

我在 Ubuntu 上安装了全新的 Jenkins

  1. 新工作 -> 构建多配置项目
  2. 向下滚动并单击“添加构建步骤”-> 执行 shell 并输入:

    echo hello
    
  3. 运行作业(成功)

  4. 查看运行的控制台输出:

    Started by user My Name
    Building in workspace /var/lib/jenkins/jobs/my_job/workspace
    Triggering default
    default completed with result SUCCESS
    Finished: SUCCESS
    

再次执行这些步骤,但使用执行 shell:

echo hello
thisshouldfail

然后你得到...

Started by user My Name
Building in workspace /var/lib/jenkins/jobs/my_job/workspace
Triggering default
default completed with result FAILURE
Finished: FAILURE

请注意您在输出中哪里看不到“hello”。这适用于我可能放入该 Execute Shell 中的任何内容。有帮助吗?

最佳答案

运行多配置项目时,您看到的日志是Manager-job
它只显示完整运行的摘要,基本上是:
“我运行了你所有的作业,一切顺利”(Finished: SUCCESS)
或者
“我运行了你所有的工作,但至少有一个失败了”(Finished: FAILURE)

它无法为您提供所有运行的单个日志,因为它们运行了多次
(在不同的从站和/或不同的配置上)。

要查看每次运行的日志,请单击矩阵中的每个红色(或蓝色)“球”-
每个代表该多配置构建的单个实例。

关于ubuntu - Jenkins "Console Output"几乎是空的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13756215/

相关文章:

linux - 无法安装 libc6 包

ubuntu - Elasticsearch 问题-我使用命令 curl -X GET "localhost:9200",不工作 4 curl -X GET "public_ipv4_of_ubuntu_server:9200"

git - Capistrano 3 到 ubuntu 14.04 git 错误

spring - 如何使用 Spring 嵌入的 ActiveMQ 代理指定自定义的 activemq.xml?

python - 我可以在 python 中加载 python 代码并将其解析为普通代码行吗?

c - 使用 Visual Studio 2015 进行编译时,将控制台(或标准输出)重定向到命名管道不再起作用

windows - cygwin + console2 : running cygwin bash with startup dir

c++ - 对 Boost 线程的 undefined reference

java - 在 Java 中管理应用程序配置属性

c# - 将参数传递给已经运行的应用程序