Os x server and remote git repository

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

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

new: After some mess, I 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 it already and did not change anything.

and one more error:

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

My schema is generic and this is her name, so I'm not sure how to fix it.

new: My schema name has changed, and now the bot is working, but I still get the previous warnings, I'm not sure what they mean, who has an idea, how to make them leave?

+6
source share
3 answers

I am not sure if I understood your question correctly, but: The Xcode server can connect to a remote repository (bitbucket, github, etc.). Basically you send your code to a remote repo, and the Xcode server will pull out your sent code.

+1
source

This website contains detailed information on how to configure continuous integration of Xcode with remote Git repositories. In particular, when setting up a bot in Xcode, DO NOT check Integration Immediately. Then, when he asks you how to log in to the Git repository, you MUST choose to "log in as a guest." Then, on OS X Server, launch the Server application, click on Xcode to configure it, go to the Storage tab and in the Remote Storage section you will see a new entry created for the repository that you just added. It will look like this: "git @ somehost.com: RepoName" Select it and click the "Edit" button (pencil), and in the "Authentication" section, select "SSH Key". Fill in the username that you use to connect to the remote Git repository (most likely "git"), and in the "SSH Key" section, click the "Edit" button and fill in the public and private SSH keys that you use to log into the remote Git repository. Finally, after all this, go back to Xcode to the created bot and click the “Integrate Now” button, and everything should work as announced.

+3
source

Starting with version 6.3, when creating a new Bot Xcode, credentials for your repository and any submodule will be checked and inform those that are not authenticated.

Then you can enter your username / password or better yet specify an existing SSH key or create a new one. You just save the user as git .

I could use my existing key pair for GitHub, but had to create a new one for BitBucket (and add the public key through my site).

0
source

Source: https://habr.com/ru/post/957422/


All Articles