-
Notifications
You must be signed in to change notification settings - Fork 323
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
container stderr: "-slaveLog" is not a valid option #818
container stderr: "-slaveLog" is not a valid option #818
Comments
That looks like it'd be fixed with a straightforward search & replace to change the default arguments (both in the code and the help-text). I think |
@Z9n2JktHlZDmlhSvqc9X2MmL3BwQG7tk FYI you can workaround this issue by overriding the default "EntryPoint Cmd" field in the "Connect method" section of the "Docker Agent template". The helptext tells you what the default is, and you'll see the |
FYI: I found this reports also on https://issues.jenkins.io/browse/JENKINS-64251 |
* Jenkins 2.266 upgraded to remoting 4.6 * remoting 4.6 has dropped support for the -slaveLog argument * we have to use -agentLog now * see #818 and/or JENKINS-64251
Well, while fixing this for Jenkins 2.266 is easy, that then breaks it for others, including the unit tests. |
It looks like Jenkins 2.60.3, which is what the docker-plugin required as a minimum, uses remoting-3.7 which doesn't support However, bumping to 2.73.3 looked promising as that seems to support both agentLog and slaveLog, so that's what I did in #823 Overall, I think that should be enough to resolve this issue. |
@pjdarton because this problem still seems to be relevant with the 2.274 version of Jenkins. |
You're missing something - the context that was in my head when I wrote that 😉 My previous comment was referring to the "minimum Jenkins version" that the plugin will work with - i.e. very old versions of Jenkins. i.e. the plugin code was testing against 2.60.3, and that meant that changing from "slaveLog" to "agentLog" then broke everything as "agentLog" wasn't supported in 2.60.3. Once I'd switched to testing with 2.73.3 the plugin's code (which I'd changed to use "agentLog") started working again. TL;DR: With this fix, you can't use Jenkins 2.60.3 anymore, you'll need to use 2.73.3 or later ... and anyone using a recent version of Jenkins will be pleased to find that the plugin's default is "agentLog" instead of "slaveLog" so it'll now "just work" again. ...however, as I've not done a docker-plugin release since I merged this, you'll need to use a pre-release build, e.g. from https://repo.jenkins-ci.org/incrementals/io/jenkins/docker/docker-plugin/ |
Agent from last Jenkins versions (remoting-4.6.jar) has no
-slaveLog
parameter, just-agentLog
. Parameter name needs to be replaced.Versions:
Error logs:
The text was updated successfully, but these errors were encountered: