狂神Java全栈
前支持的状态有SUCCESS、UNSTABLE、FAILURE、NOT_BUILT、ABORTED
等。
pipeline {
agent any
triggers {
upstream(upstreamProjects: 'env', threshold: hudson.model.Result.SUCCESS) //当env构建成功时构建这个流水线
}
stages {
stage('Example') {
steps {
echo 'Hello World'
}
}
}}