环境:MAC X OS 10.12.3 + Jenkins 2.47
1. 新建一个项目,类型选择 Pipeline 
2. 配置 Pipeline
https://github.com/TTFHW/jenkins_pipeline_hello.git 
3. Build
4. 查看 Jenkinsfile
node {
   stage 'Stage 1'
           echo 'Hello World 1'
   stage 'Stage 2'
           echo 'Hello World 2'
}
参考文献:
1.  https://github.com/TTFHW
 
没有评论:
发表评论