Continuous integration with Xcode Bots

萝らか妹 提交于 2019-12-05 01:32:55

The problem seems to be that XCode5 Bots do not know how to use pure svn. You have to use svn+ssh.

[UPDATE] You could also use git ... synchronized with your SVN. The workflow ist slightly different, but it works great.

I found this today: subgit

It perfectly integrates into GIT and SVN, you can set up GIT repositories in Xcode Server and upgrade them with subgit - they will both stay in sync. (took me about half an hour to completely understand how it works)

Best of all: a 10 seat license (meaning 10 collaborator via subgit) is totally free (and quite enough for my use case).

[PREVIOUS ANSWER] I made a simple solution that involves an SSH Server on the SVN Server machine. I think it does not matter which one, but I'm currently using Cygwin.

In the /etc/sshd_config you need to add a subsystem

Subsystem "svnserve -t" /etc/svnserve-proxy

You need to create the file /etc/svnserve-proxy

cat > /etc/svnserve-proxy
#!/bin/bash
svnserve -t -r <repository>

You have to modify the svnserve command and repository respectively. On your local computer you have to modify the file ~/.subversion/config and add a [tunnels] line:

[tunnels]
ssh = $SVN_SSH ssh -v -l <username> -s

username is the name of the user you want to authenticate with. This solution is quick and dirty and does not allow for different users to authenticate. In addition, Xcode needs to use the same username on your local machine and the Bot-Server. It is quite possible that you have to create a _teamsuser home directory and put an subversion/config in there as well.

An alternative would be to use public-keys (As the bot server already creates) You can then put these into authorized_keys and put a command in front:

command="svnserve -t -r <repository> --tunnel-user=<user>" rsa-ssh AAA

I had a similar problem. In my case it was issue accessing the source code repository. The OSX Server had DNS issue which was preventing it from reaching the host. Can you check if you are able to access your source code repository?

With Xcode 9 apple brings ease to continuous integration with Xcode bots.

Xcode Server built-in. Continuous integration bots can be run on any Mac with Xcode 9, no need to install macOS Server.

I found very good article explaining how to configure it with Xcode 9.

Xcode9 - Xcode server comprehensive iOS continuous integration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!