enterprise git adoption webinar - chinese

27
1 Copyright ©2015 CollabNet, Inc. All Rights Reserved. CollabNet 企业级 Git 适合企业的安全性,可扩展性以及合规性 陈方瑜 CollabNet大中华区资深技术顾问

Upload: collabnet

Post on 18-Jul-2015

75 views

Category:

Technology


6 download

TRANSCRIPT

Page 1: Enterprise Git Adoption Webinar - Chinese

1 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

CollabNet 企业级 Git 适合企业的安全性,可扩展性以及合规性

陈方瑜

CollabNet大中华区资深技术顾问

Page 2: Enterprise Git Adoption Webinar - Chinese

2 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

•Git的概述 •企业关心的问题 •关于CollabNet •TeamForge企业Git •问题

会议议程

Page 3: Enterprise Git Adoption Webinar - Chinese

3 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

• 开源分布式SCM, 主要被使用在:

– Linux (最初使用为了特别的目的)

– Eclipse 基金

– Android (基于Gerrit的代码审查)

• 为什么要选择Git?

– 所有的操作都在本地

• 搜索、日志、历史、分支和合并

• 支持离线开发

– 强大的分支合并策略 (分支合并, 基线更新, 择优挑选)

– 开发和交付能力不同

Git = 领先的DVCS(分布式版本控制系统)

Page 4: Enterprise Git Adoption Webinar - Chinese

4 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

分布式版本控制

● 每个用户至少有一个

存储库副本(克隆)

● 每个用户的存储库保

存完整的历史

● 通常只有一个中央存

储库

Page 5: Enterprise Git Adoption Webinar - Chinese

5 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

Git 使用模式

add

commit

push

origin

/stable

-1.0

origin

/maste

r

maste

r

add

Fetch/获取

Clone/克隆

Git

Origin/源

master stable-1.0 index working tree

save

save

本地 .git

Page 6: Enterprise Git Adoption Webinar - Chinese

6 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

独裁者 / 副手的工作流程

Page 7: Enterprise Git Adoption Webinar - Chinese

7 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

Gerrit 代码审核工作流程

Page 8: Enterprise Git Adoption Webinar - Chinese

8 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

Git 欢迎继续增长,但是…….

“ DVCS分布式管理工具在小型团队的使用加速增长, 但是在大型企业却增长缓慢。

Source: Gartner, 27 July 2011 ID Number: G00214153; Hype Cycle for Application Development, 2011; Ian Finley, Mike Blechar

Page 9: Enterprise Git Adoption Webinar - Chinese

9 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

企业的担心

任何人 (Git使用组织):

• 37% 工具集成(trackers, CI/CD, …)

• 36% 和其它SCM工具的共存

• 33% 安全,追溯,流程管控

• 16% 24/7 支持和服务条款

经理及以上(Git使用组织):

• 51%安全,追溯,流程管控

• 49% 工具集成

• 37%和其它SCM工具的共存

• 22% 24/7支持和服务条款

Source: InformationWeek, 2013, http://visit.collab.net/git-survey.html

governance

Page 10: Enterprise Git Adoption Webinar - Chinese

10 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

• DVCS的出现为了解决一个非常具体的需求

• Git 有许多分叉和许多使用模型

• 导致开发团队,流程以及实践的脱节:

– 限制了灵活性和规模

– 阻碍了能见度与治理

– 把资源用于更好的交付价值和创新

问题

Page 11: Enterprise Git Adoption Webinar - Chinese

11 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

谁是CollabNet?

1st Cloud-Based ALM Agile Transformations

Open Agile ALM

1999 2005 2014

Apache / Subversion

2010

领导者 • ALM, SCM, 云,敏捷

• 帮助了100多家大型的,最受人尊敬的IT组织实施了转型

• 企业级的敏捷专家

– 培训了17,000+ ScrumMasters

先锋 • SVN的创造者

• 1st 基于云的ALM方案

规模 • 10,000+ 客户

• 6M+ 用户

• 280 员工

Page 12: Enterprise Git Adoption Webinar - Chinese

12 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

行业领导

Gartner MQ, ALM

InfoTech Agile ALM Vendor Landscape

“It has the best usage of open source among the vendors

included in the Magic Quadrant, including its Subversion (SVN),

Git, Gerrit and Jenkins, and integration to Black Duck

Software…”

Source: Gartner, Magic Quadrant for ADLM 2013

Page 13: Enterprise Git Adoption Webinar - Chinese

13 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

24/7 支持 Git/Gerrit 培训 标准支持 扩展性 ALM 集成 历史信息保护 代码质量保证

高级的Git安全 Git 项目组织 代码审核 复制

TeamForge = 企业级Git管理 + ALM

基础的 SCM 功能 jGit 引擎 Native 引擎 GitWeb

Gerrit

TeamForge和Gerrit,Git现在已经为企业做好了准备。实现所有Git的好处,同时又不损害治理安全性和遵从性。

Page 14: Enterprise Git Adoption Webinar - Chinese

14 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

简单的RBAC(基于角色的访问权限) - TeamForge

