zoukankan      html  css  js  c++  java
  • 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是什么。
  • 相关阅读:
    在CentOS中安装VMware Tools
    引用
    iomanip头文件库函数
    第2章 寄存器(CPU工作原理)
    二维差分
    组合数学——康托展开和逆康托展开
    动态规划精讲(一)区域和检索
    动态规划精讲(一)最大子矩阵
    freopen
    动态规划精讲(一)环形子组数的最大和
  • 原文地址:https://www.cnblogs.com/liuyitan/p/15181161.html
Copyright © 2011-2022 走看看