Hi all,

Just FYI, Jenkins Windows Service command line is documented here: 
https://github.com/kohsuke/winsw . 

WinSW is a standalone project, Jenkins just generates an XML configuration 
file for it. You can take the template from here 
<https://github.com/jenkinsci/windows-slave-installer-module/blob/master/src/main/resources/org/jenkinsci/modules/windows_slave_installer/jenkins-slave.xml>and
 
then configure the instance manually if the service installation fails.

P.S: The error in the first message is greek to me. Would be great to get 
info about the Java version you use in Windows

BR, Oleg


пятница, 29 сентября 2017 г., 15:47:07 UTC+3 пользователь Ewelina Wilkosz 
написал:
>
> Did you manage to make it work? 
> because I do it differently, usually:
>
> - download slave-agent.jnlp from agent page - I think it's under this 
> 'launch via web' button, or something, I don't remember what it says :) 
> - open a command window with "Run as Administrator".
> - change directory to the place where you saved the slave-agent.jnlp file.
> - run "slave-agent.jnlp"
> - now with the running slave click the menu item to "Install as Service".
> - run services.msc and you can find and configure your service
>
> So it is a little bit simpler command in cmd, maybe not making any 
> difference... but you have to try everything :)
>
> On Friday, September 22, 2017 at 11:15:31 PM UTC+2, Victoria Wei Lei wrote:
>>
>> yes, you need to attach that secret key in the command
>>
>> On Friday, September 22, 2017 at 3:22:01 PM UTC-5, slide wrote:
>>>
>>> The instructions on my Jenkins install also have a -secret parameter, 
>>> does yours? Are you passing in the secret?
>>>
>>> On Fri, Sep 22, 2017 at 1:14 PM Victoria Wei Lei <weil...@gmail.com> 
>>> wrote:
>>>
>>>> run command from your slave path:
>>>>
>>>> $ java -jar slave.jar -jnlpUrl 
>>>> http://yourserver:port/computer/slave-name/slave-agent.jnlp (the full 
>>>> command should be listed on your launch screen)
>>>>
>>>>
>>>> make sure slave.jar was copied there. A copy of slave.jar can be 
>>>> downloaded from http://yourserver:port/jnlpJars/slave.jar 
>>>>
>>>>
>>>>
>>>> On Friday, September 22, 2017 at 2:58:10 PM UTC-5, slide wrote:
>>>>
>>>>> How are you running from the command line? 
>>>>>
>>>>> On Fri, Sep 22, 2017 at 11:00 AM Victoria Wei Lei <weil...@gmail.com> 
>>>>> wrote:
>>>>>
>>>> Ewelina, 
>>>>>>
>>>>>> thanks so much for the reply.  I tried command line before as admin, 
>>>>>>  yes, the slave can launch successfully,  but am I supposed to get Slave 
>>>>>> agent  pop up and the option to Install as a service?  I did not have 
>>>>>> pop 
>>>>>> up window as I start by web start.  Therefore, I can't install slave as 
>>>>>> a 
>>>>>> window service.  If cmd window got killed for some reason,  my slave 
>>>>>> agent 
>>>>>> died as well.  
>>>>>>
>>>>>> Victoria 
>>>>>>
>>>>>>
>>>>>> On Friday, September 22, 2017 at 11:20:47 AM UTC-5, Ewelina Wilkosz 
>>>>>> wrote:
>>>>>>>
>>>>>>> Not sure if it will solve your issue, but what I usually do is I 
>>>>>>> download the file instead of running it from the browser - the one you 
>>>>>>> have 
>>>>>>> under web start button - then run 'cmd' as administrator, there I cd to 
>>>>>>> directory with downloaded file and run it from there. If you're 
>>>>>>> familiar 
>>>>>>> with command line it should be easy :) if not I can try to provide more 
>>>>>>> details. But in general running it as admin solved a similar (I think, 
>>>>>>> I 
>>>>>>> don't remember) problem I had
>>>>>>
>>>>>> -- 
>>>>>> 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-use...@googlegroups.com.
>>>>>
>>>>>
>>>>>> To view this discussion on the web visit 
>>>>>> https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/jenkinsci-users/6790b416-5113-4a86-9ff1-6b4bb1fbe534%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>> -- 
>>>> 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-use...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/jenkinsci-users/17c37bba-9ab8-4125-a4c3-3b6f7c7481e3%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>

-- 
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/1df612ba-5018-4940-9e90-bde7662a688c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to