package/ci: fix and clean up Jenkins configurations.

Plugins obviously don't differentiate between deprecated/non-deprecated
build, so that variable is not needed. But the dependencies are
different, so the separate axes must remain.

Also for some weird reason the static/dynamic axis was never passed to
CMake.