Jenkins Windows Agent 設(shè)置

準備 Java 運行環(huán)境

下載 Java

配置 Java Windows 環(huán)境變量

JAVA_HOME=C:\Program Files\Java\jdk1.8.0_201
CLASSPATH=.;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib

創(chuàng)建 Node

Jenkins 首頁->Manage Node->New Node

Windows agent 設(shè)置如下

Items Settings
Name window-build-machine
Description used for windows build
of executors 1
Remote root directory C:\agent
Labels windows, build
Usage Use this node as much as possible
Launch method Let Jenkins control this Windows slave as a Windows service
Administrator user name .\Administrator
Password mypassword
Host 192.168.1.111
Run service as Use Administrator account given above
Availability Keep this agent online as much as paossible

保存然后連接

[2019-05-11 01:32:50] [windows-slaves] Connecting to 192.168.1.111
Checking if Java exists
java -version returned 1.8.0.
[2019-05-11 01:32:50] [windows-slaves] Copying jenkins-slave.xml
[2019-05-11 01:32:50] [windows-slaves] Copying slave.jar
[2019-05-11 01:32:50] [windows-slaves] Starting the service
[2019-05-11 01:32:50] [windows-slaves] Waiting for the service to become ready
[2019-05-11 01:32:55] [windows-slaves] Connecting to port 52,347
<===[JENKINS REMOTING CAPACITY]===>Remoting version: 3.29
This is a Windows agent
Agent successfully connected and online

問題解決

問題 如何解決
ERROR: Message not found for errorCode: 0xC00000AC need to install JDK, and config JAVA environment variable
how to fix add windows node as Windows service error JENKINS-16418
org.jinterop.dcom.common.JIException: Message not found for errorCode: 0x00000005 HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID {72C24DD5-D70A-438B-8A42-98424B88AFB8}, HKEY_CLASSES_ROOT\CLSID{76A64158-CB41-11D1-8B02-00600806D9B6} Launch 'regedit' (as Administrator), Find (Ctrl+F) the following registry key: "{72C24DD5-D70A-438B-8A42-98424B88AFB8}" in HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID, Right click and select 'Permissions', Change owner to administrators group (Advanced...). Change permissions for administrators group. Grant Full Control, Change owner back to TrustedInstaller (user is "NT Service\TrustedInstaller" on local machine), Repeat the steps above for HKEY_CLASSES_ROOT\CLSID {76A64158-CB41-11D1-8B02-00600806D9B6}, Restart Remote Registry Service (Administrative Tools / Services)
ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins Login remote machine and open Services, find jenkinsslave-C__agent, Set startup type: Automatic, Log On: select This account, type correct account and password, start jenkinsslave-C__agent
Caused by: org.jinterop.dcom.common.JIRuntimeException: Message not found for errorCode: 0x800703FA Slave under domain account, If your slave is running under a domain account and you get an error code 0x800703FA, change a group policy: open the group policy editor (gpedit.msc) go to Computer Configuration->Administrative Templates->System-> UserProfiles, "Do not forcefully unload the user registry at user logoff" Change the setting from "Not Configured" to "Enabled", which disables the new User Profile Service feature ('DisableForceUnload' is the value added to the registry)
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關(guān)閱讀更多精彩內(nèi)容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi閱讀 7,870評論 0 10
  • **2014真題Directions:Read the following text. Choose the be...
    又是夜半驚坐起閱讀 11,181評論 0 23
  • By clicking to agree to this Schedule 2, which is hereby ...
    qaz0622閱讀 1,639評論 0 2
  • 喜歡一本書,因為書名叫“我最好的作品就是我的生活”。我想,只要用心,我們的生活都可以是我們最好的作品;只要用心,我...
    叮當_dfb8閱讀 1,164評論 0 3
  • 1. n = 6789, 寫代碼獲取變量n中百位上的數(shù) 2. n = 12345, 寫代碼獲取變量n中每一位上的數(shù)...
    Ygon楊楊閱讀 150評論 0 0

友情鏈接更多精彩內(nèi)容