modified jenkins file
Este commit está contenido en:
+18
@@ -33,6 +33,7 @@ pipeline {
|
||||
process_folder('./app', 'app')
|
||||
process_folder('./report', 'report')
|
||||
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 checkout ${env.BRANCH_NAME}
|
||||
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}
|
||||
"""
|
||||
}
|
||||
|
||||
Referencia en una nueva incidencia
Block a user