I'm not using a Jenkinsfile, but the solution I arrived at was to have a boolean "Release" build parameter. When checked, this parameter would skip the normal CI SNAPSHOT build and initiate a release. My stages when
Source Checkout -> SNAPSHOT Build -> Stage Release -> Release Build
The "Stage Release" reads the pom and presents inputs for the build numbers.
Does that help?