I have a local git server (centOS) where everyone puts their work into this repository. Jenkins manages to build something in this repository overnight. Recently, I have a git Enterprise account. I was wondering if there is a way to force Jenkins: 1) only pulls the code from the local server, and 2) whenever the build was successful, it sends the code to git to the corporate remote repository.
I am using Jenkins v. 1.458
well, one option would be to simply create a script that does this from bash ... but ...
git " " SCM, , REPOLOCALNAME/, 'Git ' , . (.. BranchToPush = branchname TargetRemoteName = REMOTEREPONAME)
* , , SCM.
* , , , .
push Github , , , git. .