Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi2krishna committed May 19, 2023
1 parent 127ac1b commit ee1d2a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ pipeline {
stage('Sonar Analysis') {
steps {
echo 'Testing..'
sh 'cd webapp && sudo docker run --rm -e SONAR_HOST_URL="http://13.92.5.110:9000" -e SONAR_LOGIN="sqp_cab9202255bd4cf50f3dbba65bb5aaef79ed00fa" -v ".:/usr/src" sonarsource/sonar-scanner-cli -Dsonar.projectKey=lms'
//sh 'cd webapp && sudo docker run --rm -e SONAR_HOST_URL="http://13.92.5.110:9000" -e SONAR_LOGIN="sqp_cab9202255bd4cf50f3dbba65bb5aaef79ed00fa" -v ".:/usr/src" sonarsource/sonar-scanner-cli -Dsonar.projectKey=lms'
}
}

stage('Build LMS') {
steps {
echo 'Building Artifacts..'
sh 'cd webapp && npm install && npm run build'
//sh 'cd webapp && npm install && npm run build'
}
}

Expand All @@ -25,8 +25,8 @@ pipeline {
//def data = readFile(file: 'webapp/package.json')
//println(data)
echo 'Store Artifacts....'
sh 'cd webapp && zip dist-${packageJSONVersion}.zip -r dist'
sh 'cd webapp && curl -v -u admin:Admin123* --upload-file dist-${packageJSONVersion}.zip http://13.92.5.110:8081/repository/lms/'
sh 'cd webapp && zip dist-'${packageJSONVersion}'.zip -r dist'
//sh 'cd webapp && curl -v -u admin:Admin123* --upload-file dist-${packageJSONVersion}.zip http://13.92.5.110:8081/repository/lms/'
}

}
Expand Down

0 comments on commit ee1d2a9

Please sign in to comment.