|
@@ -6,12 +6,6 @@ pipeline {
|
6
|
6
|
}
|
7
|
7
|
|
8
|
8
|
stages {
|
9
|
|
- stage('Checkout') {
|
10
|
|
- steps {
|
11
|
|
- checkout scm
|
12
|
|
- }
|
13
|
|
-}
|
14
|
|
-
|
15
|
9
|
stage('Setup') {
|
16
|
10
|
steps {
|
17
|
11
|
script {
|
|
@@ -39,7 +33,6 @@ pipeline {
|
39
|
33
|
process_folder('./app', 'app')
|
40
|
34
|
process_folder('./report', 'report')
|
41
|
35
|
process_folder('./form', 'form')
|
42
|
|
- commitChanges()
|
43
|
36
|
}
|
44
|
37
|
}
|
45
|
38
|
}
|
|
@@ -81,20 +74,3 @@ def process_folder(folder, import_type) {
|
81
|
74
|
}
|
82
|
75
|
}
|
83
|
76
|
}
|
84
|
|
-
|
85
|
|
-def commitChanges() {
|
86
|
|
- // Configure Git
|
87
|
|
- sh """
|
88
|
|
- git config user.email "jenkins@bizgaze.in"
|
89
|
|
- git config user.name "jenkinstest"
|
90
|
|
- """
|
91
|
|
-
|
92
|
|
- // Check for changes
|
93
|
|
- sh """
|
94
|
|
- git pull origin ${env.BRANCH_NAME}
|
95
|
|
- git add .
|
96
|
|
- git commit -m "Moved processed XML files to backup"
|
97
|
|
- git push --force https://jenkinstest:Bizgaze123@code.bizgaze.com/devops.bizgaze/imports.git ${env.BRANCH_NAME}
|
98
|
|
- """
|
99
|
|
-}
|
100
|
|
-
|