Microsoft Azure DevOps Sample Yaml Pipeline
https://learn.microsoft.com/en-us/azure/devops/pipelines/ecosystems/java?view=azure-devops
Microsoft Sample Github Java Code https://github.com/MicrosoftDocs/pipelines-java
Common Errors:
If you get below errors when running pipeline,
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock:
Then execute below commands in the Jenkins EC2 machine
Solution:
Run the following command to add the Jenkins user to the Docker group:
sudo usermod -aG docker jenkins
After adding the user to the docker group, you must restart Jenkins for the changes to take effect:
sudo systemctl restart jenkins
You can verify if the user was added to the group by running:
groups jenkins
SonarQube Documentation https://docs.sonarsource.com/sonarqube-server/9.9/devops-platform-integration/azure-devops-integration/
SonarQube pipeline https://dev.azure.com/june2024devops/JavaMaven/_apps/hub/ms.vss-ciworkflow.build-ci-hub?_a=edit-build-definition&id=22