使用blue ocean生成pipeline

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'
  }
}

 

posted @ 2021-02-20 11:36  littlevigra  阅读(179)  评论(0编辑  收藏  举报