添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page. For a list of other such plugins, see the Pipeline Steps Reference page.
Table of Contents
  • SSH Pipeline Steps
  • sshCommand : SSH Steps: sshCommand - Execute command on remote node.
  • sshGet : SSH Steps: sshGet - Get a file/directory from remote node.
  • sshPut : SSH Steps: sshPut - Put a file/directory on remote node.
  • sshRemove : SSH Steps: sshRemove - Remove a file/directory from remote node.
  • sshScript : SSH Steps: sshScript - Execute script(file) on remote node.
  • sshCommand : SSH Steps: sshCommand - Execute command on remote node.

    Takes a remote (map) of settings and command to execute it on the remote node and returns output. See docs on the README for more information.

    def remote = [:] remote.name = 'test' remote.host = 'test.domain.com' remote.user = 'root' remote.password = 'password' remote.allowAnyHosts = true stage('Remote SSH') { sshCommand remote: remote, command: "ls -lrt" sshCommand remote: remote, command: "for i in {1..5}; do echo -n \"Loop \$i \"; date ; sleep 1; done"