Cicd documentation layout



Download 6.25 Mb.
Page3/39
Date15.06.2023
Size6.25 Mb.
#61535
1   2   3   4   5   6   7   8   9   ...   39
CIcd
Blueprint Diagram of CI

2.3. Workflow Phases:



Source Phase
In most cases a pipeline run is triggered by a source code repository. A change in code triggers a notification to the CI/CD tool, which runs the corresponding pipeline. Other common triggers include automatically scheduled or user-initiated workflows, as well as results of other pipelines.
Build stage
Suppose we have a Java code and it needs to be compiled before execution. So, through the version control phase, it again goes to build phase where it gets compiled. You get all the features of that code from various branches of the repository, which merge them and finally use a compiler to compile it. This whole process is called the build phase.
Test stage
Once the build phase is over, then you move on to the testing phase. In this phase, we have various kinds of testing, one of them is the unit test (where you test the chunk/unit of software or for its sanity test).

2.4. Main Principles Of CI:


  • Check in code in frequently.

  • Automate the build and test portion.

  • Always test the code locally before checking it in.

  • Never merge any failed branches to the main branch.

  • Return its status back to successful if you’re the developer who causes the failed build or test.

  • Make it your top priority to do so once the fail happens.

2.5. CI – Benefits



2.6. Definition of CD:


  • Continuous deployment is a strategy for software releases wherein any code commit that passes the automated testing phase is automatically released into the production environment, making changes that are visible to the software's users.

  • Continuous deployment eliminates the human safeguards against unproven code in live software. It should only be implemented when the development and IT teams rigorously adhere to production-ready development practices and thorough testing, and when they apply sophisticated, real-time monitoring in production to discover any issues with new releases.

Download 6.25 Mb.

Share with your friends:
1   2   3   4   5   6   7   8   9   ...   39




The database is protected by copyright ©ininet.org 2024
send message

    Main page