-
Notifications
You must be signed in to change notification settings - Fork 248
Pipeline properties
Andrew Bayer edited this page Jan 10, 2017
·
7 revisions
One important option you may want to set up is the log rotation, meaning how long pipeline runs are retained for:
pipeline {
agent any
options {
buildDiscarder(logRotator(numToKeepStr:'5'))
}
...
}
There are other advanced properties that you may need to set from time to time - they go in this section. It is likely you won't need more than what is shown above.
Documentation
- Getting Started
- Running multiple steps
- Controlling your build environment
- Environment variables
- Reporting test results and storing artifacts
- Notifications
- Deployment and credentials
- Parallelism
- Triggering runs
- Parametrized pipelines
- Pipeline options and log rotation
- Jenkinsfile validation from the CLI
- Advanced pipeline authoring
- Syntax reference
- Version history and changes
Examples