Я пытаюсь установить ведомое устройство Jenkins, поскольку служба и служба запущены и работают, но не удалось загрузить agent.jar с моего сервера Jenkins в локальный каталог
, использованный ниже по ссылкам для установки ведомого устройства Jenkins как windows service https://hayato-iriumi.net/2019/05/23/how-to-install-jenkins-slave-as-windows-service/
Соединения JNLP устарели в Jenkins. Каков новый рекомендуемый способ подключения ведомого устройства windows к jenkins?
Jenkins-slave.xml
<service>
<id>JenkinsSlave</id>
<name>Jenkins agent</name>
<description>This service runs an agent for Jenkins automation server.</description>
<serviceaccount>
<domain>domain</domain>
<user>jenkins</user>
<password>****</password>
<allowservicelogon>true</allowservicelogon>
</serviceaccount>
<executable>C:\Program Files\Java\jdk1.8.0_161\bin\java.exe</executable>
<arguments>-Xrs -jar D:/jenkins/agent.jar -jnlpUrl https://test.jenkins.xyz.com/computer/Mac01/slave-agent.jnlp -secret 7dff1f596168aba156ec4cdd156a403dc739c1d6deacff94f1440d0273ed8d61 -workDir=D:/jenkins</arguments>
<logmode>rotate</logmode>
<onfailure action="restart" />
<download from="https://test.jenkins.xyz.com/jnlpJars/agent.jar" to="D:/jenkins/agent.jar" auth="sspi" />
<extensions>
<extension enabled="true" className="winsw.Plugins.RunawayProcessKiller.RunawayProcessKillerExtension" id="killOnStartup">
<pidfile>D:/jenkins/jenkins_agent.pid</pidfile>
<stopTimeout>5000</stopTimeout>
<stopParentFirst>false</stopParentFirst>
</extension>
</extensions>
</service>
2020-06-17 05:00:54,590 ERROR - Failed to download https://test.jenkins.xyz.com/jnlpJars/agent.jar to D:/jenkins/agent.jar
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream.
at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)
at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)
at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.ConnectStream.WriteHeaders(Boolean async)
— End of inner exception stack trace —
at System.Net.HttpWebRequest.GetResponse()
at winsw.Download.Perform()
at winsw.WrapperService.OnStart(String[] _)