adobe / adobe/aio-cli-plugin-cloudmanager

pipeline:create-execution: Write execution id to stdout

オープン
#224 コメント 11 件 リアクション 0 件 担当者 0 名 GitHub で見る
help wanted
主要言語
JavaScript
スター
50
フォーク
36
PR マージ指標
30日以内にマージされた PR はありません

説明

It is useful to have the id of the newly created execution id available in the stdout (for non-interactive use cases).
This is not the case for https://github.com/adobe/aio-cli-plugin-cloudmanager/blob/b95ae82604c89f2bf8512c36cb7d5ca023dc1864/src/commands/cloudmanager/pipeline/create-execution.js#L35 as the spinner is overwriting output in stdout.

The only way to get hold of the output is via the {{-a}} option: https://github.com/wblachowski/cm-jenkins-helpers/blob/7762702130cec073abddef51eb4268a8d28465bd/jenkins-config/pipelines/pipeline-cm-deploy.Jenkinsfile#L14

The return value of of the run method is not evaluated. A table should be emitted similar to what is done in https://github.com/adobe/aio-cli-plugin-cloudmanager/blob/b95ae82604c89f2bf8512c36cb7d5ca023dc1864/src/commands/cloudmanager/execution/get-step-details.js#L42. That way both json and regular format could be supported.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start in src/commands/cloudmanager/pipeline/create-execution.js at the execution creation flow and compare its output handling with src/commands/cloudmanager/execution/get-step-details.js. Check how the run method's return value is currently handled; done means the new execution id is available on stdout without spinner interference, with both regular and JSON output supported.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
cli
issue の種類
機能追加
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
50/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。