I want to force following scenario in Jenkins:
For future readers, Tim's comment above is the solution:
import jenkins.model.Jenkins