JENKINS-63607 Do not disconnect agent when remoting doesn't match #192
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm putting this PR as draft because I have dependency with #189 which change the descriptor to a field and it include some similar changes. Will need to be rebased when merged to main branch
Partially fix JENKINS-63607 to not put the agent offline if there is any mismatch between remoting version
This PR doesn't add any comparison mechanism but only a similar option to not disconnect the agent and keep it online
It also miss some automated test (At least unit for the new field, but I want to check if it's possible to test using
JenkinsRule
andDumbSlave
)Testing done
The new field
The default behavior to disconnect the agent
Node is not disconnected with option is selected
Submitter checklist