I have a python script that generates two graphs which I have to push back to SCM. (PLEASE NOTE THAT MASTER BRANCH DOES EXIST) Now running this script is automated (run every 12 hours) so finally I have the stage to push code back. Here's the stage
        stage('Pushing results') {
        steps{
            script{
                withCredentials([gitUsernamePassword(credentialsId: 'johncena')]) {
                sh '''
                    git config --global user.name "randyorton"
                    git config --global user.email randyorton@example.com
                    git add .
                    git commit -m "Updated results"
                    git push -u origin master
                '''
                }
            }
        }
    }
However I get the error:
error: src refspec master does not match any
error: failed to push some refs to (repo url)
