【发布时间】:2015-06-29 12:43:05
【问题描述】:
我在 main.c 中有一个简单的 hello world 代码。 Jenkins 运行该代码没有问题,但没有将 printf 放入 Jenkins 控制台。
是否有一些配置设置必须更改或我必须安装一些插件才能打印到 Jenkins 控制台?
控制台输出:
Started by user anonymous
Building in workspace C:\Users\ozcanovunc\.jenkins\jobs\jenkins-test\workspace
> git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git.exe config remote.origin.url https://github.com/ozcanovunc/jenkins-test.git # timeout=10
Fetching upstream changes from https://github.com/ozcanovunc/jenkins-test.git
> git.exe --version # timeout=10
using .gitcredentials to set credentials
> git.exe config --local credential.helper store --file=\"C:\WINDOWS\TEMP\git2428021638165579968.credentials\" # timeout=10
> git.exe -c core.askpass=true fetch --tags --progress https://github.com/ozcanovunc/jenkins-test.git +refs/heads/*:refs/remotes/origin/*
> git.exe config --local --remove-section credential # timeout=10
> git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
> git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10
Checking out Revision 615e0727146045f351ff36a80b41cd9c16b28aa2 (refs/remotes/origin/master)
> git.exe config core.sparsecheckout # timeout=10
> git.exe checkout -f 615e0727146045f351ff36a80b41cd9c16b28aa2
> git.exe rev-list 615e0727146045f351ff36a80b41cd9c16b28aa2 # timeout=10
[workspace] $ C:\Windows\system32\cmd.exe -xe C:\WINDOWS\TEMP\hudson1467373884410613106.sh
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\ozcanovunc\.jenkins\jobs\jenkins-test\workspace>Finished: SUCCESS
提前致谢!
编辑: 我知道有人问过非常相似的question,但似乎没有人对此一无所知。所以我还是想问一下。
编辑: 相同的配置在 Mac OS 上运行正常。
【问题讨论】:
标签: windows logging jenkins console output