gerrit: add cla

Change-Id: Ie276d6d934ece80f298d6d0a4e1e8526e551e35b
Reviewed-on: https://review.gerrithub.io/c/storj/storj/+/458679
Tested-by: <robot@storj.io>
Reviewed-by: Jeff Wendling <jeff@storj.io>
This commit is contained in:
JT Olio 2019-06-19 12:13:46 -06:00
parent 2b30887455
commit 3706bd78ef
2 changed files with 76 additions and 1 deletions

View File

@ -10,7 +10,10 @@ pipeline {
}
stages {
stage('Start') {
steps { gerritReview message: 'Building' }
steps {
gerritReview message: 'Building'
sh 'python ./scripts/gerrit-cla.py'
}
}
stage('Build') {

72
scripts/gerrit-cla.py Executable file
View File

@ -0,0 +1,72 @@
#!/usr/bin/env python2
import os, subprocess
email = subprocess.check_output(["git", "log", "--format=%ae", "-1"]).strip()
signed_emails = set("""
34487396+aligeti@users.noreply.github.com
38050125+benjaminsirb@users.noreply.github.com
3bl3gamer@gmail.com
40370773+brandonstorj@users.noreply.github.com
46756926+VitaliiShpital@users.noreply.github.com
artemenkobogdan@gmail.com
barlock@users.noreply.github.com
bill3000@hotmail.com
billt@storj.io
brimstone@the.narro.ws
bryanchriswhite@gmail.com
butko.yehor@gmail.com
camayer92@gmail.com
coyle@users.noreply.github.com
crawter@hotmail.com
dennis@coyle.io
dylan@storj.io
egonelbre@gmail.com
ethan@storj.io
Fadila82@users.noreply.github.com
faris@storj.io
fhuskovic92@gmail.com
hello@jtolio.com
ifcdev@gmail.com
iglesiasbrandon@users.noreply.github.com
ivan@fraixed.es
jeff@storj.io
jennifer@storj.io
jens.heimbuerge@googlemail.com
Jessica.greben1+github@gmail.com
jhagans3@gmail.com
kaloyan-raev@users.noreply.github.com
kaloyan@storj.io
kevin@storj.io
leitnersalex@gmail.com
leterip@gmail.com
mail@stefan-benten.de
marc.schubert@gmail.com
meijesibbel@hotmail.com
me@super3.org
michal@storj.io
mobyvb@gmail.com
mrobinson@storj.io
nat@storj.io
navillasa@gmail.com
nfarah86@gmail.com
nickolai.yurchenko@gmail.com
phutchins@users.noreply.github.com
ReneSmeekes@users.noreply.github.com
richard.littauer@gmail.com
sander@grids.be
simon@nureality.ca
thepaul@users.noreply.github.com
tim@storj.io
yaroslav@storj.io
yar.vorobiov@gmail.com
yingrong.zhao@gmail.com
""".strip().split("\n"))
if email not in signed_emails:
print "The email address '%s' is not in scripts/gerrit-cla.py as a CLA signer" % email
print "Please sign https://docs.google.com/forms/d/e/1FAIpQLSdVzD5W8rx-J_jLaPuG31nbOzS8yhNIIu4yHvzonji6NeZ4ig/viewform"
os.exit(1)
print "CLA signed"