Skip to content

Commit

Permalink
artifact upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi2krishna committed May 12, 2023
1 parent 3a01b9e commit 43c77ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ pipeline {
sh 'cd webapp && sudo docker container run --rm -e SONAR_HOST_URL="http://20.172.187.108:9000" -e SONAR_LOGIN="sqp_cae41e62e13793ff17d58483fb6fb82602fe2b48" -v ".:/usr/src" sonarsource/sonar-scanner-cli -Dsonar.projectKey=lms'
}
}
stage('Deploy') {
stage('Release') {
steps {
echo 'Deploying....'
echo 'Release Nexus'
sh 'cd webapp && zip dist-${BUILD_NUMBER}.zip -r dist'
sh 'cd webapp && curl -v -u admin:Admin123* --upload-file dist-${BUILD_NUMBER}.zip http://20.172.187.108:8081/repository/lms/'
}
}
}
Expand Down

0 comments on commit 43c77ff

Please sign in to comment.