Interface ProgramCommandLine

    • Method Detail

      • getExecutablePath

        @NotNull
        java.lang.String getExecutablePath()
                                    throws RunBuildException
        Returns either
        • full path
        • relative path to working dir
        • simply command name to be resolved by OS on the build agent
        to run
        Returns:
        file path to execute
        Throws:
        RunBuildException - on error in parameters or agent's machine environment
      • getWorkingDirectory

        @NotNull
        java.lang.String getWorkingDirectory()
                                      throws RunBuildException
        Returns:
        executable working directory either relative on build checkout directory or absolute path
        Throws:
        RunBuildException - on error in parameters or agent's machine environment
      • getArguments

        @NotNull
        java.util.List<java.lang.String> getArguments()
                                               throws RunBuildException
        All quotations are done property inside Java Runtime
        Returns:
        arguments to be sent to process
        Throws:
        RunBuildException - on error in parameters or agent's machine environment
      • getCommandLineForLogging

        default java.lang.String getCommandLineForLogging​(PasswordReplacer passwordReplacer)
                                                   throws RunBuildException
        Returns:
        command line for logging, i.e. this line will be logged into build and agent logs. So the plugin should replace all passwords in this command line using provided password replacer.
        Throws:
        RunBuildException
        Since:
        2022.10
      • getEnvironment

        @NotNull
        java.util.Map<java.lang.String,​java.lang.String> getEnvironment()
                                                                       throws RunBuildException
        Returns:
        map of all environment variables to be set for process
        Throws:
        RunBuildException - on error in parameters or agent's machine environment