Skip to content
This repository has been 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
merged 7 commits into from
Feb 12, 2020

Conversation

jglick
Copy link
Member

@jglick jglick commented Dec 10, 2019

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

@slide
Copy link
Member

slide commented Dec 21, 2019

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

@jglick
Copy link
Member Author

jglick commented Dec 22, 2019

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

Copy link
Member

@olblak olblak left a comment

Choose a reason for hiding this comment

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

Lgtm

Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

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

Please also update README

@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
Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

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
Copy link
Member Author

jglick commented Jan 4, 2020

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
jenkins-agent.ps1 Outdated Show resolved Hide resolved
Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

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
Copy link
Member Author

jglick commented Jan 27, 2020

[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
Contributor

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

@jglick
Copy link
Member Author

jglick commented Jan 27, 2020

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-agent#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
Contributor

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

@jglick
Copy link
Member Author

jglick commented Feb 12, 2020

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

@jeffret-b
Copy link
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
Copy link
Member Author

jglick commented Feb 12, 2020

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

@MarkEWaite
Copy link
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
Copy link
Member Author

jglick commented Feb 17, 2020

ping @MarkEWaite @oleg-nenashev

@MarkEWaite
Copy link
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
Copy link
Member Author

jglick commented Feb 18, 2020

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

@jglick
Copy link
Member Author

jglick commented Feb 18, 2020

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

@slide
Copy link
Member

slide commented Feb 18, 2020

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
Member

on it

@MarkEWaite
Copy link
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
Copy link
Member Author

jglick commented Feb 20, 2020

$ 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