class JenkinsProvider (construct)
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CodePipeline.Actions.JenkinsProvider |
![]() | software.amazon.awscdk.services.codepipeline.actions.JenkinsProvider |
![]() | aws_cdk.aws_codepipeline_actions.JenkinsProvider |
![]() | @aws-cdk/aws-codepipeline-actions » JenkinsProvider |
Implements
IConstruct
, IConstruct
, IDependable
, IJenkins
A class representing Jenkins providers.
See also: #import
Example
const jenkinsProvider = new codepipeline_actions.JenkinsProvider(this, 'JenkinsProvider', {
providerName: 'MyJenkinsProvider',
serverUrl: 'http://my-jenkins.com:8080',
version: '2', // optional, default: '1'
});
Initializer
new JenkinsProvider(scope: Construct, id: string, props: JenkinsProviderProps)
Parameters
- scope
Construct
- id
string
- props
Jenkins
Provider Props
Construct Props
Name | Type | Description |
---|---|---|
provider | string | The name of the Jenkins provider that you set in the AWS CodePipeline plugin configuration of your Jenkins project. |
server | string | The base URL of your Jenkins server. |
for | boolean | Whether to immediately register a Jenkins Provider for the build category. |
for | boolean | Whether to immediately register a Jenkins Provider for the test category. |
version? | string | The version of your provider. |
providerName
Type:
string
The name of the Jenkins provider that you set in the AWS CodePipeline plugin configuration of your Jenkins project. Example
'MyJenkinsProvider'
serverUrl
Type:
string
The base URL of your Jenkins server. Example
'http://myjenkins.com:8080'
forBuild?
Type:
boolean
(optional, default: false)
Whether to immediately register a Jenkins Provider for the build category.
The Provider will always be registered if you create a {@link JenkinsAction}.
forTest?
Type:
boolean
(optional, default: false)
Whether to immediately register a Jenkins Provider for the test category.
The Provider will always be registered if you create a {@link JenkinsTestAction}.
version?
Type:
string
(optional, default: '1')
The version of your provider.
Properties
Name | Type | Description |
---|---|---|
node | Construct | The construct tree node associated with this construct. |
provider | string | |
server | string | |
version | string |
node
Type:
Construct
The construct tree node associated with this construct.
providerName
Type:
string
serverUrl
Type:
string
version
Type:
string
Methods
Name | Description |
---|---|
to | Returns a string representation of this construct. |
static from | Import a Jenkins provider registered either outside the CDK, or in a different CDK Stack. |
toString()
public toString(): string
Returns
string
Returns a string representation of this construct.
static fromJenkinsProviderAttributes(scope, id, attrs)
public static fromJenkinsProviderAttributes(scope: Construct, id: string, attrs: JenkinsProviderAttributes): IJenkinsProvider
Parameters
- scope
Construct
— the parent Construct for the new provider. - id
string
— the identifier of the new provider Construct. - attrs
Jenkins
— the properties used to identify the existing provider.Provider Attributes
Returns
Import a Jenkins provider registered either outside the CDK, or in a different CDK Stack.