Study-Notes.docx - Chapter 1 \u2013 Key CI\/CD\/Jenkins Concepts 5 Continuous Delivery\/Continuous Integration Concepts.5 Define continuous integration

Study-Notes.docx - Chapter 1 u2013 Key CI/CD/Jenkins...

This preview shows page 1 - 4 out of 27 pages.

Chapter 1 – Key CI/CD/Jenkins Concepts ....................................................................................... 5 Continuous Delivery/Continuous Integration Concepts ..................................................... 5 Define continuous integration, continuous delivery, continuous deployment ...... 5 Difference between CI and CD ................................................................................................... 5 Stages of CI and CD ......................................................................................................................... 5 Continuous delivery versus continuous deployment ....................................................... 5 Jobs ............................................................................................................................................................ 6 What are jobs in Jenkins? ............................................................................................................ 6 Types of jobs ..................................................................................................................................... 6 Scope of jobs ..................................................................................................................................... 6 Builds ........................................................................................................................................................ 6 What are builds in Jenkins? ........................................................................................................ 6 What are build steps, triggers, artifacts, and repositories? ........................................... 6 Build tools configuration ............................................................................................................. 6 Source Code Management ................................................................................................................ 6 What are source code management systems and how are they used? ..................... 6 Cloud-based SCMs .......................................................................................................................... 6 Jenkins changelogs ......................................................................................................................... 6 Incremental updates v clean check out .................................................................................. 7 Checking in code ............................................................................................................................. 7 Infrastructure-as-Code ................................................................................................................. 7 Branch and Merge Strategies ..................................................................................................... 7 Testing ...................................................................................................................................................... 7 Benefits of testing with Jenkins ................................................................................................ 7 Define unit test, smoke test, acceptance test, automated verification/functional tests ...................................................................................................................................................... 7 Notifications .......................................................................................................................................... 7 Types of notifications in Jenkins ............................................................................................... 7 Importance of notifications ........................................................................................................ 7 Distributed Builds ............................................................................................................................... 7 What are distributed builds? ...................................................................................................... 7 Functions of masters and slaves ............................................................................................... 7 Plugins ...................................................................................................................................................... 8 What are plugins? ........................................................................................................................... 8 What is the plugin manager? ..................................................................................................... 8 Jenkins Rest API ................................................................................................................................... 8 How to interact with it .................................................................................................................. 8 Why use it? ........................................................................................................................................ 8 Security .................................................................................................................................................... 8 Authentication versus authorization ...................................................................................... 8 Matrix security ................................................................................................................................. 8 Fingerprints ........................................................................................................................................... 8 What are fingerprints? 8How do fingerprints work? 9
Image of page 1
How to use artifacts in Jenkins .................................................................................................. 9 Configuration Management (Tools such as Chef, Puppet, etc.) ......................................... 9 Elements of software configuration management ............................................................ 9 Change management policies .................................................................................................... 9 Importance of software configuration management ........................................................ 9 Using 3 rd party tools ............................................................................................................................ 9 How to use 3 rd party tools with Jenkins ................................................................................. 9 Chapter 2 – Jenkins Usage .................................................................................................................. 10 Jobs ......................................................................................................................................................... 10 Organizing jobs in Jenkins ........................................................................................................ 10 Parameterized jobs ...................................................................................................................... 10 Usage of Freestyle/Pipeline/Matrix/Maven/Literate ................................................... 10 Builds ..................................................................................................................................................... 10 Setting up build steps and triggers ....................................................................................... 10 Configuring build tools .............................................................................................................. 10 Running scripts as part of build steps ................................................................................. 10 Source Code Management ............................................................................................................. 11 Polling source code management .......................................................................................... 11 Creating hooks ............................................................................................................................... 11 Including version control tags and version information .............................................. 11 Testing ................................................................................................................................................... 11 Testing for code coverage ......................................................................................................... 11 Test reports in Jenkins ............................................................................................................... 11 Displaying test results ................................................................................................................ 11 Integrating with test automation tools ................................................................................ 12 Breaking builds ............................................................................................................................. 12 Notifications ........................................................................................................................................ 12 Setup and usage ............................................................................................................................ 12 Email notifications, instant messaging, build radiators ............................................... 12 Alarming on notifications ......................................................................................................... 12 Distributed Builds ............................................................................................................................. 12 Setting up and running builds in parallel ........................................................................... 12 Setting up and using SSH slaves, JNLP slaves, cloud slaves ......................................... 12 Monitoring nodes ......................................................................................................................... 12 Plugins ................................................................................................................................................... 12 Setting up and using Plugin Manager .................................................................................. 12 Finding and configuring required plugins ......................................................................... 13 CI/CD ...................................................................................................................................................... 13 Using Pipeline (formerly known as Workflow) ............................................................... 13 Integrating automated deployment ...................................................................................... 13 Release management process ................................................................................................. 13 Pipeline stage behavior ............................................................................................................. 13 Jenkins Rest API ................................................................................................................................. 13 Using REST API to trigger jobs remotely, access job status, create/delete jobs. 13 Security ................................................................................................................................................. 14 Setting up and using security realms ................................................................................... 14
Image of page 2
User database, project security, Matrix security ............................................................. 14 Setting up and using auditing .................................................................................................. 14 Setting up and using credentials ............................................................................................ 14 Fingerprints ........................................................................................................................................ 15 Fingerprinting jobs shared or copied between jobs ...................................................... 15 Artifacts ................................................................................................................................................. 15 Copying artifacts ........................................................................................................................... 15 Using artifacts in Jenkins ........................................................................................................... 15 Artifact retention policy ............................................................................................................ 15
Image of page 3
Image of page 4

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture