"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.JenkinsAction=exports.JenkinsActionType=void 0;const jsiiDeprecationWarnings=require("../../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),jenkins_provider_1=require("./jenkins-provider"),codepipeline=require("../../../aws-codepipeline"),action_1=require("../action");var JenkinsActionType;(function(JenkinsActionType2){JenkinsActionType2[JenkinsActionType2.BUILD=0]="BUILD",JenkinsActionType2[JenkinsActionType2.TEST=1]="TEST"})(JenkinsActionType||(exports.JenkinsActionType=JenkinsActionType={}));class JenkinsAction extends action_1.Action{constructor(props){super({...props,category:props.type===JenkinsActionType.BUILD?codepipeline.ActionCategory.BUILD:codepipeline.ActionCategory.TEST,provider:props.jenkinsProvider.providerName,owner:"Custom",artifactBounds:jenkins_provider_1.jenkinsArtifactsBounds,version:props.jenkinsProvider.version});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_codepipeline_actions_JenkinsActionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,JenkinsAction),error}this.props=props}bound(_scope,_stage,_options){try{jsiiDeprecationWarnings.aws_cdk_lib_aws_codepipeline_IStage(_stage),jsiiDeprecationWarnings.aws_cdk_lib_aws_codepipeline_ActionBindOptions(_options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bound),error}return this.actionProperties.category===codepipeline.ActionCategory.BUILD?this.props.jenkinsProvider._registerBuildProvider():this.props.jenkinsProvider._registerTestProvider(),{configuration:{ProjectName:this.props.projectName}}}}exports.JenkinsAction=JenkinsAction,_a=JSII_RTTI_SYMBOL_1,JenkinsAction[_a]={fqn:"aws-cdk-lib.aws_codepipeline_actions.JenkinsAction",version:"2.96.1"};
