-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
27 lines (25 loc) · 894 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
pipeline {
agent any
stages {
stage('Checkout') {
steps {
// Check out the code from your GitHub repository
checkout([$class: 'GitSCM',
branches: [[name: 'main']],
doGenerateSubmoduleConfigurations: false,
extensions: [],
submoduleCfg: [],
userRemoteConfigs: [[url: 'https://github.com/neeraj542/Personal-Finance-Tracker.git']]
])
}
}
stage('Deploy to Apache') {
steps {
// Copy the code to the Apache document root directory
bat script: '''
xcopy /s /e /y "C:\\Users\\meena_gc3wq05\\Desktop\\Personal-Finance-Tracker" "C:\\Apache24\\htdocs"
'''
}
}
}
}