From f4534edf7016afb425e192988c7bbe0cd0aa4133 Mon Sep 17 00:00:00 2001 From: areeqakbr Date: Tue, 18 Feb 2025 14:01:40 +0700 Subject: [PATCH] testing --- Jenkinsfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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' }