Jenkins学习笔记
Jenkins构建项目的几种方式
Jenkins简单的PipeLine流水线脚本
Windows:
1 | pipeline { |
Linux:
1 | 把bat改为sh |
注意:pipeline、stages、stage、steps、checkout…这些词不能改
构建遇到问题:java.lang.NoSuchMethodError: No such DSL method ‘pipeline’ found among steps [bat, build, checkout, container, containerLog, input, junit, library, libraryResource, load, milestone, node, parallel, podTemplate, powershell, properties
解决方法:成功安装PipeLine插件。