I opened that ticket. Nothing has been done on it as far as I know.
What we do is have a Jenkins trigger job, which checks to see whether the change is a WIP. If it's not, then it triggers a job that is the "real" test job. The test is really simple:
# check that the change is not a WIP change. If it is, we don't trigger the test job.
rowCount=$(ssh -p 29418 gerrit.example.com gerrit query --format=TEXT -- change:${GERRIT_CHANGE_NUMBER} is:open -is:wip | grep "rowCount: ")
if [[ ${rowCount} = "rowCount: 0" ]]; then
# is a WIP, so don't run
TRIGGER_TEST=false
elif [[ ${rowCount} = "rowCount: 1" ]]; then
# is not a WIP, so do run
TRIGGER_TEST=true
else
echo "ERROR getting status of change ${GERRIT_CHANGE_NUMBER} - got \"${rowCount}\" - exiting"
exit 1
fi
echo "TRIGGER_TEST=${TRIGGER_TEST}" >> ${WORKSPACE}/parsed_jobname_and_parameters.properties
Note that some of that is specific to our environment.
Note also that this does not detect when a change is moved from WIP to Ready for Review - for that, our developers currently trigger the test job manually.
I'm not a java person, but I imagine that updating the Jenkins plugin for 2.15 should be straightforward.
Hope that helps
Matthew