Bamboo can't recognize the decrypted variable while importing Specs

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問


プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

    

要約

Sometimes users need to import Java or YAML Specs generated by Bamboo containing encrypted variables into a different instance.

環境

Bamboo 6.9+

診断

The following message can be found during the Java or YAML Specs execution:

Bamboo can't recognize the decrypted variable 'variableName' because it might be imported from another Bamboo instance.

原因

Bamboo uses different encrypted keys to generate the variables. Therefore, each Bamboo instance has its own encryption key which generates the encrypted variables.

ソリューション

  1. Remove all the encrypted variables from the Specs code;
  2. Go to Specs >> Bamboo Specs encryption and paste the value of your encrypted variables from the previous Bamboo instance (more info at Bamboo Specs encryption) You can also use Bamboo REST API (http://bamboo-server:8085/rest/api/latest/encrypt) to do this;
  3. Copy the encrypted variables generated in the previous step and add it to the Specs code;
  4. Run the Specs again.


最終更新日 2021 年 8 月 9 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.