The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.

For a list of other such plugins, see the Pipeline Steps Reference page.

Pipeline: Declarative

script: Run arbitrary Pipeline script

    validateDeclarativePipeline: Validate a file containing a Declarative Pipeline

    Checks if the given file (as relative path to current directory) contains a valid Declarative Pipeline. Returns true | false.
    • path : String
      Relative (/-separated) path to file within a workspace to validate as a Declarative Pipeline.

    envVarsForTool: Fetches the environment variables for a given tool in a list of 'FOO=bar' strings suitable for the withEnv step.

    • toolId : String
    • toolVersion : String

    Was this page helpful?

    Please submit your feedback about this page through this quick form.

    Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?


    See existing feedback here.