Call Us Today! 877.742.2583




Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

About

Information for developers who wish to create custom applications based on FreeSWITCH or contribute improvements and bug fixes back to the FS community. 


Convert your FreeSWITCH Source Repos from gitolite to stash…


Change your origin remote to the new repo:


For Commiters:


SSH:

git remote set-url origin ssh://git@stash.freeswitch.org:7999/fs/freeswitch.git
*** PLEASE NOTE THE SPECIAL SSH PORT 7999. For those of you that have shortcuts in your ssh_config, you will want to update this.

Example ssh_config for those that need it. (Most people do not need this)

host stash
    user git
    hostname stash.freeswitch.org
    port 7999
    identityfile ~/.ssh/my_pubkey_file
    IdentitiesOnly yes          

HTTPS:
git remote set-url origin https://${YOUR_USERNAME}@stash.freeswitch.org/scm/fs/freeswitch.git

Your Username is the same as your Jira Login. Git will prompt your for you password when required.


For Everyone Else:

git remote set-url origin https://stash.freeswitch.org/scm/fs/freeswitch.git


Changes in commit hooks


The format of the existing commit hooks for updating Jira will change.


Stash, Fisheye, and Jira all work together now and allows us to use Atlassian’s Smart Commit Hook mechanism. In your commit message please do the Follow:


TKT-12345 #new_state #comment Comment for the Jira Ticket


This can appear anywhere in the commit message.


**NOTE: For Smart Commit Hooks to properly work, you MUST allow Jira to access your Fisheye account. To do this, you must auth to Jira from within Fisheye.

Simple steps to do this:

  1. Login to Fisheye (using your standard FreeSWITCH.org password. (Same as your jira login)

  2. Go to the FreeSWITCH Repo change git change log in Fisheye (https://fisheye.freeswitch.org/changelog/FreeSWITCH)

  3. Click on any link to a jira ticket (hint: those are the links to FS-#####)

  4. When prompted allow Jira access.

This is necessary to allow Fisheye to masquerade as you and update the tickets in question.


For more information on Smart Commit Hooks please see:

https://confluence.atlassian.com/display/FISHEYE/Using+smart+commits



Self Manage your SSH Keys


Stash allows you to manage your own SSH Keys for accessing the git repositories.

To add/delete your keys

  1. Login to Stash using your standard FreeSWITCH Username/password (this is the same one as you use on Jira)

  2. On the Main User Menu (Click your Avatar upper right corner of the page)

  3. select “Manage Account”

  4. Select SSH Keys (Left vertical menu).

From this point you can add or delete the SSH Public Keys you use to access the repo.

When adding multiple keys, you must add them one at a time. Do not paste multiple Keys.

New Features:

Many of you have used GitHub and understand the Fork, path and Pull Request mechanism. Stash allows this same thing to happen. You can now fork your own copy of FreeSWITCH, do your dev work, and fire a Pull Request off to the FreeSWITCH Dev Team! (Of course we will still accept patches the old fashioned way from Jira)

 

  • No labels