0
A
回答
0
沒有原生選項,我猜。最近詹金斯建立允許更短的方式來訪問控制檯輸出 - 只需點擊左邊當前正在運行的構建灰/藍點:
如果你仍然認爲點擊是惱人的額外的步驟,那麼接下來的選項我會建議使用jenkins CLI。但它需要一些更多的一次性努力。
- 工作站上了Java安裝
- 下載詹金斯-cli.jar從http:// 你詹金斯舉辦 /jnlpJars/jenkins-cli.jar
然後就可以開始建立像這樣:
java -jar jenkins-cli.jar -s http://jenkins-url build buildname -w -s -v -p parameterN=valueN
java -jar jenkins-cli.jar -noKeyAuth -s http://jet:8080 build tst-so -w -s -v -p host2ping=google.com
Started tst-so #17
Started from command line by anonymous
Building in workspace /var/lib/jenkins/jobs/tst-so/workspace
[workspace] $ /bin/sh -xe /tmp/hudson5079113569382475588.sh
+ echo Hello from tst-so job
Hello from tst-so job
+ ping -c 6 google.com
PING google.com (216.58.209.206) 56(84) bytes of data.
64 bytes from bud02s22-in-f14.1e100.net (216.58.209.206): icmp_seq=1 ttl=54 time=51.6 ms
64 bytes from bud02s22-in-f14.1e100.net (216.58.209.206): icmp_seq=2 ttl=54 time=51.9 ms
64 bytes from bud02s22-in-f14.1e100.net (216.58.209.206): icmp_seq=3 ttl=54 time=51.8 ms
64 bytes from bud02s22-in-f14.1e100.net (216.58.209.206): icmp_seq=4 ttl=54 time=51.8 ms
64 bytes from bud02s22-in-f14.1e100.net (216.58.209.206): icmp_seq=5 ttl=54 time=51.8 ms
64 bytes from bud02s22-in-f14.1e100.net (216.58.209.206): icmp_seq=6 ttl=54 time=51.7 ms
--- google.com ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5009ms
rtt min/avg/max/mdev = 51.684/51.815/51.900/0.306 ms
Finished: SUCCESS
Completed tst-so #17 : SUCCESS
在我的例子jenkins是由於簡單的原因沒有身份驗證設置。
相關問題
- 1. 自動設置控制檯xy位置
- 2. python是否可以接收配置單元控制檯輸出?
- 3. 顯示控制檯輸出?
- 4. Jenkins在控制檯輸出頁面顯示回顯命令
- 5. 如何在Jenkins中顯示mbunit/gallio TestLog或控制檯輸出?
- 6. Jenkins文件系統中的「控制檯輸出」日誌位置
- 7. 在控制檯上輸出Log4j而不是配置文件
- 8. 配置Sympy啓動顯示輸出
- 9. 控制檯自動關閉而不顯示輸出
- 10. 將C#控制檯應用程序設置爲Unicode輸出
- 11. 爲Java控制檯設置文本輸出格式
- 12. 運行Jenkins時的控制檯輸出
- 13. Jenkins安全輸出控制檯faild build
- 14. 在Jenkins控制檯中輸出VBscript
- 15. 控制檯管道輸出:Jenkins
- 16. Eclipse在控制檯顯示舊輸出
- 17. Eclipse控制檯不顯示輸出
- 18. Build Pipeline不顯示控制檯輸出
- 19. webapp中的顯示控制檯輸出
- 20. 在NSView中顯示控制檯輸出
- 21. Jenkins HelloWorldBuilder未在控制檯中顯示
- 22. 控制有明顯的設置爲false
- 23. 導出aws管理控制檯設置
- 24. 是否有可能從beforebuild/afterbuild目標捕獲控制檯輸出並顯示爲Visual Studio輸出?
- 25. PyCharm:配置Python控制檯
- 26. 在控制檯輸入命令「cake」顯示沒有輸出
- 27. 設置jenkins配置時未顯示構建部分
- 28. CMD控制檯的設置
- 29. 如何從MassTransit配置控制檯輸出?
- 30. 如何在GUI中顯示來自控制檯的輸出