This project demonstrates a Continuous Integration (CI) pipeline using Jenkins to automate testing for a simple Python project.
main.py: Core functions of the application.test_main.py: Unit tests for the application.requirements.txt: Python dependencies.Jenkinsfile: Defines the Jenkins pipeline.
- Clone Repository: Jenkins pulls the latest code from GitHub.
- Install Dependencies: Installs required Python packages.
- Run Tests: Executes unit tests to ensure code functionality.
- Publish Test Report: Generates and publishes a test report.
- Clean Workspace: Cleans up the workspace after the build.
- Clone the repository.
- Set up a Jenkins pipeline with the provided Jenkinsfile.
- Configure GitHub webhooks to trigger the pipeline on commits.
- Push changes to see the pipeline in action.