A
A
akaaxel2015-08-21 10:00:46
Software testing
akaaxel, 2015-08-21 10:00:46

How to run tests from a specific commit in jenkins?

In general, no regression has been done before. Now it turned out that at some point everything began to fall. The essence of the problem: there is a repository on the git, let's say there are 40 commits. We need to run the tests starting from the 20th commit, and so that they automatically go further until they reach the last one

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
X-, 2015-09-15
@akaaxel

If we are talking about a git repository.
The last 20 commits from the develop branch with increasing date can be obtained like this:
git log -20 --branches=develop --date-order --reverse --format=format:%H
then in a loop for each commit you run a test task.
Read more here: git-scm.com/docs/git-log

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question