cancel
Showing results for 
Search instead for 
Did you mean: 

GitHub Actions for SAP Commerce Cloud in CCV2

anilkreddy-cts
Explorer
0 Kudos
1,225

Hello Community,

Anyone here had setup GitHub Actions with SAP Commerce Cloud code repository? How are you building the code without platform?

We are trying to setup sonar cloud, codeql analysis

Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

samuelyang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Anil,

In that case, if you want to replace Jenkins altogether with GitHub Actions, you can still leverage the CCv2 automation API or CLI tools and start a build and deployment on the CCv2 automation platform from GitHub Actions.

To build and deploy SAP Commerce codes, you can either your local Dev environment or the CCv2 automation platform, GitHub Actions like Jenkins is just a cloud based CICD server for building automation pipelines, it does not support the runtime environment for SAP Commerce. You still need the SAP Commerce platform to build and deploy your Commerce codes, either locally or in the CCv2 cloud.

kai_unewisse
Active Contributor
0 Kudos

Hi,

There is a CX Works article on that with Jenkins:

https://www.sap.com/cxworks/article/2589633412/implement_continuous_delivery_with_sap_commerce_cloud...

I am using not Github for Tests and sending to sonarcloud, but it should also work there.
I assume the underlying question is, where do i get the binaries (platform) of SAP Commerce cloud?

We have a separate repo for the platform (see in the article as "Core Commerce zip" same binaries you have for your local SAP Commerce when developing) and another for the java version which is the together used for the build.


Kai

anilkreddy-cts
Explorer
0 Kudos

Hello Kai, we are have Jenkins setup but looking to eliminate the Jenkins altogether and replace with GitHub Actions.

samuelyang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Anil,

I'm not aware of the GitHub action support on the Commerce Cloud, but if you don't want to build the codes on CCv2 platform, you can integration the CCv2 Automation Engine with your local CICD pipelines through the CCv2 API or CLI tools. This way you can still leverage the static code analysis tools like sonar and codeql.

anilkreddy-cts
Explorer
0 Kudos

Thanks for the response samuel.yang, I'll be making use of CCV2 APIs or CLI tools to build and deploy in CCv2 but before going there, wanted to build the code outside CCV2 to run sonar and codeql in Github Actions (Makes use of github runners) which requires platform packages to be available in the runner.