Code Review很重要,但是大部分CR方案都要求在浏览器或其他工具上完成,而不能使用日常开发工具,比如
Intellij IDEA
。但是JetBrains推出的Upsource可以实现在Intellij IDEA
上完成Code Review。
Upsource
服务https://www.jetbrains.com/upsource/download 下载后解压
#启动
bin\upsource.bat start
#停止
bin\upsource.bat stop
#重启
bin\upsource.bat restart
#启动
bin/upsource.sh start
#停止
bin/upsource.sh stop
#重启
bin/upsource.sh restart
Starting Upsource...
* Configuring JetBrains Upsource 2018.2
* Made default base-url 'http://pc-20190609aqme/' from hostname 'pc-20190609aqme' and listen port '80'
* JetBrains Upsource 2018.2 runtime environment is successfully configured
* Loading logging configuration from D:\Program Files\upsource-2018.2.1291\lib\ext\log4j.xml
* Redirecting JetBrains Upsource 2018.2 logging to D:\Program Files\upsource-2018.2.1291\logs\internal\services\bundleProcess
* Configuring Service-Container[bundleProcess]
* Configuring Bundle Backend Service
* Configuring Configuration Wizard
* Starting Service-Container[bundleProcess]
* Starting Bundle Backend Service
* Starting Configuration Wizard
* JetBrains Upsource 2018.2 Configuration Wizard will be available on [http://pc-20190609aqme?wizard_token=CxDoorwSy6hFBdQ326pv] after start
Upsource is running
启动成功后一般会自动弹出浏览器并打开链接http://pc-20190609aqme?wizard_token=CxDoorwSy6hFBdQ326pv。点击"Set up"
后开始设置:
设置Upsource
URL和端口
等待配置生效
Upsource
启动完毕后,使用admin登录
创建Project
设置Project
Upsource Integration
插件Upsource Integration
插件安装后
IDEA获取访问Upsource权限
新增Comment
查看Comment及处理
Test VCS connection failed. List remote refs failed: com.jcraft.jsch.JSchException: Error while loading an uploaded key 'the-key': invalid privatekey
-m pem
选项ssh-keygen -t rsa -b 2048 -m pem
- 解决办法二:如果key是PuTTY格式,则需要转换为OpenSSH格式
Open PuttyGen.
Click File | Load private key.
Go to Conversions | Export OpenSSH and export your private key.
Paste the converted private key into Upsource.