[英]promoting harvest package using jhsdk.jar
i am trying to connect to All Fusion Harvest using Java using jhsdk.jar, 我正在尝试使用jhsdk.jar使用Java连接到All Fusion Harvest,
I can able to connect to login into harvest and browse packages. 我可以连接以登录到Harvest和浏览包。 But when I try to promote the package the next level using the below java code,
但是,当我尝试使用以下Java代码将程序包升级到新级别时,
JCaMovePackage jPro = context.getMovePackage();
jPro.setToState("ACEDEV13.06.00.00", "Integration Test (AIT)");
jPro.execute();
I get exception. 我例外。
E03090050: ERROR: Could not get Move Package Process from Context. E03090050:错误:无法从上下文获取移动包过程。 com.ca.harvest.jhsdk.hutils.JCaHarvestException: E03090050: ERROR: Could not get Move Package Process from Context.
com.ca.harvest.jhsdk.hutils.JCaHarvestException:E03090050:错误:无法从上下文获取移动包进程。
Please help me with this, Thanks in Advance! 请帮助我,在此先谢谢!
I used promotePackage() method and the process name should be created in the Harvest SCM server. 我使用了promotingPackage()方法,并且应在Harvest SCM服务器中创建进程名称。 Same process name to be set using setProcessName("promotePackages").
使用setProcessName(“ promotePackages”)设置相同的进程名称。 It worked.
有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.