Skip to content
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

add JENKINS_TUNNEL #33

Merged
merged 4 commits into from
Apr 8, 2019
Merged

add JENKINS_TUNNEL #33

merged 4 commits into from
Apr 8, 2019

Conversation

phedoreanu
Copy link

@phedoreanu phedoreanu commented May 3, 2018

The slave.jar needs to be invoked with -tunnel if Jenkins is behind a proxy:

$ java -cp ~/Downloads/slave.jar hudson.remoting.jnlp.Main                              
two arguments required, but got []
java -jar agent.jar [options...] <secret key> <agent name>
 -agentLog FILE                  : Local agent error log destination (overrides
                                   workDir)
 -cert VAL                       : Specify additional X.509 encoded PEM
                                   certificates to trust when connecting to
                                   Jenkins root URLs. If starting with @ then
                                   the remainder is assumed to be the name of
                                   the certificate file to read.
 -credentials USER:PASSWORD      : HTTP BASIC AUTH header to pass in for making
                                   HTTP requests.
 -disableHttpsCertValidation     : Ignore SSL validation errors - use as a last
                                   resort only.
 -failIfWorkDirIsMissing         : Fails the initialization if the requested
                                   workDir or internalDir are missing ('false'
                                   by default)
 -headless                       : Run in headless mode, without GUI
 -internalDir VAL                : Specifies a name of the internal files
                                   within a working directory ('remoting' by
                                   default)
 -jar-cache DIR                  : Cache directory that stores jar files sent
                                   from the master
 -loggingConfig FILE             : Path to the property file with
                                   java.util.logging settings
 -noKeepAlive                    : Disable TCP socket keep alive on connection
                                   to the master.
 -noreconnect                    : If the connection ends, don't retry and just
                                   exit.
 -proxyCredentials USER:PASSWORD : HTTP BASIC AUTH header to pass in for making
                                   HTTP authenticated proxy requests.
 -tunnel HOST:PORT               : Connect to the specified host and port,
                                   instead of connecting directly to Jenkins.
                                   Useful when connection to Hudson needs to be
                                   tunneled. Can be also HOST: or :PORT, in
                                   which case the missing portion will be
                                   auto-configured like the default behavior
 -url URL                        : Specify the Jenkins root URLs to connect to.
 -workDir FILE                   : Declares the working directory of the
                                   remoting instance (stores cache and logs by
                                   default)

Fixes #30. nomad-0.6 hpi.

@asquel
Copy link

asquel commented Sep 21, 2018

@jippi or whoever is able to merge the PR, could you do it please ?

@jippi
Copy link

jippi commented Sep 21, 2018

there is a lot of noise in the PR - next to impossible to review it properly :(

@asquel
Copy link

asquel commented Oct 2, 2018

@jippi it's just code formatting ... A lot of people are putting Jenkins behind a LB, it's really a useful feature !!

@phedoreanu
Copy link
Author

@jippi noise-level reduced. please review ;)

@phedoreanu
Copy link
Author

Any luck getting this merged @jippi ? 🙄

@jippi
Copy link

jippi commented Apr 4, 2019

@phedoreanu I'm not using this plugin any more - I've added you as a collaborator if you want to continue to maintain it :)

@phedoreanu
Copy link
Author

Thx! I was wondering about https://jenkins.io/security/advisory/2019-04-03/#SECURITY-1058

@phedoreanu phedoreanu merged commit 12a2465 into jenkinsci:master Apr 8, 2019
aphill70 added a commit to aphill70/nomad-plugin that referenced this pull request May 28, 2019
…eam-master

* 'master' of github.com:jenkinsci/nomad-plugin:
  restrict visibility of attribute name to protected (jenkinsci#45)
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release v0.6.1
  revert POST on doCheckName() (jenkinsci#44)
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release v0.6.0
  add JENKINS_TUNNEL (jenkinsci#33)
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release v0.5.1
  add Jenkinsfile
  bump version
  commiting fix to SECURITY-1058 (jenkinsci#42)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants