v

您的位置:VeryCD图书计算机与网络

图书资源事务区


《Jenkins权威指南》(Jenkins: The Definitive Guide)英文文字版[PDF]

  • 状态: 精华资源
  • 摘要:
    图书分类软件
    出版社John Ferguson Smart
    发行时间2011年7月27日
    语言英文
  • 时间: 2013/02/01 14:05:05 发布 | 2013/02/02 19:24:05 更新
  • 分类: 图书  计算机与网络 

xieyond

精华资源: 4

全部资源: 6

相关: 分享到新浪微博   转播到腾讯微博   分享到开心网   分享到人人   分享到QQ空间   订阅本资源RSS更新   美味书签  subtitle
该内容尚未提供权利证明,无法提供下载。
中文名Jenkins权威指南
原名Jenkins: The Definitive Guide
图书分类软件
资源格式PDF
版本英文文字版
出版社John Ferguson Smart
书号1449305350
发行时间2011年7月27日
地区美国
语言英文
简介

IPB Image

内容介绍:

Streamline software development with Jenkins, the popular Java-based open source tool that has revolutionized the way teams think about Continuous Integration (CI). This complete guide shows you how to automate your build, integration, release, and deployment processes with Jenkins-and demonstrates how CI can save you time, money, and many headaches. Ideal for developers, software architects, and project managers, Jenkins: The Definitive Guide is both a CI tutorial and a comprehensive Jenkins reference. Through its wealth of best practices and real-world tips, you'll discover how easy it is to set up a CI service with Jenkins. Learn how to install, configure, and secure your Jenkins server Organize and monitor general-purpose build jobs Integrate automated tests to verify builds, and set up code quality reporting Establish effective team notification strategies and techniques Configure build pipelines, parameterized jobs, matrix builds, and other advanced jobs Manage a farm of Jenkins servers to run distributed builds Implement automated deployment and continuous delivery.

内容截图:

IPB Image

IPB Image

书签截图:

IPB Image



目录

Foreword . . . . . . . . . . . . . . . . . . . . . xiii
Preface . . . . . . . . . . . . . . . . . . . . .. . . xv
1. Introducing Jenkins . . . . . . . . .. . . . . . . . . . . . . . . . . . 1
Introduction 1
Continuous Integration Fundamentals 1
Introducing Jenkins (née Hudson) 3
From Hudson to Jenkins—A Short History 4
Should I Use Jenkins or Hudson? 5
Introducing Continuous Integration into Your Organization 6
Phase 1—No Build Server 6
Phase 2—Nightly Builds 6
Phase 3—Nightly Builds and Basic Automated Tests 6
Phase 4—Enter the Metrics 7
Phase 5—Getting More Serious About Testing 7
Phase 6—Automated Acceptance Tests and More Automated
Deployment 7
Phase 7—Continuous Deployment 7
Where to Now? 8
2. Your First Steps with Jenkins . . . . . . . . . . . . . . . . . . . . . 9
Introduction 9
Preparing Your Environment 9
Installing Java 10
Installing Git 10
Setting Up a GitHub Account 11
Configuring SSH Keys 11
Forking the Sample Repository 12
Starting Up Jenkins 13
Configuring the Tools 17
vConfiguring Your Maven Setup 18
Configuring the JDK 19
Notification 20
Setting Up Git 20
Your First Jenkins Build Job 21
Your First Build Job in Action 26
More Reporting—Displaying Javadocs 33
Adding Code Coverage and Other Metrics 34
Conclusion 40
3. Installing Jenkins . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Introduction 41
Downloading and Installing Jenkins 41
Preparing a Build Server for Jenkins 44
The Jenkins Home Directory 46
Installing Jenkins on Debian or Ubuntu 47
Installing Jenkins on Redhat, Fedora, or CentOS 48
Installing Jenkins on SUSE or OpenSUSE 48
Running Jenkins as a Stand-Alone Application 49
Running Jenkins Behind an Apache Server 52
Running Jenkins on an Application Server 53
Memory Considerations 54
Installing Jenkins as a Windows Service 54
What’s in the Jenkins Home Directory 58
Backing Up Your Jenkins Data 62
Upgrading Your Jenkins Installation 62
Conclusion 63
4. Configuring Your Jenkins Server . . . . . . . . . . . . . . . . . . 65
Introduction 65
The Configuration Dashboard—The Manage Jenkins Screen 65
Configuring the System Environment 68
Configuring Global Properties 69
Configuring Your JDKs 70
Configuring Your Build Tools 72
Maven 73
Ant 74
Shell-Scripting Language 75
Configuring Your Version Control Tools 75
Configuring Subversion 76
Configuring CVS 76
Configuring the Mail Server 76
Configuring a Proxy 77
vi | Table of ContentsConclusion 78
5. Setting Up Your Build Jobs . . . . . . . . . . . . . . . . . . . . . . 79
Introduction 79
Jenkins Build Jobs 79
Creating a Freestyle Build Job 80
General Options 81
Advanced Project Options 82
Configuring Source Code Management 84
Working with Subversion 84
Working with Git 87
Build Triggers 97
Triggering a Build Job Once Another Build Job Has Finished 98
Scheduled Build Jobs 98
Polling the SCM 99
Triggering Builds Remotely 100
Manual Build Jobs 102
Build Steps 102
Maven Build Steps 102
Ant Build Steps 104
Executing a Shell or Windows Batch Command 105
Using Jenkins Environment Variables in Your Builds 106
Running Groovy Scripts 108
Building Projects in Other Languages 110
Post-Build Actions 110
Reporting on Test Results 110
Archiving Build Results 111
Notifications 114
Building Other Projects 115
Running Your New Build Job 115
Working with Maven Build Jobs 115
Building Whenever a SNAPSHOT Dependency Is Built 116
Configuring the Maven Build 117
Post-Build Actions 119
Deploying to an Enterprise Repository Manager 119
Deploying to Commercial Enterprise Repository Managers 123
Managing Modules 123
Extra Build Steps in Your Maven Build Jobs 123
Using Jenkins with Other Languages 125
Building Projects with Grails 125
Building Projects with Gradle 127
Building Projects with Visual Studio MSBuild 130
Building Projects with NAnt 131
Table of Contents | viiBuilding Projects with Ruby and Ruby on Rails 131
Conclusion 133
6. Automated Testing . . . . . . . . . . . . . . . . . . . . . . . 135
Introduction 135
Automating Your Unit and Integration Tests 136
Configuring Test Reports in Jenkins 137
Displaying Test Results 139
Ignoring Tests 142
Code Coverage 144
Measuring Code Coverage with Cobertura 145
Measuring Code Coverage with Clover 153
Automated Acceptance Tests 155
Automated Performance Tests with JMeter 158
Help! My Tests Are Too Slow! 166
Add More Hardware 167
Run Fewer Integration/Functional Tests 167
Run Your Tests in Parallel 168
Conclusion 168
7. Securing Jenkins . . . . . . . . . . . . . . . . . . . . . . . . . 169
Introduction 169
Activating Security in Jenkins 169
Simple Security in Jenkins 170
Security Realms—Identifying Jenkins Users 171
Using Jenkins’s Built-in User Database 171
Using an LDAP Repository 175
Using Microsoft Active Directory 176
Using Unix Users and Groups 177
Delegating to the Servlet Container 177
Using Atlassian Crowd 178
Integrating with Other Systems 178
Authorization—Who Can Do What 181
Matrix-based Security 181
Project-based Security 185
Role-based Security 188
Auditing—Keeping Track of User Actions 189
Conclusion 193
8. Notification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
Introduction 195
Email Notification 195
More Advanced Email Notification 197
viii | Table of ContentsClaiming Builds 200
RSS Feeds 201
Build Radiators 202
Instant Messaging 203
IM Notification with Jabber 204
IM Notification using IRC 208
IRC Notification 209
Desktop Notifiers 212
Notification via Notifo 213
Mobile Notification 216
SMS Notification 216
Making Noise 218
Extreme Feedback Devices 221
Conclusion 223
9. Code Quality . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . 225
Introduction 225
Code Quality in Your Build Process 226
Popular Java and Groovy Code Quality Analysis Tools 227
Checkstyle 227
PMD/CPD 230
FindBugs 234
CodeNarc 236
Reporting on Code Quality Issues with the Violations Plugin 237
Working with Freestyle Build Jobs 238
Working with Maven Build Jobs 241
Using the Checkstyle, PMD, and FindBugs Reports 242
Reporting on Code Complexity 245
Reporting on Open Tasks 247
Integrating with Sonar 248
Conclusion 252
10. Advanced Builds . . . . . . . . . . . . . .. . . . . . . . . . . 253
Introduction 253
Parameterized Build Jobs 253
Creating a Parameterized Build Job 254
Adapting Your Builds to Work with Parameterized Build Scripts 254
More Advanced Parameter Types 257
Building from a Subversion Tag 259
Building from a Git Tag 260
Starting a Parameterized Build Job Remotely 260
Parameterized Build Job History 261
Parameterized Triggers 262
Table of Contents | ixMulticonfiguration Build Jobs 263
Setting Up a Multiconfiguration Build 264
Configuring a Slave Axis 265
Configuring a JDK Axis 266
Custom Axis 267
Running a Multiconfiguration Build 267
Generating Your Maven Build Jobs Automatically 270
Configuring a Job 271
Reusing Job Configuration with Inheritance 272
Plugin Support 274
Freestyle Jobs 277
Coordinating Your Builds 277
Parallel Builds in Jenkins 277
Dependency Graphs 278
Joins 278
Locks and Latches 280
Build Pipelines and Promotions 281
Managing Maven Releases with the M2Release Plugin 282
Copying Artifacts 285
Build Promotions 288
Aggregating Test Results 295
Build Pipelines 296
Conclusion 299
11. Distributed Builds . . . . . . . . . . .. . . . . . . . . . . . . 301
Introduction 301
The Jenkins Distributed Build Architecture 301
Master/Slave Strategies in Jenkins 302
The Master Starts the Slave Agent Using SSH 303
Starting the Slave Agent Manually Using Java Web Start 307
Installing a Jenkins Slave as a Windows Service 310
Starting the Slave Node in Headless Mode 311
Starting a Windows Slave as a Remote Service 311
Associating a Build Job with a Slave or Group of Slaves 312
Node Monitoring 314
Cloud Computing 314
Using Amazon EC2 315
Using the CloudBees DEV@cloud Service 319
Conclusion 321
12. Automated Deployment and Continuous Delivery . . . . . . . . . . . . . . . . . 323
Introduction 323
Implementing Automated and Continuous Deployment 324
x | Table of ContentsThe Deployment Script 324
Database Updates 325
Smoke Tests 327
Rolling Back Changes 328
Deploying to an Application Server 328
Deploying a Java Application 329
Deploying Scripting-based Applications Like Ruby and PHP 339
Conclusion 341
13. Maintaining Jenkins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343
Introduction 343
Monitoring Disk Space 343
Using the Disk Usage Plugin 345
Disk Usage and the Jenkins Maven Project Type 346
Monitoring the Server Load 347
Backing Up Your Configuration 348
Fundamentals of Jenkins Backups 349
Using the Backup Plugin 351
More Lightweight Automated Backups 352
Archiving Build Jobs 353
Migrating Build Jobs 354
Conclusion 358
Appendix: Automating Your Unit and Integration Tests . . . . . . . . . . . . . . . . . . 359
Index . . . . . . . . . . . . . . . 369

正在读取……

这里是其它用户补充的资源(我也要补充):

暂无补充资源
正在加载,请稍等...

点击查看所有48网友评论

 

(?) [公告]留口水、评论相关规则 | [活动]每日签到 轻松领取电驴经验

    小贴士:
  1. 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  2. 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  3. 勿催片。请相信驴友们对分享是富有激情的,如果确有更新版本,您一定能搜索到。
  4. 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
  5. 如果您发现自己的评论不见了,请参考以上4条。