-
Notifications
You must be signed in to change notification settings - Fork 146
Git pull requests and Maven deployment
Daniel Khashabi edited this page Apr 26, 2016
·
4 revisions
As the group becomes more familiar with Git and since we have a list of project owners, we ask that instead of pushing directly to the
master
branch of the project you are working on, you do the following:
- create a new branch
- push your changes there
- create a merge request
- assign it to the project’s (co-)owner
The project’s (co-)owner that was assigned the merge request has to:
- review the code
- download the changes and run the project’s unit tests
If everything looks ok, do the following:
- accept the merge request
- deploy the project on Maven:
mvn deploy site-deploy
ssh bilbo
cd /mounts/bilbo/disks/0/www/cogcomp/html/m2repo/edu/illinois/cs/cogcomp
chmod -R 775 PROJECT-ID/PROJECT-VERSION
chgrp -R cs_danr PROJECT-ID/PROJECT-VERSION
Make sure you have the following two:
- ssh public key on the
bilbo
: for the script to set the permissions. -
settings.xml
file for maven, in your.m2
folder, containing your username and password to our maven repository (bilbo). Here is a sample for this file:
<settings>
<servers>
<server>
<id>CogcompSoftware</id>
<username>my_netid</username>
<password>my_pass_word</password>
<privateKey>~/khashab2/.ssh/my_private_key</privateKey>
<passphrase></passphrase>
<filePermissions>664</filePermissions>
<directoryPermissions>775</directoryPermissions>
<configuration></configuration>
</server>
<server>
<id>CogcompSoftwareDoc</id>
<username>my_netid</username>
<password>my_pass_word</password>
<privateKey>~/khashab2/.ssh/my_private_key</privateKey>
<passphrase></passphrase>
<filePermissions>664</filePermissions>
<directoryPermissions>775</directoryPermissions>
<configuration></configuration>
</server>
</servers>
</settings>