cancel
Showing results for 
Search instead for 
Did you mean: 

readCoreCommerceRepository FAILED

0 Kudos
534

I was able to follow the instructions in the blog Getting Started with SAP Commerce Cloud to deploy the sample they provide in the blog. I am now trying to deploy our own code and running into the following error:

/opt/workspace/build/customer-project/.git/objects/pack
/opt/workspace/build/customer-project/.git/objects/pack/pack-5c84f1b933b3164b8fb230fb63a72abd5cca0fad.pack
/opt/workspace/build/customer-project/.git/objects/pack/pack-5c84f1b933b3164b8fb230fb63a72abd5cca0fad.idx
Overall progress: 1%
2020-02-05T20:27:44.601Z Task task ':cloneCustomerProject' finished
:cloneCustomerProject (Thread[Daemon worker,5,main]) completed. Took 9.819 secs.
:readCoreCommerceRepository (Thread[Execution worker for ':',5,main]) started.

> Task :readCoreCommerceRepository FAILED
2020-02-05T20:27:44.605Z Task task ':readCoreCommerceRepository' started
Caching disabled for task ':readCoreCommerceRepository' because:
  Build cache is disabled
Task ':readCoreCommerceRepository' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
Core Commerce Home not detected
2020-02-05T20:27:44.613Z Task task ':readCoreCommerceRepository' finished
:readCoreCommerceRepository (Thread[Execution worker for ':',5,main]) completed. Took 0.009 secs.
:readRepository (Thread[Execution worker for ':',5,main]) started.

> Task :readRepository
Overall progress: 1%
2020-02-05T20:27:44.625Z Task task ':readRepository' started
Caching disabled for task ':readRepository' because:
  Build cache is disabled
Task ':readRepository' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
Execution stopped by some action with message: Skipping execution, because other tasks failed: readCoreCommerceRepository
Overall progress: 1%
2020-02-05T20:27:44.667Z Task task ':readRepository' finished
:readRepository (Thread[Execution worker for ':',5,main]) completed. Took 0.052 secs.

FAILURE: Build failed with an exception.

The best I can figure is that I might have the Code Repository configured correctly, here is what it looks like:

├── core-customize/
│   ├── hybris/
│   │   ├── bin/
│   │   │   └── custom/
│   │   │       └── chd/
│   │   └── config/
│   │       ├── backup/
│   │       ├── customize/
│   │       ├── environments/
│   │       │   ├── accstorefront.properties
│   │       │   ├── api.properties
│   │       │   ├── backoffice.properties
│   │       │   ├── common.properties
│   │       │   ├── local-dev.properties
│   │       │   ├── local-prod.properties
│   │       │   └── local-stage.properties
│   │       ├── languages/
│   │       ├── licence/
│   │       │   ├── hybrislicence.jar
│   │       │   └── installedSaplicenses.properties
│   │       ├── local.properties
│   │       ├── local.properties-template
│   │       ├── localextensions.xml
│   │       ├── solr/
│   │       │   └── instances/
│   │       └── tomcat/
│   │           ├── README.txt
│   │           ├── conf/
│   │           └── tomcat_context.tpl
│   └── manifest.json
└── scripts/
    ├── addoninstall.cmd*
    ├── addoninstall.sh*
    └── dbserver.sh*

Yep, I have an extra directory at the top level, scripts, I assume that is not an issue.

One thing that I am a bit confused about is how to setup the manifest's locations. According to how I am reading General Rules for Paths Declared in a Manifest the locations in the useConfig section of the manifest file should NOT start with a forward slash. Is that correct? Here is what I have right now:

{
  "commerceSuiteVersion": "1905",
  "extensions": [],
  "useConfig": {
    "properties": [
      {
        "location": "hybris/config/environments/local-dev.properties",
        "persona": "development"
      },
      {
        "location": "hybris/config/environments/local-stage.properties",
        "persona": "staging"
      },
      {
        "location": "hybris/config/environments/local-prod.properties",
        "persona": "production"
      },
      {
        "location": "hybris/config/environments/common.properties"
      },
      {
        "aspect": "accstorefront",
        "location": "hybris/config/environments/accstorefront.properties"
      },
      {
        "aspect": "api",
        "location": "hybris/config/environments/api.properties"
      },
      {
        "aspect": "backoffice",
        "location": "hybris/config/environments/backoffice.properties"
      }
    ],
    "extensions": {
      "location": "hybris/config/localextensions.xml",
      "exclude": [ "powertools" ]
    }
  },
  "useCloudExtensionPack": true,
  "properties": [
    {
      "key": "setup.siteoverride",
      "value": "true"
    },
    {
      "key": "lang.packs",
      "value": "en"
    }
  ],
  "storefrontAddons": [
    {
      "addon": "b2bacceleratoraddon",
      "storefront": "chdstorefront",
      "template": "yacceleratorstorefront"
    },
    {
      "addon": "commerceorgaddon",
      "storefront": "chdstorefront",
      "template": "yacceleratorstorefront"
    },
    {
      "addon": "assistedservicestorefront",
      "storefront": "chdstorefront",
      "template": "yacceleratorstorefront"
    },
    {
      "addon": "smarteditaddon",
      "storefront": "chdstorefront",
      "template": "yacceleratorstorefront"
    },
    {
      "addon": "ordermanagementaddon",
      "storefront": "chdstorefront",
      "template": "yacceleratorstorefront"
    },
    {
      "addon": "orderselfserviceaddon",
      "storefront": "chdstorefront",
      "template": "yacceleratorstorefront"
    },
    {
      "addon": "ordermanagementwebservices",
      "storefront": "chdstorefront",
      "template": "yacceleratorstorefront"
    }
  ],
  "aspects": [
    {
      "name": "backoffice",
      "webapps": [
        {
          "name": "hac",
          "contextPath": "/hac"
        },
        {
          "name": "mediaweb",
          "contextPath": "/medias"
        },
        {
          "name": "backoffice",
          "contextPath": "/backoffice"
        }
      ]
    },
    {
      "name": "accstorefront",
      "webapps": [
        {
          "name": "hac",
          "contextPath": "/hac"
        },
        {
          "name": "mediaweb",
          "contextPath": "/medias"
        },
        {
          "name": "chdstorefront",
          "contextPath": ""
        },
        {
          "name": "acceleratorservices",
          "contextPath": "/acceleratorservices"
        }
      ]
    },
    {
      "name": "backgroundProcessing",
      "properties": [],
      "webapps": [
        {
          "name": "hac",
          "contextPath": "/admin"
        },
        {
          "name": "mediaweb",
          "contextPath": "/medias"
        }
      ]
    }
  ]
}

Accepted Solutions (0)

Answers (2)

Answers (2)

bala_sure
Member
0 Kudos

The same issue which we are facing this after the latest upgrade yesterday. Any workaround or fix is available for this?

alex_alvarez
Product and Topic Expert
Product and Topic Expert
0 Kudos

The main issue seems to be:

Core Commerce Home not detected

have a look at the following template, it can help as a starting point:

https://github.com/sap-commerce-tools/ccv2-project-template/tree/master/core-customize

0 Kudos

I am very sorry to say that this template code isn't helping me. I ASSUME the Core Commerce Home is the storefront accelerator, but I am not 100% sure, it could also mean the commerce core, I simply don't know. I am totally stumped, is there any chance you can provide a bit more information on what exactly I should be looking at