jenkins高级篇 pipeline系列之-—06 Pipeline Utility Steps
支持的方法清单如下:
| 方法 | 功能 |
|---|---|
| compareVersions: | Compare two version number strings |
| findFiles: | Find files in the workspace |
| nodesByLabel: | List of nodes by Label, by default excludes offline nodes. |
| readCSV: | Read content from a CSV file in the workspace. |
| readJSON: | Read JSON from files in the workspace. |
| readManifest: | Read a Jar Manifest |
| readMavenPom: | Read a maven project file. |
| readProperties: | Read properties from files in the workspace or text. |
| readYaml: | Read yaml from files in the workspace or text. |
| sha1: | Compute the SHA1 of a given file |
| sha256: | Compute the SHA256 of a given file |
| tee: | Tee output to file |
| touch: | Create a file (if not already exist) in the workspace, and set the timestamp |
| unzip: | Extract Zip file |
| writeCSV: | Write content to a CSV file in the workspace. |
| writeJSON: | Write JSON to a file in the workspace. |
| writeMavenPom: | Write a maven project file. |
| writeYaml: | Write a yaml from an object or objects. |
| zip: | Create Zip file |
注意:要使用上述方法,首先需在Jenkins环境插件管理中,安装Pipeline Utility Steps插件
Pipeline Utility Steps-1-方法findFiles
Pipeline Utility Steps-2-方法readJSON和writeJSON
Pipeline Utility Steps-3-方法readProperties
Pipeline Utility Steps-4-方法readYaml和writeYaml
参考资料
官方
【Quality】
Quality is the value to someone who matters。做测试,首先要找到这个someone是谁,以及这个 someone重视的 value是什么。

浙公网安备 33010602011771号