groovy
文章平均质量分 67
zhenzhen.wu
好好工作天天向上
展开
-
JenkinsPost避坑
stage中设置catchError和post,当steps运行失败时,将stageResult设置为失败,通过post发送失败邮件通知。结果:steps执行失败时,catchError将stageResult设置为失败,但failurepost没有触发。某个stage失败不影响整体pipeline运行,只需要在stage失败时邮件通知相关人员即可。post支持根据stage核pipeline执行的结果而进行特定处理,但在post。在failurepost前需要加一个always触发post。原创 2022-08-19 17:12:52 · 1138 阅读 · 0 评论 -
jenkins pipeline语法详解
详细说明了jenkins pipeline的语法结构和常用命令原创 2022-07-06 17:35:45 · 985 阅读 · 0 评论 -
groovy风格字符串截取、赋值、拼接
1、截取字符串deftext1="Mylastcharacterwillberemovedsoon"printlntext1[0..-2]//Mylastcharacterwillberemovedsoodeftext2="Myfirstwordwillberemovedsoon";prin...原创 2018-09-10 16:26:01 · 26185 阅读 · 2 评论