Jenkins Continuous Integration Cookbook pdf

344 2.3K 2
Jenkins Continuous Integration Cookbook pdf

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... /etc/init.d/vboxadd setup 15 Select Install Guest additions using the Devices menu option 16 Add the Jenkins user to the vboxsf group sudo gedit /etc/group vboxsf:x:1001 :Jenkins 11 Maintaining Jenkins 17 Modify the JENKINS_ HOME variable in /etc/default /Jenkins to point to the mounted shared directory: sudo gedit /etc/default /Jenkins JENKINS_HOME=/media/sf_workspacej 18 On the host OS, create the directory workspacej... jenkins. war –help A wider range of installation instructions can be found at https://wiki .jenkins- ci.org/display /JENKINS/ Installing +Jenkins For a more advanced recipe describing how to set up a virtual image under VirtualBox with Jenkins, you can use the Using a sacrificial Jenkins instance recipe in Chapter 1, Maintaining Jenkins Who this book is for This book is for Java developers, software architects,... or it would even be better if you still add tutorials to the Jenkins community wiki 8 Chapter 1 Signing up to the community To add community bug reports, or to modify wiki pages, you will need to create an account at the following URL: https://wiki .jenkins- ci.org/display /JENKINS/ Issue+Tracking Using a sacrificial Jenkins instance Continuous Integration (CI) servers are critical in the creation of deterministic... Offsetting work to Jenkins nodes 309 310 311 iii Table of Contents Learning from history Test frameworks are emerging Starve QA/ integration servers And there's always more Final comments 311 312 313 313 314 Index 315 iv Preface Jenkins is a Java-based Continuous Integration (CI) server that supports the discovery of defects early in the software cycle Thanks to over 400 plugins, Jenkins communicates... usage violations ff Keeping in contact with Jenkins through Firefox ff Monitoring through JavaMelody ff Keeping a track of the script glue ff Scripting the Jenkins command-line interface ff Global modifications of Jobs with Groovy ff Signaling the need to archive Maintaining Jenkins Introduction Jenkins is feature-rich and is vastly extendable through plugins Jenkins talks with numerous external systems,... environment variable JENKINS_ HOME to the directory you wish Jenkins to run under Next, run a command similar to the following: Java –jar jenkins. war –httpsPort=8443 –httpPort=-1 Jenkins will start to run over https on port 8443 The http port is turned off by setting httpPort=-1, and the terminal will display logging information You can ask for help through the following command: Java –jar jenkins. war –help... cloud Jenkins can use Amazon services or an Application Service Provider (ASP), such as CloudBees (http://www.cloudbees.com/) ff There is no fuss in installation, as installation is as simple as running only a single download file named jenkins. war ff It has over 400 plugins supporting communication, testing, and integration to numerous external applications (https://wiki .jenkins- ci.org/display /JENKINS/ Plugins)... folders will fail without any visual warning The default Jenkins instance now needs a little reconfiguration: ff The jenkins user needs to belong to the the vboxsf group to have permission to use the shared folder ff The /etc/init.d /jenkins startup script points to /etc/default /jenkins and picks up the values of specific properties, such as JENKINS_ HOME Next, you added a shared folder to the guest... to check the Jenkins log file /var/log /jenkins/ jenkins.log, for *NIX distributions and for log-level SEVERE For example: SEVERE: Cannot perform a backup Please be sure jenkins/ hudson has write privileges in the configured backup path {0} 16 Chapter 1 Testing exclude patterns The following Perl script will allow you to test the exclude pattern Simply replace the $content value with your Jenkins workspace... Contents Installing a CAS server Enabling SSO in Jenkins Chapter 3: Building Software 77 83 85 Introduction 85 Plotting alternative code metrics in Jenkins 88 Running Groovy scripts through Maven 93 Manipulating environmental variables 97 Running AntBuilder through Groovy in Maven 102 Failing Jenkins Jobs based on JSP syntax errors 106 Configuring Jetty for integration tests 111 Looking at license violations . the software development process with Jenkins Alan Mark Berg BIRMINGHAM - MUMBAI Jenkins Continuous Integration Cookbook Copyright © 2012 Packt Publishing All.

Ngày đăng: 06/03/2014, 03:20

Từ khóa liên quan

Mục lục

  • Cover

  • Copyright

  • Credits

  • About the Author

  • About the Reviewers

  • www.PacktPub.com

  • Table of Contents

  • Preface

  • Chapter 1: Maintaining Jenkins

    • Introduction

    • Using a sacrificial Jenkins instance

    • Backing up and restoring

    • Modifying Jenkins configuration from the command line

    • Reporting overall disc usage

    • Deliberately failing builds through log parsing

    • A Job to warn about the disc usage violations through log parsing

    • Keeping in contact with Jenkins through Firefox

    • Monitoring through JavaMelody

    • Keeping a track of the script glue

    • Scripting the Jenkins command-line interface

    • Global modifications of Jobs with Groovy

Tài liệu cùng người dùng

Tài liệu liên quan