简体   繁体   English

使用jhsdk.jar促进收获包

[英]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.

相关问题 如何使用PHP获取Harvest API中的其他联系方式 - How to get other contact details in harvest api using php 您如何使用过滤器收集 CKAN 数据集 - How can you harvest CKAN datsets using filter 在React中尝试对Harvest API进行身份验证时出现错误请求(400) - Bad Request (400) When Trying to Authenticate Harvest API in React ckanext-harvest 2.0:自动将收集的记录添加到组织中 - ckanext-harvest 2.0: automatically add harvested records to an organization 将Harvest插件与RAD 8.5一起使用-打开视角com.ca.harvest.ui.harvestPerspective时出现问题 - Using Harvest Plugin with RAD 8.5 - problems opening perspective com.ca.harvest.ui.harvestPerspective Wix 资源收集工具“Heat”。 如何收集具有动态名称的文件,例如在构建时生成的 Microsoft 运行时文件 - Wix resource harvesting tool "Heat". How to harvest files with dynamic name like Microsoft run time files generated on build 收获(时间卡应用程序)API - Harvest (timecard app) API Wix Harvest:当文件位于不同的文件夹中时,相同的组件/文件ID - Wix Harvest: Same Component/File ID when files are in different folders Python - 如何通过循环分页 API 来提取数据(Harvest) - Python - how to extract data by looping through paginated API (Harvest) Harvest API-调用未定义的方法HarvestAPI :: getActiveProjects - Harvest API-Call to undefined method HarvestAPI::getActiveProjects
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM