Class TptPluginSlave

    • Constructor Detail

      • TptPluginSlave

        @DataBoundConstructor
        public TptPluginSlave​(java.lang.String exePaths)
        Those arguments are processed and then passed to the TptPluginSlaveExecutor. This class is used as a wrapper
        Parameters:
        exePaths - the paths to the Tpt Executables
    • Method Detail

      • getExePaths

        public java.lang.String getExePaths()
        Returns:
        The list of paths to possible TPT-installations.
      • getArguments

        public java.lang.String getArguments()
        Common command line opts. Delimiter between the options is one or more spaces. Inside doublequotes spaces have no special meaning.
        Returns:
        0 or more options for tpt.
      • setArguments

        @DataBoundSetter
        public void setArguments​(java.lang.String arguments)
      • getTptBindingName

        public java.lang.String getTptBindingName()
        Returns:
        the RMI binding name for TPT
      • setTptBindingName

        @DataBoundSetter
        public void setTptBindingName​(java.lang.String tptBindingName)
        Parameters:
        tptBindingName - The RMI binding name for TPT
      • getTptPort

        public java.lang.String getTptPort()
        Returns:
        The port of the RMI registry
      • setTptPort

        @DataBoundSetter
        public void setTptPort​(java.lang.String tptPort)
        Parameters:
        tptPort - The port of the RMI registry
      • getTptStartUpWaitTime

        public java.lang.String getTptStartUpWaitTime()
        Returns:
        The time waited before trying to get the API handle after starting TPT
      • setTptStartUpWaitTime

        @DataBoundSetter
        public void setTptStartUpWaitTime​(java.lang.String tptStartUpWaitTime)
        Parameters:
        tptStartUpWaitTime - The time to wait for TPT to start
      • perform

        public void perform​(Run<?,​?> run,
                            FilePath workspace,
                            EnvVars env,
                            Launcher launcher,
                            TaskListener listener)
                     throws java.lang.InterruptedException,
                            java.io.IOException
        It collects the necesary data (tpt exe path, tpt Port, tpt bindingname and tpt expandedTptStartupWaitTime) from the environment. Then collects the necesary data from the workload (put by the TptPluginMasterJobExecutor). After collecting all the necesary data it creates a new TptPluginSlaveExecutor and execute it. This method will be called from Jenkins when a build for a slave is scheduled. @see retryableJob. The logic is that the retryableJob schedules builds for the slaves and those builds will be executed here.
        Specified by:
        perform in interface SimpleBuildStep
        Throws:
        java.lang.InterruptedException
        java.io.IOException