0
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 3 years have passed since last update.

DigdagでPowerShellを使いたい

Last updated at Posted at 2020-10-30

Windows10にDigdagを入れてPowerShellを呼ぶようメモ。
公式ドキュメントにある書き方だと自分の環境では動かなかったが、この書き方で動いた。

ps.dig
_export:
  sh:
    shell: ["powershell.exe", "-"]

+task1:
  sh>: powershell.exe -ExecutionPolicy RemoteSigned .\test.ps1
+task2:
  sh>: powershell.exe echo "hello digdag!"

下の書き方でも動いたが、Powershell Core(powershell.exeではなくpwsh.exe)を使うよう促すメッセージがログに表示されるのでやめた。
なぜ上の書き方で表示されないのかは不明。

_export:
  sh:
    shell: ["powershell.exe", "-ExecutionPolicy", "RemoteSigned"]

+task1:
  sh>: .\test.ps1

参考文献

0
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
0
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?