Pass Git SHA1 commit id for next build(s) in Jenkins -


consider stream of jobs: - b - c

i can parameterize build b same git commit sha1 adding "pass-through git commit build" parameter in a. however, works subsequent jobs.

now, let's that

a uses project http://www.github.com/myuser/project_a

b uses project http://www.github.com/myuser/project_b

c uses project http://www.github.com/myuser/project_a

so want build c same sha1 used in a.

the way found pass sha1 b parameter different name

git_my_parameter=$git_commit 

then pass tis parameter b c

git_my_parameter =$git_my_parameter 

then in c configured git in way:

branches build    branch specifier (blank 'any')   ${git_my_parameter} 

it works have impression it's not perfect solution.

is there proper approach using git plugin?


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -