modified jenkins file
This commit is contained in:
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 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}
|
||||||
|
"""
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user