2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Werckerを使用する際にはまったこと

2
Last updated at Posted at 2019-11-14

Werckerって

ドキュメント少ない気がする・・・
業務で使用していてハマったことはメモしておこうと思います。
今回はカスタムステップを使用する場合のrun.shでの変数取得方法についてです。

前提

  • カスタムステップのプロジェクト名: hoge-piyo

  • カスタムステップを利用する側のプロジェクトのwercker.yml

wercker.yml
# ~省略~
steps:
  - my-wercker/hoge-piyo@1.0.0:
    project: $TEST_PROJECT #このvalueはwerckerの画面上で値を設定
# ~省略~

run.shでの取得

WERCKER_HOGE_PIYO_PROJECT
です。

つまり、、、

   +"HOGE_PIYO_(werckerのカスタムステップ名)"
   +"PROJECT(利用する側のwercker.ymlの環境変数のkey)"

注意点

  • アッパーケースでアンダーバーつなぎにすること

その他

カスタムステップを使わない場合
code: | xxxxxxxx の部分でshellを書ける

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?