This code can come back, IMO, after @svanoort and I fix the unpleasant/broken
tight-coupling between this Jenkinsfile and Groovy code floating around in the
jenkinsci/packaging repository
Now that we're using sh2ju for installer tests and not failing the
build for test failures, instead going unstable, let's re-enable
installer tests for 2.0.
BuildDiscarderProperty was moved to core from Pipeline, but not in
time for the 1.642 LTS line. So you need to explicitly use the fully
qualified class name when using it as long as you might be running on
1.642 or earlier LTSes.
More work to do - currently, we're not including the Acceptance Test
Harness here, but that may change - it takes a really, really long
time. We're still waiting for
https://github.com/jenkinsci/packaging/pull/34 to get merged and are
using a branch for packaging for the time being. And a lot of
packaging tests are failing - see
https://issues.jenkins-ci.org/issues/?filter=15257 for possible
related JIRAs.