DeejUK
DeejUK

Reputation: 13481

Jenkins - Promoted Builds & Git

Is it possible to get the Jenkins Promoted Builds plugin to invoke a second job, which in turn builds from the commit that was promoted, rather than from the latest revision?

So the flow would be something like this:

Upvotes: 3

Views: 1865

Answers (1)

DeejUK
DeejUK

Reputation: 13481

There's a bug in Jenkins that prevents this from being possible.

Normally one would:

  • Install Promoted Builds plugin
  • Install Parameterized Trigger
  • Configure Job Dev to be promotable, specifying "Trigger/call builds on other projects", then setting parameter of "Pass-through Git Commit that was built"

Sadly there appears to be a bug in the Promoted Builds plugin that means not all data are passed. There exists a fix, but it appears to be awaiting integration.

I've raised a ticket in Jenkins' JIRA which y'all should vote on if you're also afflicted by this issue.

Upvotes: 3

Related Questions