modified jenkins file

Este commit está contenido en:
2023-10-13 17:01:19 +05:30
padre a3fa085663
commit 59afa4c31f
+18
Ver fichero
@@ -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}
"""
}