Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

os x server and remote git repos

Can someone explain the relationship between Xcode developer computer, the osx server and using a remote git repository?

I want to commit my changes to a remote repo(bitbucket) and have my os x server run the bots on it?

new: After some messing around, I have managed to make a bot for the remote server but now I get the following errors

    SSH Known Hosts file path is located at /Library/Server/Xcode/Config/ssh_known_hosts
SSH strict host checking is disabled (you can enable this by editing the SSHStrictHostKeyChecking key in /Library/Server/Xcode/Config/xcsbuildd.plist
Untrusted HTTPS certificates is enabled (you can disable this by editing the TrustSelfSignedSSLCertificates key in /Library/Server/Xcode/Config/xcsbuildd.plist
622a6bc3406c764e9e97ec156818b739ecb40ee9 refs/heads/master

only I did that already and it doesn't change anything.

and another error:

xcodebuild: error: The project 'testOnlineGit3' does not contain a scheme named 'testOnlineGit3.xcscheme'.

My scheme is shared, and thats its name, so I'm not sure how to fix it

new: Changed my scheme name, and now the bot works, but i still get the previous warnings, I'm not sure exactly what they mean, anyone has an idea how to make them go away?

like image 782
Yoav Schwartz Avatar asked Nov 05 '13 12:11

Yoav Schwartz


2 Answers

This website gives details on how to get Xcode continuous integration set up with remote Git repositories. Specifically, when setting up the bot in Xcode, DO NOT check "Integrate immediately." Then when it asks you how to log in to the Git repository in question, you MUST choose "login as guest." Then on the OS X Server, launch the "Server" app, click on the "Xcode" service to configure it, click the "Repositories" tab, and under the Remote Repositories section you should see a new entry created for the repository you just added. It will look like "[email protected]:RepoName" Select it and click the Edit (pencil) button, and under Authentication, choose "SSH Key." Fill in the username you use to connect to your remote Git repository (most likely "git"), and under the "SSH Key" section click the "Edit" button and fill in the public and private SSH keys you use to log in to the remote Git repository. Finally, after all this is done, go back to Xcode to the bot you created, and click the "Integrate Now" button and all should work as advertised.

like image 199
Donald Burr Avatar answered Oct 27 '22 21:10

Donald Burr


I'm not sure if understood your question correctly but: Xcode server can connect to remote repository like (bitbucket, github etc..). Basically you submit your code to remote repo and Xcode server will pull your submitted code.

like image 20
PotOfTea Avatar answered Oct 27 '22 20:10

PotOfTea