Windowsにスレーブエージェントを追加の際に以下のようなメッセージが表示された場合
========================================================================
[JenkinsWorkDirectory]$ c:\JenkinsWorkDirectory\jenkins-slave.exe install
WMI.WmiException:AccessDenied
at WMI.WmiRoot.ClassHandler.Invoke(Object proxy, MethodInfo method, Object[] args)
at WMI.Win32ServicesProxy.Create(String, String, String, ServiceType, ErrorControl, StartMode, Boolean, String, String, String[])
at winsw.WrapperService.Run(String[]_args,ServiceDescriptor descriptor)
at winsw.WrapperService.Main(String[]args)
I launch the slave as java web start and when I try to install it from service it doesnt work.
Tried the same thing on windows 7 and it works without any issue there.
========================================================================
管理者権限のインストールが必要なため、以下のコマンドで実行する。
> "C:\Program Files (x86)\Java\jre1.8.0_161\bin\javaws.exe" slave-agent.jnlp