I have just set up C.I with Jenkins using the declarative pipepline approach. It's working fine now but I'd like to set the assembly revision number to the Build Number used by Jenkins.
I see that there's a plugin called change-assembly-version-plugin but it seems to be the old way of doing things and I'm not sure how it can be used in a Jenkinsfile.
Any pointers on how I can achieve this would be really appreciated.