Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to Add Jar to GitHub

Mohd Rashid April 29, 2020

Hi All,

I want to add .jar file into GitHub

My Task is: I have a .jar that i want to push that .jar into direct GitHub. The .jar is generating from (gradle build) from Jenkins. So that after every code push and build the new jar gets uploaded automatically.

And Jenkins should push the .jar file to GitHub but that i dont know how to do it.

The below link is for idea but i unable to understand this link how i can start and how it works
https://help.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-gradle-for-use-with-github-packages.

1 answer

0 votes
Rafael Zago
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 13, 2020

Hello Mohd, hope you are doing well.

Let me try to help you by understanding your flow. 

  1. First you checkout your source code from your repo.
  2. Your Jenkins run the build inside your job workspace
  3. You now wants to push the artefact to the same repo? Or it's another repo were you store your artefacts?

If this is what you are trying to do, and allow me to assume that this is not mandatory, this is not recommended, still, please read this SO question: 

Just one additional info, I would recommend you to consider use the bucket approach, one good example is to store your jar into AWS for example.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events