更新セットの自動化

Masayoshi Kishi
Tera Contributor

初歩的な質問の投稿、失礼いたします。

 

現在、運用改善として、更新セットの適用までの自動化を検討しています。

その中で、CICD-Spokeを使おうと思い、以下のURLをベースにサンプルを作っています。

【参考】

https://sapphirenow.dev/post/alm-part-1/#steps-using-the-retrieve-subflows-and-actions

 

その中で、「Retrieve Update Set with Instance ID action」のアクションがうまく動かず、ご存じの方いたら何が誤っているのかご教授ください。

 

〇やったこと

・前提として2つのPDIを用意して以下のように用途を分ける。

更新セット作成元インスタンス(Dev):Aインスタンス

更新セット適用先インスタンス(Prod):Bインスタンス

 

・作成物

1.Aインスタンスにadmin権限保持者のユーザー作成

2.BインスタンスのUpdate SourceにAインスタンスのURL、1で作成したユーザのIDとPWを入力

3.AインスタンスにCI/CDのロール(sn_cicd.sys_ci_automation)を保持したユーザーを作成

4.BインスタンスのCredential(Basic認証、sn_cicd.CICD)に3で作成したユーザーのIDとPWをセットする

5.Bインスタンスから「Retrieve Update Set with Instance ID action」を開き、「Test」を押下する。

 インプットパラメータは以下の通り。

 Instance URL:Aインスタンス

 Credential Alias:sn_cicd.CICD

 Instance Id:2で作成したレコードのInstance ID

 Update Set Id:Aインスタンスで作成した更新セットのsys_id

 Auto Previre:チェックあり

6.Testを実行

 

結果が404エラーとなってしまいます。

 

部品の説明とか詳しい情報などありましたらご教授いただけますでしょうか?

 

 

1件の返信1

Bhuvan
Kilo Patron

@Masayoshi Kishi 

 

https://www.servicenow.com/docs/bundle/yokohama-api-reference/page/integrate/inbound-rest/concept/ci...

 

Bhuvan_1-1759049801902.png

Can you share screenshots of Action execution logs or if you have used Postman tool to test it, share the test execution details.

 

Based on your 404 error, you are potentially passing incorrect sys ID or incorrect query parameters. Please share screenshots that can provide more information on the error and validate from the documentation link shared you are passing correct query parameters and sys ID values.

 

If this helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan