Answer the question
In order to leave comments, you need to log in
How to push changes to git via jenkins?
The project has routines in which data is simply collected from the database with a simple select, in order to later put it in a file, send it to git, in order to use it in the future.
The question is how to implement this in jenkins?
After all, as I understand it, he can only do pull, but not commit and push.
Answer the question
In order to leave comments, you need to log in
Well at least you can just do bash
git add .
git commit -m '${env.BUILD_NUMBER}'
git push origin ${env.target_branch}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question