Package hudson.slaves

Class JNLPLauncher

    • Field Detail

      • tunnel

        @CheckForNull
        public final String tunnel
        If the agent needs to tunnel the connection to the controller, specify the "host:port" here. This can include the special syntax "host:" and ":port" to indicate the default host/port shall be used.

        Null if no tunneling is necessary.

        Since:
        1.250
      • vmargs

        @Deprecated
        public final transient String vmargs
        Deprecated.
        No longer used.
    • Method Detail

      • readResolve

        protected Object readResolve()
      • getWorkDirSettings

        @NonNull
        public RemotingWorkDirSettings getWorkDirSettings()
        Returns work directory settings.
        Since:
        2.72
      • setWorkDirSettings

        @DataBoundSetter
        public final void setWorkDirSettings​(@NonNull
                                             RemotingWorkDirSettings workDirSettings)
      • isWebSocket

        public boolean isWebSocket()
        Since:
        2.216
      • setWebSocket

        @DataBoundSetter
        public void setWebSocket​(boolean webSocket)
        Since:
        2.216
      • getWorkDirOptions

        @NonNull
        @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
        public String getWorkDirOptions​(@NonNull
                                        Computer computer)
        Gets work directory options as a String. In public API getWorkDirSettings().toCommandLineArgs(computer) should be used instead
        Parameters:
        computer - Computer
        Returns:
        Command line options for launching with the WorkDir
      • getInboundAgentUrl

        @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
        public static String getInboundAgentUrl()
        Overrides the url that inbound TCP agents should connect to as advertised in the agent.jnlp file. If not set, the default behavior is unchanged and returns the root URL. This enables using a private address for inbound tcp agents, separate from Jenkins root URL.
        See Also:
        JENKINS-63222