awslabs / aws-codepipeline-plugin-for-jenkins

Use this plugin to integrate your Jenkins project with a pipeline in AWS CodePipeline. For more information and step-by-step directions on how to install and configure this plugin, follow the Four Stage Pipeline Tutorial. http://docs.aws.amazon.com/codepipeline/latest/userguide/getting-started-4.html
Apache License 2.0
82 stars 68 forks source link

AWSCodePipelinePublisher doesn't provide an API #39

Open DenisBY opened 4 years ago

DenisBY commented 4 years ago

I need to use 'job-dsl' to configure jobs and see that only AWSCodePipelineSCM provides an API.

Please provide API for AWSCodePipelinePublisher as well.

mattsains commented 4 years ago

Hello,

Thanks for opening this issue.

Could you help me understand what you mean by providing an API? I am guessing that there is some kind of configuration file/object you'd like us to create for AWSCodePipelinePublisher that already exists for AWSCodePipelineSCM.

I took a look at the two java classes with those names, and didn't see anything particularly different about the way they're written.

I hope these questions make sense, I am not super familiar with the Jenkins ecosystem.

If you know what needs to be done, please feel free to cut us a pull request and I'll try to find time to get it merged.

DenisBY commented 4 years ago

Hello,

Thank you for your reply. Sorry I can't help with pull request as I'm not a Java programmer.

Let me try to explain what I meant. I have job-dsl-plugin installed to be able to follow 'config-as-a-code' flow. If I follow the guide here and go to https://your.jenkins.installation/plugin/job-dsl/api-viewer/index.html I can find only 'awsCodePipelineSCM' API but couldn't find anything related to 'AWS CodePipeline Publisher'. It blocks me from using plugin as it removes Publisher on every Jenkins restart.

Please let me know if you need more information.