IOS Continuous Integration

2019-12-09  本文已影响0人  夜阑w

Jenkins

Jenkins is a CI tool.

Install

brew update brew install jenkins

Run

brew services start jenkins
在浏览器中访问http://localhost:8080/,根据提示进行操作,直至出现Jenkins的操作界面

Creating your first Pipeline

// Jenkinsfile (Declarative Pipeline)
pipeline {
    agent any 
    stages {
        stage('Stage 1') {
            steps {
                echo 'Hello world!' 
            }
        }
    }
}

Add a webhook to the pipeline

Triggering a Jenkins build on push using GitHub webhooks

IOS

修改Jenkinsfile文件中的内容来build iOS项目

pipeline {
    agent any 
    stages {
        stage('ready') {
            steps {
                sh 'echo "ready"'
            }  
        } 
        stage('build') {
            steps {
                sh 'xcodebuild -list -project "BullsEye/BullsEye.xcodeproj"'
            }
        }
    }
}
上一篇 下一篇

猜你喜欢

热点阅读