1.脚本的路径
2.代码路径
3.自动生成的Jenkinsfile creating-a-pipeline-in-blue-ocean/Jenkinsfile
pipeline { agent { docker { image 'node:6-alpine' args '-p 3000:3000' } } stages { stage('Build') { steps { sh 'npm install' } } stage('Test') { steps { sh './jenkins/scripts/test.sh' } } stage('Deliver') { steps { sh './jenkins/scripts/deliver.sh' input 'Finished using the web site? (Click "Proceed" to continue)' sh './jenkins/scripts/kill.sh' } } } environment { CI = 'true' } }