📜  jenkinsfile docker - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:01.239000             🧑  作者: Mango

代码示例1
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}")
                }
            }
        }
    }
}