LoginSignup
1

More than 5 years have passed since last update.

Jenkins-Slave追加時にAccessDeniedでエラーとなった際の対応メモ

Last updated at Posted at 2018-03-01

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

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1