Jenkins in One Line
Jenkins automates build, test, report, and deployment steps through repeatable jobs and pipelines.
commit -> Jenkins job -> tests -> reports -> notifications
A concise pipeline reference for using Jenkins in test automation workflows, including staged execution and report handling.
Jenkins automates build, test, report, and deployment steps through repeatable jobs and pipelines.
commit -> Jenkins job -> tests -> reports -> notifications
Know the difference between freestyle jobs and pipelines.
Common options: - freestyle - declarative pipeline - scripted pipeline - multibranch pipeline
Pipelines-as-code keep CI logic versioned alongside the framework.
pipeline {
agent any
stages {
stage('Test') {
steps {
sh 'npm test'
}
}
}
}Split the pipeline into meaningful checkpoints.
Typical stages: - checkout - build / install - execute tests - publish reports - notify
Agents define where the pipeline or stage will actually run.
agent any
agent { label 'linux' }Always publish execution evidence so failures can be investigated later.
Useful outputs: - ExtentReports - Playwright HTML report - screenshots - logs
Parameterized pipelines help teams choose browser, environment, or suite type at runtime.
Common parameters: - environment - browser - suite type - retry mode
Close the feedback loop so the right people know when the pipeline breaks.
Notify via: - email - Slack - Teams - issue comments
Jenkins pipelines can also include AI summary or failure triage steps when appropriate.
Examples: - summarize failures - cluster repeated errors - draft release-test status