我已经build立了我的Mac狮子jenkins,但我有我的份额的问题。 我能够连接和下载SVN文件存储库,但是作为我的shell构build脚本的一部分,我必须做一个SVN更新。 当我这样做的时候,我得到了许可权的错误,我可以看到在输出中,它要么是期待Sudo,要么是接受证书的问题(即使它能够在早些时候下载版本库就好了)
有什么最佳做法来实现这一目标? 我附上了我的bash文件的摘录
谢谢
#!/bin/sh -x # Change to our working directory cd ${WORKSPACE} rm -fR profiles rm -fR sites cp /Users/jinni/Sites/mybuildfile.make ${WORKSPACE} #lets now set up the site drush make mybuildfile.make svn update #this causes problems see out put below
输出:
/var/folders/zz/zyxvpxvq6csfxvn_n0000004000001/T/hudson392681277070654613.sh: line 20: drush: command not found + svn update svn: warning: Can't open file '/var/root/.subversion/servers': Permission denied Error validating server certificate for 'https://secretsite:4443': - The certificate is not issued by a trusted authority. Use the fingerprint to validate the certificate manually! Certificate information: - Hostname: secretsite - Valid: from Mon, 14 Jun 2010 19:45:39 GMT until Thu, 13 Jun 2013 19:45:39 GMT - Issuer: Blah Blah - Fingerprint: Fingerprint Blah Blah (R)eject, accept (t)emporarily or accept (p)ermanently? svn: OPTIONS of 'https://mysvnusername@secretsite:4443/svn/CCN/trunk/drupal': Server certificate verification failed: issuer is not trusted (https://secretsite:4443)
当您首次连接到远程服务器时,您需要接受证书的指纹。 做一个简单的方法是,像Jenkins运行的那样,运行命令并点击“接受”指纹。 您也可以自己pipe理.ssh/known_hosts
。