Jenkins Error

中文乱码问题

参考
https://www.cnblogs.com/unknows/p/8519636.html

http://yeshaoting.github.io/article/jenkins/jenkins%E4%B8%AD%E6%96%87%E4%B9%B1%E7%A0%81%E4%B8%8E%E6%9C%8D%E5%8A%A1%E5%90%AF%E5%8A%A8/

Jenkins console output display color

打印测试报告时jenkins console output输出如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
> Task :cucumber

Scenario: ???? # src/test/resources/features/bta_open_an_account.feature:3
Starting MSEdgeDriver 85.0.564.51 (626274a16bb350129a74ead7a3d8d53a5ad39364) on port 5325
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping MSEdgeDriver safe.
MSEdgeDriver was started successfully.
[1605165549.451][WARNING]: This version of MSEdgeDriver has not been tested with MSEdge version 86.
Nov 12, 2020 3:19:11 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
http://10.20.159.131:8080/ifmmanage/bizframe/loginnew.jsp
Given ??BTA??????? # steps.StepDefs.login()
And ??BTA????? # steps.StepDefs.assertLoginSuccess()
When ??"????"??? # steps.StepDefs.open_tab(java.lang.String)
And ???????"????"?? # steps.StepDefs.clickClearingSystem(java.lang.String)
And ???????? # steps.StepDefs.clickDailyStartClearing()
And ?????? # steps.StepDefs.confirmWindow()
Then ???????"????"?? # steps.StepDefs.clickClearingSystem(java.lang.String)

ref: https://www.programmersought.com/article/66361313580/

How to stop an unstoppable zombie job on Jenkins without restarting the server?

Go to “Manage Jenkins” > “Script Console” and run a script:

1
2
3
Jenkins .instance.getItemByFullName("JobName")
.getBuildByNumber(JobNumber)
.finish(hudson.model.Result.ABORTED, new java.io.IOException("Aborting build"));

You’ll have just specify your JobName and JobNumber.

ref: https://stackoverflow.com/questions/14456592/how-to-stop-an-unstoppable-zombie-job-on-jenkins-without-restarting-the-server

jenkins 的在slave node运行的 job 状态不更新

jenkins master: Windows PC
jenkins slave: linux server

某个调度到slave的运行job总是不更新状态,明明已经完成了任务,但一直在页面左下角显示的是在运行中

可尝试 https://kb.iu.edu/d/aopy

引号

// 单引号需要拼接 容易出错 不推荐使用
sh 'mkdir -p ' + VARIABLE
// 三引号支持变量等内容,引号嵌套等 推荐使用
sh """cp ${VARIABLE}/ 'abc' "123" ${VARIABLE_1}/${VARIABLE_2}"""

Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2019-2024 John Doe
  • Visitors: | Views:

请我喝杯咖啡吧~