From eea35f109fa76727ae1f605c9e6c3df991ab8901 Mon Sep 17 00:00:00 2001 From: Ravi Date: Thu, 22 Jun 2023 20:20:38 +0530 Subject: [PATCH] Delete Jenkinsfile --- Jenkinsfile | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 6ddad392..00000000 --- a/Jenkinsfile +++ /dev/null @@ -1,45 +0,0 @@ -pipeline { - agent any - - stages { - stage('Sonar Analysis') { - steps { - echo 'Testing..' - sh 'cd webapp && sudo docker run --rm -e SONAR_HOST_URL="http://18.224.11.74:9000" -e SONAR_LOGIN="sqp_ab0ee98afd2e65f18a1d8fff298cfea90c80406e" -v ".:/usr/src" sonarsource/sonar-scanner-cli -Dsonar.projectKey=lms' - } - } - stage('Build') { - steps { - echo 'Building..' - sh 'cd webapp && npm install && npm run build' - } - } - stage('Release') { - steps { - script { - echo "Releasing.." - def packageJSON = readJSON file: 'webapp/package.json' - def packageJSONVersion = packageJSON.version - echo "${packageJSONVersion}" - sh "zip webapp/dist-${packageJSONVersion}.zip -r webapp/dist" - sh "curl -v -u admin:Admin123* --upload-file webapp/dist-${packageJSONVersion}.zip http://18.224.11.74:8081/repository/lms/" - } - } - - } - stage('Deploy') { - steps { - script { - echo "Deploying.." - def packageJSON = readJSON file: 'webapp/package.json' - def packageJSONVersion = packageJSON.version - echo "${packageJSONVersion}" - sh "curl -u admin:Admin123* -X GET \'http://18.224.11.74:8081/repository/lms/dist-${packageJSONVersion}.zip\' --output dist-'${packageJSONVersion}'.zip" - sh 'sudo rm -rf /var/www/html/*' - sh "sudo unzip -o dist-'${packageJSONVersion}'.zip" - sh "sudo cp -r webapp/dist/* /var/www/html" - } - } - } -} -} \ No newline at end of file