I have below groovy in Jenkin to run a build and create "bin\Package". Jenkin and GIT servers are different.
node {
stage('Checkout') { git 'https://github.com/XXXX'}
stage('Build') { bat ( "\"${tool 'MsBuild_Local'}\" /p:DeployOnBuild=true;Configuration=Release;OutputPath=bin\\Package") }
stage('Deploy')
{
println "Entered"
}
}
Now I need to push this new "Package" folder to the same checkout GIT repository, from Jenkins server. But not sure which command I need to check here.