-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use yet-another-docker-plugin JNLP agents in Jenkins 2.248+ #288
Comments
According to comments it will loose workdir parameter that is really need, so it needs more investigation. |
If you are defining special workdir parameters then those should be added as well. |
Need find some time to double check everything. Afair i used all available features during implementation... |
Basically the If you are using the Hope that clears things up. |
I too am affected by this issue. I had to revert back to Jenkins 2.235.5. @KostyaSha, thanks for looking into this. Also, @jglick, thanks for providing the insights on why the issue exists and how best to resolve it. |
Same here, affected by this Issue, I've been looking for a way to override the Jenkins url at jnlp file, but seems that is not possible., |
I ended up switching from JNLP launch method to SSH, SSH works quite well if you can solve the issues with JNLP missing URL, as it relies on Master being able to see the slaves, and not the other way arround |
After upgrading to Jenkins version 2.248 yad slaves cannot connect to Jenkins master. I'm using the "Different Jenkins master URL" option, but the slaves only try to connect to the primary URL of the Jenkins master (the one specified in Jenkins global config). In previous Jenkins versions yad slaves also tried to connect using the primary URL, but when that failed they tried to connect using the "Different Jenkins master URL".
The fix for the following issue introduced this regression: https://issues.jenkins-ci.org/browse/JENKINS-63014.
I opened a ticket in Jenkins Jira for the issue: https://issues.jenkins-ci.org/browse/JENKINS-63222.
In the discussion they suggest that the way yad plugin uses the agent launcher is incorrect. It shouldn't use -jnlpUrl option to pass the different URL, instead it should use directly a lower level launch mode.
So instead of:
java -jar agent.jar -jnlpUrl https://jenkins/computer/myagent/slave-agent.jnlp -secret xxx123
use it this way:
java -classpath agent.jar hudson.remoting.jnlp.Main -headless -url https://jenkins/ xxx123 myagent
Jenkins version: 2.248+
YAD version: 0.2.0
The text was updated successfully, but these errors were encountered: