I am able to install JNLP file as "Windows Service"
But after adding it as service I am getting below windows pop up after every 1 minute and all one can do is say - "Ask me later" or close window manually. But it appears again after a minute.
When node is added and as launch method Launch agent via Java Web Start is used, node details page provides following info:
Connect agent to Jenkins one of these ways
Launch agent from browser
Run from agent command line: java -jar agent.jar...
Again,
slave.jar is not meant to initiate a connection to the master on its own, so if you are trying to run it from cron or as a service, you are misunderstanding how this works.
Could someone please explain how these two things go together?
Yes, it sounds like there is a bit of contradiction between the two. The Launch agent via Java Web Start page is correct. If you pass the certain arguments the default mode that uses stdin/stdout is replaced by a JNLP mode which initiates the connection.
7 Comments
Unknown User (himanshu_paliwal)
Then how to connect slave to master?
Slave shows offline. And I have only a jar file : slave.jar
slave-agent.jnlp is missing.
Unknown User (duemir)
Distributed builds has a list of possible ways.
Unknown User (himanshu_paliwal)
Thanks Denys for reference.
I am able to install JNLP file as "Windows Service"
But after adding it as service I am getting below windows pop up after every 1 minute and all one can do is say - "Ask me later" or close window manually. But it appears again after a minute.
How to get rid of this?
Unknown User (duemir)
Wiki comments are not the right place to troubleshoot issue. Please ask on the user's mailing list. Thank you! https://jenkins.io/mailing-lists/
Unknown User (himanshu_paliwal)
Unknown User (maxdule)
When node is added and as launch method Launch agent via Java Web Start is used, node details page provides following info:
Connect agent to Jenkins one of these ways
Again,
slave.jar is not meant to initiate a connection to the master on its own, so if you are trying to run
it from cron or as a service, you are misunderstanding how this works.
Could someone please explain how these two things go together?
Unknown User (duemir)
Yes, it sounds like there is a bit of contradiction between the two. The Launch agent via Java Web Start page is correct. If you pass the certain arguments the default mode that uses stdin/stdout is replaced by a JNLP mode which initiates the connection.