jenkins Sonar iOS 自己遇到的坑

问题一:安装jenkins后“可选插件”列表为空

解决方案:选择插件管理-高级-升级站点-更改URL为http://mirror.xmission.com/jenkins/updates/update-center.json-点击提交即可

问题二:通过jenkins安装git插件失败 

提示:java.io.IOException: Downloaded file /Users/Shared/Jenkins/Home/plugins/bouncycastle-api.jpi.tmp does not match expected SHA-1, expected ‘IIOSwykf+UWKG/YNIHunIoI5oBk=’, actual ‘1BElt7TWENwWUm0vcTtkXNKjVYc=’ (如果有人解决希望能告知一下)

解决方案:网上搜索了资料并没有解决我的问题,只能手动上传https://github.com/ciandcd/jenkins-awesome/tree/master/jenkins_home/plugins 这个网站我所需要的都有,没有的可以自己下载,安装时也会失败,那是因为有些插件必须先安装,才可以装其他插件

此问题相关资料:http://www.ciandcd.com/?p=65

问题三:创建数据库遇到的坑mysql -u root -p 会发现无法进入mysql

解决方案:1:装mysql workbench 。可视化界面直接操作。

2:苹果->系统偏好设置->最下边点mysql 在弹出页面中 关闭mysql服务

3:进入终端输入:

cd /usr/local/mysql/bin/ 

回车后输入

sudo su 

登录管理员权限,使用

./mysqld_safe –skip-grant-tables

 & 禁止mysql验证功能。 回车后mysql会自动重启,重启好了之后进入

mysql workbench

 随便创建一个连接,然后用户名填root (注意这里不会验证密码,所以填只要存在的账户就可以)。

点击 图中的配置按钮,进入配置界面

点击store in keychain 并会弹出输入密码界面,这时候只要输入密码就可以完成密码的修改了。紧接着就是创建数据库

mysql> CREATE DATABASE sonar CHARACTER SET utf8 COLLATE utf8_general_ci;

mysql> CREATE USER ‘sonar’ IDENTIFIED BY ‘sonar’;

mysql> GRANT ALL ON sonar.* TO ‘sonar’@’%’ IDENTIFIED BY ‘sonar’;

mysql> GRANT ALL ON sonar.* TO ‘sonar’@’localhost’ IDENTIFIED BY ‘sonar’;

mysql> FLUSH PRIVILEGES;

此问题相关资料:http://blog.csdn.net/maylorchao/article/details/45648045

问题四:执行mysql语句报错ERROR 1290 (HY000): The MySQL server is running with the –skip-grant-tables option so it cannot execute this statement

解决方案:这个时候我们只需要

flush privileges

一下,在添加用户就OK了,

mysql> flush privileges;

Query OK, 0 rows affected (0.01 sec)

mysql> GRANT ALL PRIVILEGES ON *.* TO IDENTIFIED BY ‘123’ WITH GRANT OPTION;

Query OK, 0 rows affected (0.00 sec)

这个时候我们成功搞定了,再登录就可以了。

此问题相关资料:http://www.cnblogs.com/iosdev/archive/2013/07/15/3190431.html

问题五:xcode8 跑脚本run-sonar.sh 报错:reason: ‘Got error while trying to deserialize event ‘Build settings from command line:’: The data is not in the correct format.’

解决方案:目前还没有办法解决,facebook正在解决中 问题追踪地址:https://github.com/facebook/xctool/issues/704

目前已解决:https://my.oschina.net/ChenTF/blog/806565

问题六:The project named “” does not contain a scheme named “”. The “-list” option can be used to find the names of the schemes in the project

解决方案:Choose Scheme > Manage Schemes (from the Product Menu).

Ensure the ‘Shared’ box is checked for that scheme

A new .xcscheme file has been created in your project at

WorkspaceName.xcworkspace/xcshareddata/xcschemes.

Commit this file to your repository

谢谢下面大佬

学习相关资料:

http://www.jianshu.com/p/f58e89573d33

https://my.oschina.net/ChenTF/blog/708646

    原文作者:saber森森
    原文地址: https://www.jianshu.com/p/52df2c0514f8
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