Skip to content

Instantly share code, notes, and snippets.

@Aricg
Last active January 29, 2021 22:20
Show Gist options
  • Save Aricg/0e9b2323a892bb1873d6cbdb8a2f48d1 to your computer and use it in GitHub Desktop.
Save Aricg/0e9b2323a892bb1873d6cbdb8a2f48d1 to your computer and use it in GitHub Desktop.
#!/bin/bash
#get lftools patchset that can create jira projects.
#lftools.
git clone ssh://[email protected]:29418/releng/lftools
cd lftools
git review -d 15430
source ~/.venvpy3-feb/bin/activate
pip uninstall lftools
pip install -e .
#####
# template INFO
mkdir airship
cp INFO.yaml.template airship/INFO.yaml
cd airship/
vim INFO.yaml
#get emails out of info.yaml so you can send invites to all the committers.
cat INFO.yaml | yq '.committers[].email'
#make the ldap group.
lftools lfidapi create-group opnfv-gerrit-airship-committers
#lftools lfidapi create-group akraino-gerrit-icn-committers
#lftools lfidapi user lfid akraino-gerrit-icn-committers
#add youself to the ldap group.
lftools lfidapi user agardner opnfv-gerrit-airship-committers
#invite all the users to ldap group.
for x in $(cat EMAIL); do lftools lfidapi invite $x akraino-gerrit-icn-committers; done
for x in $(cat EMAIL); do echo $x; done
create gerrit project
lftools gerrit create gerrit.opnfv.org opnfv-gerrit-airship-committers airship agardner
#add info file for review
git clone --recursive ssh://[email protected]:29418/airship
cp INFO.yaml airship/
cd airship/
ls
git add INFO.yaml
git commit -sv
git review
#create github repo.
lftools github create-repo opnfv airship "Airship-based Infrastructure Deployment and Lifecycle Management"
#add replication user to github project (this is not autmated)
#allow replication
lftools gerrit create --enable gerrit.opnfv.org opnfv-gerrit-airship-committers airship agardner
#start replication
ssh -p 29418 gerrit.opnfv.org replication start --wait airship
#create jira project
lftools jira create-project 10000 "Airship-based Infrastructure Deployment and Lifecycle" bh526r jira.opnfv.org com.pyxis.greenhopper.jira:gh-scrum-template "Airship" AIRSHIP "https://wiki.opnfv.org/display/PROJ/Project+Proposals+Airship"
#
lftools jira create-project 10000 "Integrated Cloud Native NFV/App stack family" "r.kuralamudhan" jira.akraino.org com.pyxis.greenhopper.jira:gh-scrum-template "ICN" ICN "https://wiki.akraino.org/pages/viewpage.action?pageId=11995140"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment