Thường thì bạn ấn build trên Jenkins thì bạn thấy nó tạo history build
Nếu bạn có hàng ngàn job build thì việc lưu quá nhiều history sẽ gây tốn Storage.
Vậy làm sao để giảm được.
pipeline{
agent{
label "k8s-permanent"
}
options {
buildDiscarder(logRotator(numToKeepStr: '1'))
}
stages{
stage("Build"){
steps{
echo "Building"
}
}
}
}