ArrayIndexOutOfBoundsException when building with msbuilder

お困りですか?

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

コミュニティに質問

症状

When bamboo executes a MSBuild plan the build log shows the following error;

Failed to execute the build 'MY-BUILD-42'
java.lang.ArrayIndexOutOfBoundsException: 1
at com.atlassian.bamboo.plugin.builder.nant.AbstractDotNetBuilder.getEnvironmentSetting(AbstractDotNetBuilder.java:360)
at com.atlassian.bamboo.command.Command.executeCommand(Command.java:61)

原因

If the plan's builder configuration sets a variable like PATH=C:\bea\;%PATH% the existing Path variable is overridden.

ソリューション

  1. Delete this variable from the build configuration and try re-running the plan.
  2. Substitute %PATH% with ${system.PATH}

最終更新日 2012 年 11 月 21 日

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

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