<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>int128</author_name>
  <author_url>https://blog.hatena.ne.jp/int128/</author_url>
  <blog_title>GeekFactory</blog_title>
  <blog_url>https://int128.hatenablog.com/</blog_url>
  <categories>
    <anon>jenkins</anon>
    <anon>groovy</anon>
  </categories>
  <description>Jenkinsのスクリプトコンソールを利用すると、Slaveで任意のコマンドを実行できます。具体的には、 RemotingDiagnostics.executeGroovy() メソッドを利用してSlaveでGroovyスクリプトを実行します。 import hudson.util.RemotingDiagnostics // Slaveノード名 def node = 'node-name' // 実行したいコマンド def command = 'uname -a' println RemotingDiagnostics.executeGroovy(&quot;&quot;&quot; def p = '$command'…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fint128.hatenablog.com%2Fentry%2F2016%2F10%2F27%2F224533&quot; title=&quot;スクリプトコンソール上でSlaveでコマンドを実行する - GeekFactory&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-10-27 22:45:33</published>
  <title>スクリプトコンソール上でSlaveでコマンドを実行する</title>
  <type>rich</type>
  <url>https://int128.hatenablog.com/entry/2016/10/27/224533</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
