Re: Starting Jenkins slave as Windows service
OK, I was calling main method in hudson.remoting.jnlp.Main set PR_STARTCLASS=hudson.remoting.jnlp.Main Now im calling main method in hudson.remoting.Launcher and the service starts. But when I stop the service it does not stop correctly because there is no stop method inside Launcher. Is there a way to get the service to stop without the stop method? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/cbd6f73a-9e38-4e91-a4ae-036dc1e2dd31%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Starting Jenkins slave as Windows service
At the node i got only java -jar agent.jar -jnlpUrl http://172.22.100.251/jenkins/computer/172.19.146.11/slave-agent.jnlp without any other parameter. and the slave starts with no problem when I test it on the command line. Am Dienstag, 28. November 2017 19:29:47 UTC+1 schrieb itchymuzzle: > > Go to Jenkins server, select the node you have defined for this Windows > instance. It will give you the command you need to run, on the command > line. > > Test that that works on the command line, then figure our how to get > procron to do that for you. > > The command will look something like this (use google for other examples): > > "java -jar agent.jar -jnlpUrl > http://ip-of-jenkins-server:port-of-jenkins-server/computer/name-of-node/slave-agent.jnlp > -secret long-unique-number" > > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/da010f10-6255-4ec0-8320-619af939530d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Starting Jenkins slave as Windows service
Go to Jenkins server, select the node you have defined for this Windows instance. It will give you the command you need to run, on the command line. Test that that works on the command line, then figure our how to get procron to do that for you. The command will look something like this (use google for other examples): "java -jar agent.jar -jnlpUrl http://ip-of-jenkins-server:port-of-jenkins-server/computer/name-of-node/slave-agent.jnlp -secret long-unique-number" -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/789bc8e1-d8ec-4582-9afd-71e58654057d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Starting Jenkins slave as Windows service
I used procrun to generate the service This is my configuration file: set SERVICE_NAME=jenkinsTest99 set PR_INSTALL=g:\jenkins\test\prunsrv.exe REM Service log configuration set PR_LOGPREFIX=%SERVICE_NAME% set PR_LOGPATH=c:\logs set PR_STDOUTPUT=c:\logs\stdout.txt set PR_STDERROR=c:\logs\stderr.txt set PR_LOGLEVEL=Error REM Path to java installation set PR_JVM=%JAVA_HOME%\jre\bin\client\jvm.dll set PR_CLASSPATH=g:\jenkins\test\slave.jar REM Startup configuration set PR_STARTUP=auto set PR_STARTMODE=jvm set PR_STARTCLASS=hudson.remoting.jnlp.Main set PR_STARTMETHOD=main set PR_STARTPARAMS=url=http:// 111.11.11.111/jenkins/computer/222.22.22.2/slave-agent.jnlp REM Shutdown configuration set PR_STOPMODE=jvm set PR_STOPCLASS=Main set PR_STOPMETHOD=stop REM JVM configuration set PR_JVMMS=256 set PR_JVMMX=1024 set PR_JVMSS=4000 set PR_JVMOPTIONS=-Duser.language=DE;-Duser.region=de REM Install servic prunsrv.exe //IS//%SERVICE_NAME% in the service properties I got g:\jenkins\test\prunsrv.exe //RS//jenkinsTest99 And when I start the service, I got the error message above -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9b90b8de-b616-48b4-9b11-b43ce7288485%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Starting Jenkins slave as Windows service
I used procrun to generate the service This is my configuration file: set SERVICE_NAME=jenkinsTest99 set PR_INSTALL=g:\jenkins\test\prunsrv.exe REM Service log configuration set PR_LOGPREFIX=%SERVICE_NAME% set PR_LOGPATH=c:\logs set PR_STDOUTPUT=c:\logs\stdout.txt set PR_STDERROR=c:\logs\stderr.txt set PR_LOGLEVEL=Error REM Path to java installation set PR_JVM=%JAVA_HOME%\jre\bin\client\jvm.dll set PR_CLASSPATH=g:\jenkins\test\slave.jar REM Startup configuration set PR_STARTUP=auto set PR_STARTMODE=jvm set PR_STARTCLASS=hudson.remoting.jnlp.Main set PR_STARTMETHOD=main set PR_STARTPARAMS=url=http:// 111.11.11.111/jenkins/computer/222.22.22.2/slave-agent.jnlp REM Shutdown configuration set PR_STOPMODE=jvm set PR_STOPCLASS=Main set PR_STOPMETHOD=stop REM JVM configuration set PR_JVMMS=256 set PR_JVMMX=1024 set PR_JVMSS=4000 set PR_JVMOPTIONS=-Duser.language=DE;-Duser.region=de REM Install servic prunsrv.exe //IS//%SERVICE_NAME% in the service properties I got g:\jenkins\test\prunsrv.exe //RS//jenkinsTest2 And when I start the service, I got the error message above -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/03348bad-c4cb-4355-9e1c-663d4da64119%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Starting Jenkins slave as Windows service
Not clear what command you used. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c1590b5b-b2b1-4f3b-a969-4e2dab42c50e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Starting Jenkins slave as Windows service
I'm trying to start Jenkins slave as a windows service, but I get the following error. which second argument is required here? 2017-11-28 16:02:01 Commons Daemon procrun stderr initialized two arguments required, but got [url=http://111.11.11.111/jenkins/computer/222.22.22.2/slave-agent.jnlp] java -jar slave.jar [options...] -cert WERT : Specify additional X.509 encoded PEM certificates to trust when connecting to Jenkins root URLs. If starting with @ then the remainder is assumed to be the name of the certificate file to read. -credentials USER:PASSWORD : HTTP BASIC AUTH header to pass in for making HTTP requests. -headless : Run in headless mode, without GUI -jar-cache DIR : Cache directory that stores jar files sent from the master -noKeepAlive: Disable TCP socket keep alive on connection to the master. -noreconnect: If the connection ends, don't retry and just exit. -proxyCredentials USER:PASSWORD : HTTP BASIC AUTH header to pass in for making HTTP authenticated proxy requests. -tunnel HOST:PORT : Connect to the specified host and port, instead of connecting directly to Jenkins. Useful when connection to Hudson needs to be tunneled. Can be also HOST: or :PORT, in which case the missing portion will be auto-configured like the default behavior -url URL: Specify the Jenkins root URLs to connect to. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6fc681f0-a423-4344-a920-1167ee3a4c2b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.