From fa5b022c5b8b61428012dbaa091a258e3b18c93c Mon Sep 17 00:00:00 2001 From: sundayenglish Date: Tue, 29 Oct 2024 11:57:13 +0700 Subject: [PATCH] first commit --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e15a65f..a3e8891 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,19 +1,19 @@ pipeline { agent any environment { - GIT_URL = 'https://github.com/username/repository.git' - BRANCH = 'main' - DEST_DIR = '/path/to/your/deployment/folder' + GIT_URL = 'http://git.gkcorp.com.vn:16000/sundayenglish/test-project.git' + BRANCH = 'master' + DEST_DIR = '/projects/test-project' } stages { stage('Checkout Code') { steps { - echo "Code has been successfully pulled and copied to ${DEST_DIR}" + git branch: "${BRANCH}", url: "${GIT_URL}" } } stage('Copy Code to Server Directory') { steps { - echo "Code has been successfully pulled and copied to ${DEST_DIR}" + sh "cp -R * ${DEST_DIR}/" } } }