Jenkins - How many CI/CD pipelines for a release?

后端 未结 1 1975
说谎
说谎 2021-01-13 13:29

Using below Git work flow, for any release,

For continuous delivery, my understanding is, two Jenkins pipe lines need to be created, as shown below:

相关标签:
1条回答
  • 2021-01-13 14:15

    1) This question doesn't have one right answer - in most cases two pipelines (one for feature branches and other for master branch) is sufficient for creating stable releases, but usually teams use three staging environments (for example, see details in this article):

    • Dev environment: for working on develop (or feature) branch and run automation tests;
    • QA environment: for providing a more stable version of the code for testing by QA team;
    • Prod environment: for building production-ready code that is currently on the master branch.

    And in that case you can have three pipelines for each staging environment (or one pipeline with parameters for choosing and building each type of environment). There are a lot of examples of Jenkins continuous delivery configuration in the internet.

    2) If I understand you correctly, for maintaining artifacts you can use Nexus Platform Plugin (see this example) or Nexus Artifact Uploader to publish a specific artifact from Jenkins to Nexus.

    0 讨论(0)
提交回复
热议问题