stefan cervo
stefan cervo

Reputation: 29

jenkins: Start two jobs consecutively from gerrit event

I would like to execute two jobs separetly with prioriry order on the same gerrit event.

My constraints are:

I enabled in job 2:

But the GERRIT_REFNAME is empty in job 2.

How can I proceed ?

Upvotes: 0

Views: 142

Answers (1)

Do the following:

Job 1

Use "Trigger parameterized build on other projects" to start Job2 at the end. Do not forget to add the "Current build parameters" option.

enter image description here

Job 2

Remove the "Gerrit event" trigger option.

Upvotes: 1

Related Questions