📅  最后修改于: 2022-03-11 14:55:01.239000             🧑  作者: Mango
pipeline {
agent { label 'master' }
stages {
stage('build') {
steps {
script {
def disk_size = sh(script: "df / --output=avail | tail -1", returnStdout: true).trim() as Integer
println("disk_size = ${disk_size}")
}
}
}
}
}