A
A
AnotherAnkor2018-05-16 18:42:46
git
AnotherAnkor, 2018-05-16 18:42:46

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

1 answer(s)
D
Dmitry Eremin, 2018-05-16
@AnotherAnkor

Well at least you can just do bash

git add .
git commit -m '${env.BUILD_NUMBER}'
git push origin ${env.target_branch}

Do you have a pipeline?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question