This is a test project demonstrating Jenkins pipeline functionality.
-
Access Jenkins at http://localhost:8080
-
Create a new Pipeline:
- Click "New Item" on the Jenkins dashboard
- Enter a name for your pipeline (e.g., "test-pipeline")
- Select "Pipeline" as the project type
- Click "OK"
-
Configure Pipeline:
- In the pipeline configuration page, scroll down to the "Pipeline" section
- Select "Pipeline script from SCM" in the Definition dropdown
- Select "Git" in the SCM dropdown
- Enter your repository URL
- Specify the branch (e.g., "/main" or "/master")
- Set the Script Path to "Jenkinsfile"
- Click "Save"
-
Run the Pipeline:
- Click "Build Now" to run the pipeline
- View the progress in the Stage View
- Check console output for detailed logs
The pipeline includes three main stages:
- Build: Simulates building the application
- Test: Simulates running tests
- Deploy: Simulates deployment
Each stage will echo its status for demonstration purposes.