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
Post a Comment