Class BuildToolStep

    • Constructor Detail

      • BuildToolStep

        @DataBoundConstructor
        public BuildToolStep()
    • Method Detail

      • getCommandArguments

        public String[] getCommandArguments​(hudson.EnvVars buildEnvironment)
        Gets the arguments to pass to the build tool.
        Parameters:
        buildEnvironment - the environement of the build step, for variable expansion.
        Returns:
        the arguments, never null
      • getEnvironmentVars

        public Map<String,​String> getEnvironmentVars​(hudson.EnvVars buildEnvironment,
                                                           hudson.model.TaskListener listener)
        Gets the extra environment variables to pass to the build tool.
        Parameters:
        buildEnvironment - the environement of the build step, for variable expansion.
        Returns:
        the variables and values, nevernull
      • getDescriptor

        public BuildToolStep.DescriptorImpl getDescriptor()
        Overridden for better type safety.
        Specified by:
        getDescriptor in interface hudson.model.Describable<BuildToolStep>
        Overrides:
        getDescriptor in class hudson.model.AbstractDescribableImpl<BuildToolStep>
      • getWithCmake

        public boolean getWithCmake()
        Gets whether to run the actual build tool directly (by expanding $CMAKE_BUILD_TOOL) or to have cmake run the build tool (by invoking cmake --build).
      • setWithCmake

        @DataBoundSetter
        public void setWithCmake​(boolean withCmake)
        Sets whether to run the actual build tool directly (by expanding $CMAKE_BUILD_TOOL) or to have cmake run the build tool (by invoking cmake --build).
      • getArgs

        public String getArgs()
        Gets the content of the form field 'args'.
      • setArgs

        @DataBoundSetter
        public void setArgs​(String args)
        Sets the content of the form field 'args'.
      • getEnvVars

        public String getEnvVars()
        Gets the content of the form field 'envVars'.
      • setEnvVars

        @DataBoundSetter
        public void setEnvVars​(String vars)
        Sets the content of the form field 'envVars'.