avoid deprecated API
Merge branch 'deprecations'

Conflicts:
	job-dsl-plugin/src/main/groovy/javaposse/jobdsl/plugin/JenkinsJobManagement.java