Extract git from one server and click on another server using Jenkins

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

+5
source share
2 answers

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.

* , , , .

+7

push Github , , , git. .

0

All Articles