padv.pipeline.JenkinsOptions
Options for generating pipeline configuration file for Jenkins
Description
Use the padv.pipeline.JenkinsOptions
object to represent the
desired options for generating a Jenkins® pipeline configuration file. To generate a Jenkins pipeline configuration file, use padv.pipeline.JenkinsOptions
as an input argument to the padv.pipeline.generatePipeline
function.
There are two versions of the pipeline generator for Jenkins:
Pipeline Generator Version 1 is provided for compatibility with the original pipeline generator functionality. For more information, see Integrate Process into Jenkins.
Pipeline Generator Version 2 contains several improvements to pipeline file propagation, generated pipeline file size, and integration with JFrog Artifactory for artifact management. For more information, see Enhanced Process Integration and Artifact Management for Jenkins.
Note
Pipeline generator version 2 is recommended for enhanced file propagation and artifact management capabilities, but requires you to update your Jenkins setup and workflow.
Creation
Syntax
Description
Pipeline Generator Version 1
returns configuration options for generating a Jenkins pipeline with pipeline generator version 1.options
= padv.pipeline.JenkinsOptions(GeneratorVersion=1)
Version 1 uses the original pipeline generator functionality. For more information, see Integrate Process into Jenkins.
sets properties using one or more name-value arguments.options
= padv.pipeline.JenkinsOptions(___,PropertyName=Value
)
Pipeline generator version 2 is recommended for enhanced file propagation and artifact management capabilities, but requires you to update your Jenkins setup and workflow.
Pipeline Generator Version 2
returns configuration options for generating a Jenkins pipeline with pipeline generator version 2.options
= padv.pipeline.JenkinsOptions(GeneratorVersion=2)
Version 2 includes enhanced features like external artifact management with JFrog Artifactory but requires a different setup than version 1. For more information, see Enhanced Process Integration and Artifact Management for Jenkins.
sets properties using one or more name-value arguments.options
= padv.pipeline.JenkinsOptions(___,PropertyName=Value
)
Note that pipeline generator version 2 ignores the properties
ShellEnvironment
, EnablePipelineCaching
, and
UseSameExecutorForSequentialStages
.