Upon first start, the build master expects a clean directory to issue
git init --bare in, therfore we cannot use the clone used for bootstrapping.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
if not os.path.isdir(home_dir+'/source.git'):
subprocess.call(["git", "clone", "--depth=1", repo_url, home_dir+'/source.git'])
subprocess.call(["git", "checkout", repo_branch], cwd = home_dir+'/source.git')
if not os.path.isdir(home_dir+'/source.git'):
subprocess.call(["git", "clone", "--depth=1", repo_url, home_dir+'/source.git'])
subprocess.call(["git", "checkout", repo_branch], cwd = home_dir+'/source.git')
+else:
+ subprocess.call(["git", "checkout", repo_branch], cwd = home_dir+'/source.git')
+ subprocess.call(["git", "pull"], cwd = home_dir+'/source.git')
findtargets = subprocess.Popen([home_dir+'/dumpinfo.pl', 'targets'],
stdout = subprocess.PIPE, cwd = home_dir+'/source.git')
findtargets = subprocess.Popen([home_dir+'/dumpinfo.pl', 'targets'],
stdout = subprocess.PIPE, cwd = home_dir+'/source.git')
c['change_source'] = []
c['change_source'].append(GitPoller(
repo_url,
c['change_source'] = []
c['change_source'].append(GitPoller(
repo_url,
- workdir=home_dir+'/source.git', branch='master',
+ workdir=home_dir+'/work.git', branch='master',
pollinterval=300))
####### SCHEDULERS
pollinterval=300))
####### SCHEDULERS