Just deleted about 400 bot accounts and a bunch of spam. To mitigate this in the future, we've enabled reCaptcha on signup. Let me know if someone got caught in the crossfire.

Commit 48352de7 authored by Rob Nelson's avatar Rob Nelson
Browse files

Logic bypass

parent 6d4c336d
Pipeline #16 skipped
......@@ -25,6 +25,7 @@ class GitRepo(object):
return self.destination
def preload(self):
print('PRELOAD')
if not os.path.isdir(self.destination):
self.repo.GetRepoState()
log.info('Git repository on branch {0}, commit {1}.'.format(self.repo.current_branch, self.repo.current_commit))
......@@ -32,6 +33,7 @@ class GitRepo(object):
log.warn('Repo has not been cloned yet.')
def isUp2Date(self):
print('ISUP2DATE')
try:
return not self.repo.CheckForUpdates(branch=self.branch)
except Exception as e:
......@@ -71,15 +73,14 @@ class GitRepo(object):
target_dir = os.path.join('/tmp','jenkins','sourcemod')
scm = GitRepo('https://github.com/alliedmodders/sourcemod.git', target_dir)
scm.preload()
if not scm.isUp2Date():
scm.update()
with os_utils.Chdir(target_dir):
os_utils.ensureDirExists('build', quiet=False)
cmd(['bash', 'tools/checkout-deps.sh'], echo=True, show_output=True)
with os_utils.Chdir('build'):
# CFLAGS="${CFLAGS} -Wno-sign-compare" CXXFLAGS="${CXXFLAGS} -Wno-sign-compare" python ../configure.py
env = os_utils.BuildEnv()
env.appendTo('CFLAGS', '-Wno-sign-compare', delim=' ')
env.appendTo('CXXFLAGS', '-Wno-sign-compare', delim=' ')
cmd(['python', '/tmp/jenkins/sourcemod/configure.py'], echo=True, show_output=True, env=env)
cmd(['ambuild'], echo=True, show_output=True, env=env)
scm.update()
with os_utils.Chdir(target_dir):
os_utils.ensureDirExists('build', quiet=False)
cmd(['bash', 'tools/checkout-deps.sh'], echo=True, show_output=True)
with os_utils.Chdir('build'):
# CFLAGS="${CFLAGS} -Wno-sign-compare" CXXFLAGS="${CXXFLAGS} -Wno-sign-compare" python ../configure.py
env = os_utils.BuildEnv()
env.appendTo('CFLAGS', '-Wno-sign-compare', delim=' ')
env.appendTo('CXXFLAGS', '-Wno-sign-compare', delim=' ')
cmd(['python', '/tmp/jenkins/sourcemod/configure.py'], echo=True, show_output=True, env=env)
cmd(['ambuild'], echo=True, show_output=True, env=env)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment