Skip to content

Instantly share code, notes, and snippets.

View RavianXReaver's full-sized avatar
:octocat:
Working from home

RavianXReaver RavianXReaver

:octocat:
Working from home
  • ...
  • Sri Lanka
View GitHub Profile
@RavianXReaver
RavianXReaver / Jenkins-Sonarqube-pipeline
Last active December 20, 2020 19:13
Jenkins pipeline for Sonarqube
pipeline {
agent any
stages {
stage ("SonarQube analysis") {
steps {
script{
withSonarQubeEnv('SonarQube') {
sh "/downloads/sonarqube/sonar-scanner-4.2.0.1873-linux/bin/sonar-scanner " +
"-Dsonar.projectKey=dsadasd " +
"-Dsonar.projectBaseDir=/var/lib/jenkins/workspace/CloudBot-Discord-GitJob " +
# Install these packages (use your favorite AUR tool here)
yay -S minikube-bin kubectl-bin docker-machine-driver-kvm2 libvirt qemu-headless docker-machine ebtables
# Get libvirt going
sudo systemctl enable libvirtd.service
sudo usermod -a -G libvirt $(whoami)
# This fix thanks to http://blog.programmableproduction.com/2018/03/08/Archlinux-Setup-Minikube-using-KVM/
sudo virsh net-autostart default

Keybase proof

I hereby claim:

  • I am raveenbouy on github.
  • I am ravianxreaver (https://keybase.io/ravianxreaver) on keybase.
  • I have a public key ASBhgEACtG0D0r9yuPN90tIPWJicQY5xKnc9j5mOIkt1_Ao

To claim this, I am signing this object: