github-integration-plugin icon indicating copy to clipboard operation
github-integration-plugin copied to clipboard

Add support for publishing artifacts to github releases

Open ChappIO opened this issue 9 years ago • 5 comments

As mentioned in JENKINS-18598 integration with github releases is planned for this plugin. However, I could not find any issues related to it.

What I am looking for is the functionality to upload (specific) artifacts to a github release. How would one go about doing this?

ChappIO avatar Jun 20 '16 10:06 ChappIO

Hi, i bit stuck with more critical feature #70 , but you can easily contribute. For uploading binaries it should be just a BuildStep with some feature.

What is unclear is how upload them and what fill into body. In any case we can try make experimental draft and enhance after. Do you want contribute?

KostyaSha avatar Jun 20 '16 10:06 KostyaSha

I would like to but I have no experience creating Jenkins plugins so it's going to take a while. Is that okay?

(A while meaning multiple months)

ChappIO avatar Jun 20 '16 10:06 ChappIO

I not sure when i will be able to create it, so you are free to try :) Or try describe you use case and list requirements for this feature (uploading binaries - by regexp?, antmask?) .

KostyaSha avatar Jun 20 '16 10:06 KostyaSha

Hm, I was thinking about requirements and I might actually be changing my opinion. Since this is related to the build artifacts it might be more logical to do thing from the build (using a maven/gradle plugin)

For people who are looking for the maven way: https://github.com/jutzig/github-release-plugin

If there is still a need for a feature like this I might look into it once I am not so busy anymore

ChappIO avatar Jun 20 '16 10:06 ChappIO

That may work if you have maven and want inject github credentials into build. That a usual case, you can upload from tools natively or with some generic uploaders.

KostyaSha avatar Jun 20 '16 10:06 KostyaSha