Coder Social home page Coder Social logo

carrypink / jenkinstemplateforapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from debugtalk/jenkinstemplateforapp

0.0 0.0 0.0 407 KB

Jenkins job template with build scripts for packing apps, include iOS and Android.

License: MIT License

Python 100.00%

jenkinstemplateforapp's Introduction

Overview

Jenkins job overview:

Jenkins job build page view:

开箱即用

1,添加构建脚本;

  • 在构建脚本中配置PROVISIONING_PROFILEpgyer/fir.im账号;
  • build_scripts文件夹及其文件拷贝至目标构建代码库的根目录下;
  • build_scripts提交到项目的仓库中。

除了与Jenkins实现持续集成,构建脚本还可单独使用,使用方式如下:

$ python ${WORKSPACE}/build_scripts/build.py \
    --scheme ${SCHEME} \
    --workspace ${WORKSPACE}/Store.xcworkspace \
    --sdk ${SDK}
    --configuration ${CONFIGURATION} \
    --output_folder ${WORKSPACE}/${OUTPUT_FOLDER}

需要特别说明的是,若要构建生成可在移动设备中运行的.ipa文件,则要将${SDK}设置为iphoneos;若要构建生成可在模拟器中运行的.app文件,则要将${SDK}设置为iphonesimulator

2、运行jenkins,安装必备插件;

$ nohup java -jar jenkins_located_path/jenkins.war &

3、创建Jenkins Job;

  • 在Jenkins中创建一个Freestyle project类型的Job,先不进行任何配置;
  • 然后将config.xml文件拷贝到~/.jenkins/jobs/YourProject/中覆盖原有配置文件,重启Jenkins;
  • 完成配置文件替换和重启后,刚创建好的Job就已完成了大部分配置;
  • Job Configure中根据项目实际情况调整配置,其中Git Repositories是必须修改的,其它配置项可选择性地进行调整。

4、done!

Read More ...

jenkinstemplateforapp's People

Contributors

debugtalk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.