DevOps Classroom Notes 30/Jul/2021

Sonarqube Configuration in Jenkins

  • Refer Here for sonarqube installation

  • Refer Here for sonarqube configuration

  • After install sonarqube Navigate to sonarqube using http://<public-ip>:9000 using credentials username: admin password: admin Preview Preview

  • Generate a token in sonarqube for jenkins to connect to sonarqube Preview Preview Preview

  • Now install Sonarqube scanner plugin for jenkins Preview

  • Now Navigate Manage Jenkins => Configure System => Sonarqube Servers Preview

  • Refer Here for the changes in Jenkinsfile Preview

  • 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 Preview

  • 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

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Wordpress Development Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube