I have 2 jobs (A and B). Job A points to a git repo at URL-A. Job B points to a different git repo, at URL-B.
Once job A finishes and is stable, it should trigger job B and pass the git commit hash that was used in job A's build.
What is the simplest way to achieve that?
(Job B corresponds to a script checked out from URL-B that has 2 parameters: a git commit hash and a JAR artifact that will be wrapped in a Docker image and pushed to Docker hub)