If you’re part of a team of developers, you can give other members user accounts on the server with OS X Server installed.
Those members can then create and manage bots, and share and manage source code repositories hosted by OS X Server.
Before you begin, you need to have your server accessible from the Internet with a host name (a fully qualified domain name) and a static IP address. You should coordinate with your network administrator or ISP if necessary. The server should use encrypted authentication and transport to keep your code safe. This task uses SSH to encrypt your connection and Open Directory to manage developer authentication.
In the Server app, create users for each developer and add them to a group.
Select and start Open Directory.
If you’re not already using Open Directory, use setup assistant to completion.
Select Users, select Local Network User, then select the access option for each user account. You must do this for each user.
Use the following settings when creating the users:
Allow the user to administer this server
Home folder: None - Services only
Select Groups, then create a group to which you want to add all the developers.
Double-click the group name, then add the developers to the group.
Enable SSH for the group.
Select “Server overview,” then click Settings.
Select “Allow remote login using SSH for only some users.”
Click Edit, then add the group to the SSH users list.
Confirm that your network firewall or network gateway forwards SSH connections to the server.
You should consult your router settings, or coordinate with your network administrator or ISP if necessary.
Enable and configure Xcode service.
Select Xcode service, then choose the version of Xcode to control. Start the service.
Install Xcode version 6 or later, if needed.
Select Repository, then create a new repository for the shared project.
Use the following settings when creating the repository:
SSH access: only some users (add the group to this access list)
Also allow view-only access for logged in users
Set other Xcode service options, as needed.
Select Settings.
If you need to access Member Center assets, such as provisioning profiles and signing certificates to build products for iOS devices, add this server to your Apple Developer Program Member Center team by adding an Apple ID to the Developer Teams list.
The Apple ID needs to be an admin or agent of the team you want the server to join.
If you’re developing for iOS devices, add iOS development devices to Xcode service.
The iOS device needs to plugged in to the server via USB. It needs to be set for development use in Xcode’s Organizer.
Provide login information to the developer team.
Give each developer his or her server login name and initial password, and the host name of the server.
To log in to the server, developers need to add a server account to the Xcode app Accounts preference pane.
Once the developer is logged in, he or she has access to the hosted repository and can check out the project normally.
If you don’t want to enable SSH on your server, you can let developers access the service using HTTPS. If you want to use HTTPS, make the following modifications to the above instructions:
Add users as either standard or administrator users.
Disable SSH access to all hosted repositories.
Add a valid SSL certificate with a recognized root to the Websites service certificates list in the Server app.
Configure the network firewall or network gateway to pass HTTPS traffic on port 443 to the server.