Skip to content

Jenkins

Jenkins 是开源的自动化服务器。

Pipeline

groovy
pipeline {
    agent any
    
    stages {
        stage('Build') {
            steps {
                sh 'npm install'
                sh 'npm run build'
            }
        }
        
        stage('Test') {
            steps {
                sh 'npm test'
            }
        }
        
        stage('Deploy') {
            steps {
                sh 'npm run deploy'
            }
        }
    }
}

特性

  • 持续集成
  • 持续部署
  • 丰富的插件生态
  • 分布式构建