2016-04-16 25 views
9

kullanır. Gitlab CI için yeniyim ama şu an konu hakkında bir şeyler okuyordum.
Her işlemden sonra Gitlab'mda C# -Projects derlemesi yapmalı ve projemi doğru şekilde oluşturmak için CI için bir Windows Shell-Runner kurulumunu kullanmam gerektiğini öğrendim.Gitlab Build Runner Windows'ta SSH yerine

Ne yazık ki, benim Gitlab kurulumum yalnızca geliştiricilerin ve makinelerin HTTP değil, SSH üzerinden bağlanmasına izin veriyor. Ama benim Windows çalıştırıcım her zaman http üzerinden bağlantı kurmaya çalışır ve yapıyı bozar.

Nasıl düzgün yapılandırabilirim?
Zaten runner ile ilişkili config.toml'u düzenlemeyi denedim, ancak ssh veya http kullanılıp kullanılmayacağını belirtmek için bir seçenek yok.

cevap

0

Eğer koşucunuza ssh üzerinden erişilebiliyorsa, onu gitlab-runner register komutuyla deneyin ve kaydedin. Christian Stankowic den
Bkz "GitLab Continuous Integration": doğru içerik, including an ssh config ile config.toml dosyası oluşturmak yardımcı olacağını

# sudo gitlab-runner register 
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/ci): 
http://gitlab.localdomain.loc/ci 
Please enter the gitlab-ci token for this runner: 
xxx 
Please enter the gitlab-ci description for this runner: 
[gitlab.localdomain.loc]: 
Please enter the gitlab-ci tags for this runner (comma separated): 
rpm764,generic 
INFO[0035] 7ab95543 Registering runner... succeeded 
Please enter the executor: ssh, shell, parallels, docker, docker-ssh: 
ssh 
Please enter the SSH server address (eg. my.server.com): 
gitlab.localdomain.loc 
Please enter the SSH server port (eg. 22): 
22 
Please enter the SSH user (eg. root): 
su-gitlab-ci 
Please enter the SSH password (eg. docker.io): 
myPassword 
Please enter path to SSH identity file (eg. /home/user/.ssh/id_rsa): 
/home/su-gitlab-ci/.ssh/id_rsa 
INFO[0143] Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded! 

.

+0

Cevabınız için teşekkürler @VonC! Ne yazık ki, koşucuya sadece cmd veya Powershell üzerinden erişebiliyorum. – Flash1232

İlgili konular