Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CI as Code の導入

Toru Furuya
May 01, 2017
31

CI as Code の導入

Toru Furuya

May 01, 2017
Tweet

Transcript

  1. “Jenkins Pipeline is a suite of plugins which supports implementing

    and integrating continuous delivery pipelines into Jenkins. Pipeline provides an extensible set of tools for modeling simple-to-complex delivery pipelines "as code"...” − https://jenkins.io/doc/book/pipeline/ 8
  2. Jenkins Pipeline 概要 • Jenkins のプラグイン • Jenkins 2.0 から利用可能

    • ビルド・テスト・リリースなどの複雑なフロー(Job)をコードで 記述できる • 条件分岐とかのロジックもかける • ブランチ毎に自動でJob作成してくれる • Dockerと相性良さそう • 無料 10
  3. pipeline { agent any stages { stage( 'Build') { steps

    { sh 'make' } } stage( 'Test'){ steps { sh 'make check ' junit 'reports/**/*.xml ' } } stage( 'Deploy') { steps { sh 'make publish ' } } } } いろいろなことができます https://jenkins.io/doc/book/pipeline/syntax/ Jenkinsfile 11
  4. 13

  5. “Blue Ocean rethinks the user experience of Jenkins. Designed from

    the ground up for Jenkins Pipeline, but still compatible with Freestyle jobs, Blue Ocean reduces clutter and increases clarity for every member of the team” − https://jenkins.io/doc/book/blueocean/ 14
  6. Jenkins Blue Ocean 概要 • Jenkins のプラグイン • Jenkins のUI/UXがモダンになる

    • v1.0.0のGA版が2017/4/5にリリースされたばかり!(現在 v1.0.1) • Pipeline Editor を使えばGUIでPipelineの作成・編集でき る • 無料 16