-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Print deprecation warning when using -jnlpUrl
#8773
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
/label ready-for-merge This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback. Thanks! |
The proposed (and implemented) changelog entries and warning does not mention the need to obtain a "secret" for connecting the agent, especially when using websockets. That "secret" used to be included in the jnlp file. The secret can now only be obtained by running a script, and only administrators can run scripts through a rest api. There needs to be a mechanism where the secret can be obtained programmatically (via the rest api) by a user with Agent Create or Agent Connect permissions.
|
Alternatively, navigate to
I suggest you file a feature request in the issue tracker. |
@daniel-beck Thanks for the push. Feature request raised. |
Upgrade to the latest release of Remoting, which prints this warning on the client side, and also add a similar warning on the server side as well to maximize the chances that the warning is actually seen by an administrator.
Testing done
Connected with
-jnlpUrl
and verified that the warning was printed on both the server and client side. Connected with-url
and-name
and verified that the warning was no longer printed on either the server or client side.Proposed changelog entries
-jnlpUrl ${JENKINS_URL}/computer/${AGENT_NAME}/jenkins-agent.jnlp
argument to the agent JAR has been deprecated; use-url ${JENKINS_URL}
and-name ${AGENT_NAME}
instead, potentially also passing in-webSocket
,-tunnel
, and/or work directory options as needed.Proposed upgrade guidelines
-jnlpUrl ${JENKINS_URL}/computer/${AGENT_NAME}/jenkins-agent.jnlp
argument to the agent JAR has been deprecated; use-url ${JENKINS_URL}
and-name ${AGENT_NAME}
instead, potentially also passing in-webSocket
,-tunnel
, and/or work directory options as needed. Official Docker images already use the new calling convention.Submitter checklist
Desired reviewers
@mention
Before the changes are marked as
ready-for-merge
:Maintainer checklist