diff --git a/Jenkinsfile b/Jenkinsfile index c425872..250c2bc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,18 +21,16 @@ pipeline { } } - stage('Pulling, Building, and Deploying') { + stage('Build and Deploy') { steps { - sh 'cd /home/developer/backend_nam' - sh 'git pull origin main' sh 'go mod tidy' sh 'go build -o myapp' + sh 'cp myapp /home/developer/backend_nam/' } } stage('Restart Service') { steps { - // Add your deployment steps here sh 'sudo systemctl daemon-reload' sh 'sudo systemctl restart backend-nam' }