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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to Add Jar to GitHub

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 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
Community showcase
Published in DevOps

GitHub Script with GitHub Actions Automating Workflows

Hello folks, This is a series of articles where I explain GitHub Script with GitHub Actions and how you can automate publishing data on Atlassian & GitHub Platform based on the results of Workf...

116 views 1 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you