Integrate SonarQube with Github and deploy code using jenkins | Community
Skip to main content
rk39193348
Level 4
September 11, 2020
Solved

Integrate SonarQube with Github and deploy code using jenkins

  • September 11, 2020
  • 1 reply
  • 2389 views

Hi all,

 

I want to run sonarqube analysis on committed code in github and push the code to aem using jenkins. This should be automated process. How can I achieve it?

 

Regards 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Theo_Pendle

Hi @rk39193348,

A while back I wrote a 4 part tutorial on how to set this up using Docker images: https://medium.com/@theopendle/github-jenkins-sonarqube-integration-for-java-maven-1-4-installation-ab4bdb53fcdd 

The tutorial will teach you step-by-step but I also uploaded the source code to GitHub: https://github.com/theopendle/docker-ci 

The end result is the following architecture (you will obviously need to adapt it to fit your environnement/network. This is what I used for my home developments):

The only stage you want to do which is not covered in that tutorial is the deployment, which can be done by uploading to AEM via the Package Manager API. You can find some example cURL commands here: https://helpx.adobe.com/lu_en/experience-manager/kb/common-AEM-Curl-commands.html#PACKAGES

 

1 reply

Theo_Pendle
Theo_PendleAccepted solution
Level 8
September 12, 2020

Hi @rk39193348,

A while back I wrote a 4 part tutorial on how to set this up using Docker images: https://medium.com/@theopendle/github-jenkins-sonarqube-integration-for-java-maven-1-4-installation-ab4bdb53fcdd 

The tutorial will teach you step-by-step but I also uploaded the source code to GitHub: https://github.com/theopendle/docker-ci 

The end result is the following architecture (you will obviously need to adapt it to fit your environnement/network. This is what I used for my home developments):

The only stage you want to do which is not covered in that tutorial is the deployment, which can be done by uploading to AEM via the Package Manager API. You can find some example cURL commands here: https://helpx.adobe.com/lu_en/experience-manager/kb/common-AEM-Curl-commands.html#PACKAGES

 

rk39193348
Level 4
September 14, 2020
I have added jenkins url in github webhook, but It is giving error 'We couldn’t deliver this payload: failed to connect'.. Can you please let me know what can be done for this?