Class ZOSJobSubmitter

    • Constructor Detail

      • ZOSJobSubmitter

        @DataBoundConstructor
        public ZOSJobSubmitter​(String server,
                               int port,
                               String credentialsId,
                               boolean wait,
                               int waitTime,
                               boolean deleteJobFromSpool,
                               boolean jobLogToConsole,
                               String jobFile,
                               String MaxCC,
                               boolean JESINTERFACELEVEL1,
                               boolean FTPActiveMode)
        Constructor. Invoked when 'Apply' or 'Save' button is pressed on the project configuration page.
        Parameters:
        MaxCC - Maximum allowed CC for job to be considered OK.
        server - LPAR name or IP address.
        port - FTP port to connect to.
        credentialsId - Credentials id..
        wait - Whether we need to wait for the job completion.
        waitTime - Maximum wait time. If set to 0 will wait forever.
        deleteJobFromSpool - Whether the job log will be deleted from the spool after end.
        jobLogToConsole - Whether the job log will be printed to console.
        jobFile - File with JCL of the job to be submitted.
        JESINTERFACELEVEL1 - Is FTP server configured for JESINTERFACELEVEL=1?
        FTPActiveMode - FTP data transfer mode (true=active, false=passive)
    • Method Detail

      • perform

        public void perform​(@Nonnull
                            Run<?,​?> run,
                            @Nonnull
                            FilePath workspace,
                            @Nonnull
                            Launcher launcher,
                            @Nonnull
                            TaskListener listener)
                     throws IOException
        Submit the job for execution.
        Specified by:
        perform in interface SimpleBuildStep
        Parameters:
        run - Current run
        workspace - Current workspace
        launcher - Current launcher
        listener - Current listener


        Always true if wait is false.

        Throws:
        IOException
        See Also:
        ZFTPConnector
      • getServer

        public String getServer()
        Get LPAR name of IP address.
        Returns:
        server
      • getPort

        public int getPort()
        Get FTP port to connect to.
        Returns:
        port
      • getCredentialsId

        public String getCredentialsId()
        Returns:
        credentials id provided.
      • getJobFile

        public String getJobFile()
        Returns:
        job file provided.
      • getWait

        public boolean getWait()
        Get wait.
        Returns:
        wait
      • getJESINTERFACELEVEL1

        public boolean getJESINTERFACELEVEL1()
        Get JESINTERFACELEVEL1.
        Returns:
        JESINTERFACELEVEL1
      • getDeleteJobFromSpool

        public boolean getDeleteJobFromSpool()
        Get deleteJobFromSpool.
        Returns:
        deleteJobFromSpool
      • getJobLogToConsole

        public boolean getJobLogToConsole()
        Get jobLogToConsole.
        Returns:
        jobLogToConsole
      • getWaitTime

        public int getWaitTime()
        Get wait time.
        Returns:
        waitTime
      • getMaxCC

        public String getMaxCC()
        Returns:
        MaxCC of the job to be considered OK
      • getFTPActiveMode

        public boolean getFTPActiveMode()
        Get FTPActiveMode
        Returns:
        FTPActiveMode