# multibranch-pipeline **Repository Path**: devops-samples/multibranch-pipeline ## Basic Information - **Project Name**: multibranch-pipeline - **Description**: jenkins-多分支场景demo - **Primary Language**: Groovy - **License**: MIT - **Default Branch**: develop - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-07-11 - **Last Updated**: 2021-12-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # building-a-multibranch-pipeline-project This repository is for the [Build a multibranch Pipeline project](https://jenkins.io/doc/tutorials/build-a-multibranch-pipeline-project/) tutorial in the [Jenkins User Documentation](https://jenkins.io/doc/). This tutorial uses the same application that the [Build a Node.js and React app with npm](https://jenkins.io/doc/tutorials/build-a-node-js-and-react-app-with-npm/) tutorial is based on. Therefore, you'll be building and testing the same application but this time, its delivery will be different depending on the Git branch that Jenkins builds from. That is, the branch being built determines which delivery stage of your Pipeline is executed. The `jenkins` directory contains an example of the `Jenkinsfile` (i.e. Pipeline) you'll be creating yourself during the tutorial and the `scripts` subdirectory contains shell scripts with commands that are executed when Jenkins processes either the "Deliver for development" or "Deploy for production" stages of your Pipeline (depending on the branch that Jenkins builds from). ## Demo 本示例基于Node.js和React生成一个网页,该网页含有 "Welcome to React" 内容且伴随有一个检查应用程序满意度的测试 - 使用docker 'Node' image 作为slave - 使用场景: 多分支CI/CD - 该仓库branch 按照truck based model, master/feature/develop 适合快速开发,快速merge 场景 ![mutibranch-pipeline-1.JPG](./jenkins/mutibranch-pipeline-1.JPG) ![mutibranch-pipeline-2.JPG](./jenkins/mutibranch-pipeline-2.JPG) ![mutibranch-pipeline-3.JPG](./jenkins/mutibranch-pipeline-3.JPG) ![mutibranch-pipeline-4.JPG](./jenkins/mutibranch-pipeline-4.JPG)