How do I run ant update in Hybris with only Update Running System

0 votes

I have been trying to run Ant update from the command line after building my Hybris project but it runs Update Running SystemClear hMC Configuration from DatabaseCreate essential data and Localize type.

Is there a way to run ant update command from command line so that it will only select "Update Running System"?

What parameter can I pass with ant update to only run "Update Running System" and not any other options?

Can anyone help me with this?

Jul 10, 2018 in DevOps Tools by shubham
• 7,340 points
7,162 views

1 answer to this question.

0 votes

Here is what you can try.

You can use the command -DconfigFile=<your file> : such as

ant updatesystem -Dtenant=<my tenant> -DconfigFile=path/to/my/config.json

And here is an example of the config.json

{
  "init": "Go",
  "initmethod": "update",
  "clearhmc": "true",
  "essential": "true",
  "localizetypes": "true",
  "solrfacetsearch_sample": "true",
  "hmc_sample": "true",
  "solrfacetsearchhmc_sample": "true",
  "customerreview_sample": "true",
  "voucher_sample": "true",
  "promotions_sample": "true",
  "basecommerce_sample": "true",
  "cms2_sample": "true",
  "cms2lib_sample": "true",
  "ticketsystem_sample": "true",
  "payment_sample": "true",
  "btg_sample": "true",
  "platformhmc_sample": "true",
  "commerceservices_sample": "true",
  "commercewebservicescommons_sample": "true",
  "acceleratorservices_sample": "true",
  "acceleratorcms_sample": "true",
  "yacceleratorfulfilmentprocess_sample": "true",
  "yacceleratorcore_sample": "true",
 ....
  "electronicsstore_importCoreData": [
    "yes"
  ],
  "electronicsstore_importSampleData": [
    "yes"
  ],
  "electronicsstore_activateSolrCronJobs": [
    "yes"
  ],
  "yacceleratortest_createTestData": [
    "yes"
  ],
  "yacceleratorcockpits_importCustomReports": [
    "yes"
  ]
}

As you can see it's not so easy to implement this file, as suggested in, Initializing and Updating SAP Hybris Commerce, go to the HAC once, do you configuration in the webpage and click on Dump configuration. It will give you the generated json file.

I hope the above information would be helpful for you.

answered Jul 10, 2018 by Atul
• 10,240 points

Related Questions In DevOps Tools

0 votes
1 answer

For Gradle & Spring Boot, how do I choose dependency with implementation?

Below is the answer to your question: Both ...READ MORE

answered Jun 17, 2018 in DevOps Tools by shubham
• 7,340 points
773 views
+1 vote
3 answers

How do I check and export sonarqube analysis reports in embedded db?

Browse to sonarqube web instance to access ...READ MORE

answered Jul 2, 2018 in DevOps Tools by DareDev
• 6,890 points
28,328 views
0 votes
1 answer

How do I manage code that *removes* users in chef?

No, I don't think this will prove ...READ MORE

answered Aug 6, 2018 in DevOps Tools by Damon Salvatore
• 5,980 points
647 views
0 votes
1 answer

How do I set maximum queue connection for nginx port in Windows?

Since increasing queue size did not fix your problem ...READ MORE

answered Aug 22, 2018 in DevOps Tools by Damon Salvatore
• 5,980 points
1,205 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,036 views
+2 votes
1 answer
0 votes
1 answer

How do I find OpsWorks deploy user in a recipe ?

Here is a concept which you can ...READ MORE

answered Jul 25, 2018 in DevOps Tools by Atul
• 10,240 points
888 views
0 votes
1 answer

How do I update configuration of a Cassandra cluster ?

Here is a way through which you ...READ MORE

answered Jul 26, 2018 in DevOps Tools by Atul
• 10,240 points
654 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP