Skip to content

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.