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

Latest updates of CircleCI

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

Latest updates of CircleCI

Avatar for Noboru Kurumai

Noboru Kurumai

October 02, 2019
Tweet

More Decks by Noboru Kurumai

Other Decks in Programming

Transcript

  1. 2

  2. 3

  3. 10 8/7 Windows support now available on CircleCI • VMベースでビルド環境が起動(Machine

    Executorと同じイメージ) • OSはWindows Server 2019 Datacenter EditionのServer Core • 4 vCPU、15 GB RAM • デフォルトのシェルはPowershell。BashとCMD環境も選択可能 • Dockerエンジンも利用可能 注意事項 - Docker Layer Cachingは利用できません - コンテナはWindowsのみをサポートしています。LinuxコンテナをWindows上で動 かすことはできません。
  4. 13

  5. 22 使い方 curl -u ${CIRCLECI_TOKEN}: -X POST --header "Content-Type: application/json"

    -d '{ "parameters": { "myparam": "./myspecialdir", "myspecialversion": "4.8.2" } }' https://circleci.com/api/v2/project/${project_slug}/pipeline Project_slugは “<project_type>/<org_name>/<repo_name>”の形式で指定 <project_type>には”github”もしくは”bitbucket”、あるいは短縮形の ”gh”か”bb”を指定
  6. 23 何がうれしいのか - パイプライン全体(ワークフロー全体)をAPI経由でトリガーできる - API経由でトリガーするときにパラメタを渡すことができる - “when” を併用することでパイプラインをコントロールできる parameters:

    run_integration_tests: type: boolean default: false deploy: type: boolean default: false workflows: version: 2 integration_tests: when: << pipeline.parameters.run_integration_tests >> jobs: - mytestjob - when: condition: << pipeline.parameters.deploy >> steps: - deploy
  7. 38

  8. 39