Class TptPluginSlave

    • Constructor Detail

      • TptPluginSlave

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

      • getExePaths

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

        public 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​(String arguments)
      • getTptBindingName

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

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

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

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

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

        @DataBoundSetter
        public void setTptStartUpWaitTime​(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 InterruptedException,
                            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 TptPluginWorkerJobExecutor and execute it. This method will be called from Jenkins when a build for a worker job is scheduled. @see retryableJob. The logic is that the retryableJob schedules builds for the worker job and those builds will be executed here.
        Specified by:
        perform in interface SimpleBuildStep
        Throws:
        InterruptedException
        IOException