1. Installing Jenkins
- 1 Download Jenkins from the official website
-
2
Install Jenkins:
sudo apt install jenkins
-
3
Start Jenkins service:
sudo systemctl start jenkins
2. Creating Your First Pipeline
// Jenkinsfile
pipeline {
agent any
stages {
stage('Build') {
steps {
sh 'echo "Building..."'
}
}
}
}
Save this as Jenkinsfile
in your repository root.
3. Running the Pipeline
- 1 Create a new Jenkins job and select Pipeline type
- 2 Configure repository URL and branch to trigger builds
- 3 Save and build now to execute your pipeline
4. Viewing Results
After executing, navigate to the Jenkins dashboard to view build status, console output, and performance metrics.
