Sonarqube Configuration in Jenkins
-
Refer Here for sonarqube installation
-
Refer Here for sonarqube configuration
-
After install sonarqube Navigate to sonarqube using
http://<public-ip>:9000using credentialsusername: admin password: admin

-
Generate a token in sonarqube for jenkins to connect to sonarqube

-
Now install Sonarqube scanner plugin for jenkins

-
Now Navigate Manage Jenkins => Configure System => Sonarqube Servers

-
Refer Here for the changes in Jenkinsfile

-
Refer Here to integrate jenkins with SonarQube
-
Refer Here to integrate azure devops with SonarQube
Artifactory
- Install Artifactory using the following commands
# To determine your distribution, run lsb_release -c or cat /etc/os-release
# Example:echo "deb https://releases.jfrog.io/artifactory/artifactory-pro-debs xenial main" | sudo tee -a /etc/apt/sources.list;
wget -qO - https://releases.jfrog.io/artifactory/api/gpg/key/public | sudo apt-key add -;
echo "deb https://releases.jfrog.io/artifactory/artifactory-debs {distribution} main" | sudo tee -a /etc/apt/sources.list;
sudo apt-get update && sudo apt-get install jfrog-artifactory-oss
sudo systemctl start artifactory.service
sudo systemctl enable artifactory.service
sudo systemctl status artifactory.service
-
Refer Here for the download of artifactory opensource
-
Now navigate to artifactory using url
http://<public-ip>:8081
-
Configuring artifactory from jenkins Refer Here for the documentation
-
Once the artifacts are uploaded we can download the artifacts from any connected node by using simple
curl -u "admin:MOTHERindia@123" -O http://34.222.95.159:8081/artifactory/lt-local/com/wakaleo/gameoflife/gameoflife-web/1.0-SNAPSHOT/gameoflife-web-1.0-20210730.032620-1.war
- In some cases your organization might set the API Key
curl -H 'X-JFROG-Art-API:<API_KEY>' -O 'http(s)://<ARTIFACTORY_URL>/<REPO>/<PATH>'
- Exercise:
- Create a Declarative pipeline to push artifacts to artifactory
- How to download the latest version of a jar/war file using curl command from artificatory
