| Just for future and not search after obvious things. I have reproduced that case. Steps to reproduce:
- master1 UI > Manage Jenkins > Manage Nodes
- add new node
- connect your agent1 to master1 via jnlp
- install connection as a service
- master2 UI > Manage Jenkins > Manage Nodes
- add new node
- connect your agent1 to master2 via jnlp
- try to install connection as a service
Effect: Popup with statement as in description:
java.io.FileNotFoundException: c:\JenkinsTest\jenkins-slave.exe (The process cannot access the file because it is being used by another process)
To cross check that service is running execute from cmd:
c:\JenkinsTest\jenkins-slave.exe status
Resolution: Choose which master should utilize that agent and use another agent for another master |