Page 15: Enterprise Git Adoption Webinar - Chinese

15 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

细粒度的访问控制 --通过Gerrit实现

Page 16: Enterprise Git Adoption Webinar - Chinese

16 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

代码审查执行和模板

Page 17: Enterprise Git Adoption Webinar - Chinese

17 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

History Protect

Page 18: Enterprise Git Adoption Webinar - Chinese

18 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

Git 历史重写– 功能细节

Commit #1 Initially files added File A added

Commit #2 More files added File B Added

Commit #3 Files modified File A modified

Commit #4 Files Deleted File A Delete

Change log Change log after History Re-Write

Commit #1 Initially files added File A added

Commit #5 More files added File X added

Commit #1 Initially files added File A added

Commit #2 More files added File B Added

Commit #3 Files modified File A modified

Commit #4 Files Deleted File A Delete

Local git commit(s)

• No traces about deleted changes (commits & metadata associated, files, directories)

• Periodic garbage collection will remove unreferenced commits soon and afterwards they can no longer be recovered

Local Git Repo

git clone

Developer

Commit #1 Initially files added File A added

Commit #2 More files added

Commit #3 Files modified

Commit #4 Files Deleted

Developer Removes some files either by purpose or accidentally

Blessed Git Repo

git push –f origin master

Commit #1 Initially files added File A added

Commit #5 More files added File X added

Page 19: Enterprise Git Adoption Webinar - Chinese

19 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

TeamForge Git 历史保护

Commit #1 Initially files added File A added

Commit #2 More files added File B Added

Commit #3 Files modified File A modified

Commit #4 Files Deleted File A Delete

Change log Change log after History Re-Write

Commit #1 Initially files added File A added

Commit #5 More files added File X added

Commit #1 Initially files added File A added

Commit #2 More files added File B Added

Commit #3 Files modified File A modified

Commit #4 Files Deleted File A Delete

Local git commit(s)

Local Git Repo

git clone

Developer

Commit #1 Initially files added File A added

Commit #2 More files added

Commit #3 Files modified

Commit #4 Files Deleted

Developer Removes some files either by purpose or accidentally

Blessed Git Repo

git push –f origin master

Commit #1 Initially files added File A added

Commit #5 More files added File X added

TeamForge History Protect

Detects Rewrite Event

git push –f origin master

1. 通知: 自动邮件通知管理员 2. 报告: 可靠地审计记录(谁, 什

么, 时间) 3. 恢复: 自助重写历史

TeamForge automatically secures history snapshots on ‘blessed’ master repository (under “refs/rewrite” or “refs/deleted”), for auditing & recovery.

Page 20: Enterprise Git Adoption Webinar - Chinese

20 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

•什么流程将最好的满足您使用Git最佳实践的需求 •安全性和合规性的需要 •什么需要与版本控制集成 •什么数据需要迁移 •怎么训练用户使用Git和相关流程

迁移到Git您需要考虑什么?

Page 21: Enterprise Git Adoption Webinar - Chinese

21 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

TeamForge ALM 能力

Reporting & Governance search

traceability documents

wikis

discussions

Release

Test

Build

Track

Code

Plan

My page

Reports

Projects

Monitoring

My settings

Open ALM

Collaboration Architecture

Communities

My workspace

Deploy

GitEye

Orchestrate

Process Templates

Dashboards & Report Catalog

Desktops

• 集成ALM开发和协同工具

• 灵活的和可重复的流程模板

• 跨项目协同架构

• 报表&治理

Page 22: Enterprise Git Adoption Webinar - Chinese

22 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

集成的Git推送工作项和Jenkins的任务

Page 23: Enterprise Git Adoption Webinar - Chinese

23 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

› Git 和SVN 服务器可以从一个的到可伸缩性的系统

› 集中访问和控制全球分布的Git和SVN库

› 已RBAC为基础的企业级安全,权限管理,身份认证,加密,审计

› 执行Git代码审核和检入流程

› 说做了什么,和什么有关?

使用Teamforge你可以得到:

› 组织内的IP发现,重用和报告

Page 25: Enterprise Git Adoption Webinar - Chinese

25 Copyright ©2015 CollabNet, Inc. All Rights Reserved. 25 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

Questions?

Page 26: Enterprise Git Adoption Webinar - Chinese

26 Copyright ©2015 CollabNet, Inc. All Rights Reserved. 26 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

谢谢!

Contact Details: Name [email protected]

Page 27: Enterprise Git Adoption Webinar - Chinese

27 Copyright ©2015 CollabNet, Inc. All Rights Reserved. 27 Copyright ©2015 CollabNet, Inc. All Rights Reserved.

© 2015 CollabNet, Inc., All rights reserved. CollabNet is a trademark or registered trademark of CollabNet Inc., in the US and other countries. All other trademarks, brand names, or product names belong to their respective holders.

CollabNet, Inc. 8000 Marina Blvd., Suite 600 Brisbane, CA 94005 www.collab.net +1-650-228-2500 +1-888-778-9793 blogs.collab.net twitter.com/collabnet www.facebook.com/collabnet www.linkedin.com/company/collabnet-inc