Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

sonarqube new project after creation in gitlab

# checking if the project exists
    - export is_project_existing=$(curl https://{$SONAR_TOKEN}@sonarcloud.io/api/projects/search?organization=myorganization | grep -w  $CI_PROJECT_NAME)
    - |
        if [[ ! -z $is_project_existing ]]; then	
          echo "Project exists on sonarcloud, proceeding to analysis"
        else 
          # creating new project
          curl -X POST https://{$SONAR_TOKEN}@sonarcloud.io/api/projects/create -d "name=$CI_PROJECT_NAME&project=myorganization_$CI_PROJECT_NAME&organization=myorganization"
        fi
Comment

PREVIOUS NEXT
Code Example
Shell :: coder.com docker install 
Shell :: tar -cxvf other directory 
Shell :: como descargar flask en ubuntu 21.04 
Shell :: jbl bt wireless headphones not working in fedora linux 
Shell :: github url not showing 
Shell :: bnmbmbmmbjhgnbhgmv nbhgmvnb 
Shell :: how to show lines on cat command 
Shell :: bash multiplication of arguments 
Shell :: There is no application installed for “shared library” files 
Shell :: shell get given line 
Shell :: powershell test-path remote computer 
Shell :: troll someone 
Shell :: how to check bit file private key 
Shell :: mpi sintel dataset download from command line 
Shell :: docker-machine –version 
Shell :: linssid linux mint 20 
Shell :: install extra requires 
Shell :: powershell iif 
Shell :: D install script 
Shell :: makefile shell if 
Shell :: Save Resources in K8s, Delete Failed Pods 
Shell :: take files from different branch to different branch 
Shell :: show specific lines in file linux 
Shell :: ping port linux 
Shell :: git change name 
Shell :: shell less bin 
Shell :: sudo bash 
Shell :: shell script variable multiple lines 
Shell :: Jager setup on Docker 
Shell :: How to run DGraph docker image 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =