# How can I upload artifact to github repository?

**URL:** <https://community.jenkins.io/t/how-can-i-upload-artifact-to-github-repository/2577>\
**Category:** Ask a question\
**Created:** [May 29, 2022, 3:21pm UTC](https://community.jenkins.io/t/how-can-i-upload-artifact-to-github-repository/2577 "2022-05-29T15:21:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RachelCohen](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@RachelCohen](https://community.jenkins.io/u/RachelCohen)\
**Post date:** [May 29, 2022, 3:21pm UTC](https://community.jenkins.io/t/how-can-i-upload-artifact-to-github-repository/2577/1 "2022-05-29T15:21:22Z")

</div>

Hello,  
I have this code:

```auto
pipeline {
    agent any
    triggers {
        pollSCM('* * * * *')
    }
    stages {
        stage('build') {
            steps {
                echo 'Hello World'
            }
            post {
        always {
            archiveArtifacts artifacts: 'build/libs/**/*.jar', fingerprint: true
            junit 'build/reports/**/*.xml'
            
        }
    }
        } }
    
}

```

and I have to pack the artifact and upload to repo  
(and I dont have a nexus account)  
Thanks
