Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

[JEP-222] Enable WebSocket mode by passing JENKINS_WEB_SOCKET=true - #130

Merged
MarkEWaite merged 7 commits into
jenkinsci:masterfrom
jglick:websocket
Feb 12, 2020
Merged

[JEP-222] Enable WebSocket mode by passing JENKINS_WEB_SOCKET=true#130
MarkEWaite merged 7 commits into
jenkinsci:masterfrom
jglick:websocket

Conversation

@jglick

@jglick jglick commented Dec 10, 2019

Copy link
Copy Markdown
Member

See JEP-222. Alternative to #129. Works with jenkinsci/remoting#357. Requires #147.

@jglick
jglick marked this pull request as ready for review December 21, 2019 03:48
@jglick
jglick requested a review from a team as a code owner December 21, 2019 03:48
@slide

slide commented Dec 21, 2019

Copy link
Copy Markdown
Member

We will need to update the Windows side as well (https://github.com/jenkinsci/docker-jnlp-slave/blob/master/jenkins-agent.ps1)

@jglick

jglick commented Dec 22, 2019

Copy link
Copy Markdown
Member Author

Yes, I did not try that yet but I could.

@olblak olblak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@oleg-nenashev oleg-nenashev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also update README

@jglick
jglick requested a review from oleg-nenashev January 3, 2020 22:17
@oleg-nenashev oleg-nenashev changed the title [JEP-222] JENKINS_WEB_SOCKET=true [JEP-222] - Allow enabling the websokect mode by passing the JENKINS_WEB_SOCKET=true environment variable Jan 3, 2020

@oleg-nenashev oleg-nenashev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but the upstream pull request in Remoting needs to be released first

@jglick jglick changed the title [JEP-222] - Allow enabling the websokect mode by passing the JENKINS_WEB_SOCKET=true environment variable [JEP-222] - Allow WebSocket mode to be enabled by passing the JENKINS_WEB_SOCKET=true environment variable Jan 4, 2020
@jglick

jglick commented Jan 4, 2020

Copy link
Copy Markdown
Member Author

the upstream pull request in Remoting needs to be released first

Yes, this is on hold until the core changes are released.

@jglick jglick changed the title [JEP-222] - Allow WebSocket mode to be enabled by passing the JENKINS_WEB_SOCKET=true environment variable [JEP-222] Enable WebSocket mode by passing JENKINS_WEB_SOCKET=true Jan 27, 2020
Comment thread jenkins-agent.ps1 Outdated

@oleg-nenashev oleg-nenashev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/jenkinsci/remoting/releases/tag/remoting-4.0 must be integrated and released in the parent image: https://github.com/jenkinsci/docker-slave . Otherwise this feature will not work

@jglick

jglick commented Jan 27, 2020

Copy link
Copy Markdown
Member Author

[Remoting 4.0] must be integrated and released in the parent image

Sure. I presume someone like @jeffret-b would be doing this as a routine task.

@jeffret-b

Copy link
Copy Markdown
Contributor

I was hoping to get to that today, but may have more pressing tasks.

@jglick

jglick commented Jan 27, 2020

Copy link
Copy Markdown
Member Author

I think there is no rush. This change is needed for people who wish to use WebSocket transport for agents managed by the kubernetes plugin’s cloud, which is not the typical use case. Otherwise you could just rely on the *.jnlp parsing to set -webSocket (see jenkinsci/docker-agents#693). I suppose there are other people using this launcher script for Dockerized inbound agents who could benefit. And of course it only matters if you are running 2.217+.

@jeffret-b

Copy link
Copy Markdown
Contributor

I managed to squeeze it in before lunch. The PRs are up.

@jglick

jglick commented Feb 12, 2020

Copy link
Copy Markdown
Member Author

So can you merge & release this @jeffret-b, or whoever is maintaining this repo?

@jeffret-b

Copy link
Copy Markdown
Contributor

I don't have permission in this repository. Maybe @slide or @oleg-nenashev

@MarkEWaite
MarkEWaite merged commit 6b9b5c1 into jenkinsci:master Feb 12, 2020
@jglick
jglick deleted the websocket branch February 12, 2020 20:25
@jglick

jglick commented Feb 12, 2020

Copy link
Copy Markdown
Member Author

@MarkEWaite thanks! Now can you can a release please? 3.40-1...master

@MarkEWaite

Copy link
Copy Markdown
Contributor

I would like to leave this for @oleg-nenashev to release, since he's released the most recent several versions of it and I've never released a version. If @oleg-nenashev has not been able to release it by tomorrow, I'll attempt the release.

@jglick

jglick commented Feb 17, 2020

Copy link
Copy Markdown
Member Author

ping @MarkEWaite @oleg-nenashev

@MarkEWaite

Copy link
Copy Markdown
Contributor

Sorry that I missed this one @jglick. As I look at the repository, the release process is not immediately clear to me. I'll talk with @oleg-nenashev tomorrow and learn how to release from this repository.

@jglick

jglick commented Feb 18, 2020

Copy link
Copy Markdown
Member Author

I am not sure either. It may suffice to just create a tag and wait for Docker Hub automated builds to kick in.

@jglick

jglick commented Feb 18, 2020

Copy link
Copy Markdown
Member Author

IIUC from the Jenkinsfile, Linux publishing is passive, whereas a Jenkins project publishes the Windows version.

@slide

slide commented Feb 18, 2020

Copy link
Copy Markdown
Member

The linux publishing should be done on dockerhub builds, though I am not sure how the tagging for specific versions takes place. For the Windows versions, we are publishing them via trusted.ci, we do not currently do a version specific release, I would need to look into that.

@oleg-nenashev

Copy link
Copy Markdown
Member

on it

@MarkEWaite

Copy link
Copy Markdown
Contributor

The 4.0.1-1 release is now available and ready to use. A CONTRIBUTING document has also been added which includes a video link to a session that describes the release process.

@jglick

jglick commented Feb 20, 2020

Copy link
Copy Markdown
Member Author
$ docker run --rm jenkinsci/jnlp-slave:4.0.1-1 2>&1 | fgrep -i websocket
 -webSocket                            : Make a WebSocket connection to Jenkins

🎉

jglick added a commit to jglick/kubernetes-plugin that referenced this pull request Feb 20, 2020
lemeurherve pushed a commit to lemeurherve/jenkinsci-docker-inbound-agent that referenced this pull request Nov 19, 2023
Fix issue with paths when using MinGit busybox
lemeurherve pushed a commit to lemeurherve/docker-agent that referenced this pull request Nov 28, 2023
…lick/websocket

[JEP-222] Enable WebSocket mode by passing JENKINS_WEB_SOCKET=true
lemeurherve pushed a commit to lemeurherve/docker-agent that referenced this pull request Nov 28, 2023
…lick/websocket

[JEP-222] Enable WebSocket mode by passing JENKINS_WEB_SOCKET=true
lemeurherve pushed a commit to lemeurherve/docker-agent that referenced this pull request Nov 28, 2023
…lick/websocket

[JEP-222] Enable WebSocket mode by passing JENKINS_WEB_SOCKET=true
lemeurherve pushed a commit to lemeurherve/docker-agent that referenced this pull request Nov 28, 2023
…lick/websocket

[JEP-222] Enable WebSocket mode by passing JENKINS_WEB_SOCKET=true
lemeurherve pushed a commit to lemeurherve/docker-agent that referenced this pull request Nov 28, 2023
…lick/websocket

[JEP-222] Enable WebSocket mode by passing JENKINS_WEB_SOCKET=true
lemeurherve pushed a commit to lemeurherve/docker-agent that referenced this pull request Nov 28, 2023
…lick/websocket

[JEP-222] Enable WebSocket mode by passing JENKINS_WEB_SOCKET=true
lemeurherve pushed a commit to lemeurherve/docker-agent that referenced this pull request Nov 28, 2023
…lick/websocket

[JEP-222] Enable WebSocket mode by passing JENKINS_WEB_SOCKET=true
lemeurherve pushed a commit to lemeurherve/docker-agent that referenced this pull request Nov 28, 2023
…lick/websocket

[JEP-222] Enable WebSocket mode by passing JENKINS_WEB_SOCKET=true
lemeurherve pushed a commit to lemeurherve/docker-agent that referenced this pull request Nov 28, 2023
…lick/websocket

[JEP-222] Enable WebSocket mode by passing JENKINS_WEB_SOCKET=true
lemeurherve pushed a commit to lemeurherve/docker-agent that referenced this pull request Jan 12, 2024
…socket

[JEP-222] Enable WebSocket mode by passing JENKINS_WEB_SOCKET=true
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants