shaowenchen
我在持续集成服务中通过jenkinsfile构建了一个新的持续集成项目。
jenkinsfile如下:
pipeline {
agent {
node {
label ‘maven’
}
}
stages {
stage(‘echo’) {
steps {
echo ‘hello’
}
}
stage(‘print’) {
steps {
script {
print “hello”
}
}
}
}
}
系统运行后结果如下:
切换stage消耗了太多时间