Vertaa committeja
2 Commitit
3659b2904f
...
bfab96fef4
| Tekijä | SHA1 | Päivämäärä | |
|---|---|---|---|
| bfab96fef4 | |||
| 59afa4c31f |
Vendored
+18
@@ -33,6 +33,7 @@ pipeline {
|
|||||||
process_folder('./app', 'app')
|
process_folder('./app', 'app')
|
||||||
process_folder('./report', 'report')
|
process_folder('./report', 'report')
|
||||||
process_folder('./form', 'form')
|
process_folder('./form', 'form')
|
||||||
|
commitChanges()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -74,3 +75,20 @@ def process_folder(folder, import_type) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def commitChanges() {
|
||||||
|
// Configure Git
|
||||||
|
sh """
|
||||||
|
git config user.email "jenkins@bizgaze.in"
|
||||||
|
git config user.name "jenkinstest"
|
||||||
|
"""
|
||||||
|
|
||||||
|
// Check for changes
|
||||||
|
sh """
|
||||||
|
git pull
|
||||||
|
git add .
|
||||||
|
git commit -m "Moved processed XML files to backup"
|
||||||
|
git push https://jenkinstest:Bizgaze123@code.bizgaze.com/devops.bizgaze/imports.git ${env.BRANCH_NAME}
|
||||||
|
"""
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Viittaa uudesa ongelmassa
Block a user