How to upload a file from Jenkins to Github Automatically using Java

8 views
Skip to first unread message

Raju Arelli

unread,
Jan 15, 2018, 5:32:14 PM1/15/18
to Jenkins Users
Team,

I  have a requirement-- As soon the Jenkins build got completed, report file should be uploaded into the Git repository. Can someone help me with the steps to do that.

Thanks!

Regards,
Raju Arelli

Mark Waite

unread,
Jan 15, 2018, 5:56:09 PM1/15/18
to jenkins...@googlegroups.com
I think it is more common to upload status reports for GitHub pull requests as comments on the pull request, rather than uploading the report file as a commit.  If you're willing to try that technique, then you might consider the Violation Comments to GitHub plugin.

If your job is modifying files that need to be committed and pushed, then the git publisher (inside the git plugin) may be able to help.


Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/82b2c139-b074-4539-9d95-969a054d2388%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages