sunakan / notes-about-circleci

MIT License
0 stars 0 forks source link

Authoring Reusable Commands #3

Closed sunakan closed 5 years ago

sunakan commented 5 years ago

https://circleci.com/docs/2.0/reusing-config/#authoring-reusable-commands

sunakan commented 5 years ago
# Authoring Reusable Commands

version: 2.1

commands:
  sayhello:
    description: "CIでもHelloWorldサンプルがあるなんて!!"
    parameters:
      to:
        type: string
        default: "Hello World"
    steps:
      - run: echo << parameters.to >>
sunakan commented 5 years ago

Error

#!/bin/sh -eo pipefail
# Error calling workflow: 'workflow'
# Cannot find a definition for job named build
# 
# -------
# Warning: This configuration was auto-generated to show you the message above.
# Don't rerun this job. Rerunning will have no effect.
false
Exited with code 1
sunakan commented 5 years ago

ちょっともっと前にやったほうがよさげなHelloworldがあったためそれをやる

sunakan commented 5 years ago

5 のおかげだいたいわかった。

orbに使える再利用可能なオーサリングコマンドってことと解釈

ってことで閉じる