常用DSL-readJSON-Json数据格式化
def response readJSON text: "${scanResult}" println(scanResult)
常用DSL-withCredentials
withCredentials([usernamePassword(credentialsId: "${credentialsId}", passwordVariable: 'Password', usernameVariable: 'Username')]) {
println(password)
}
常用DSL-checkout
//Git
checkout ([$class: 'GitSCM', branches: [[name: "brnachName"]],
doGenerateSubmoduleConfigurations: false