title: Set assembly version to Jenkins build number
body: <p>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.</p>
  
  <p>I see that there's a plugin called <a href="https://wiki.jenkins.io/display/JENKINS/Change+Assembly+Version" rel="nofollow noreferrer">change-assembly-version-plugin</a> but it seems to be the old way of doing things and I'm not sure how it can be used in a Jenkinsfile.</p>
  
  <p>Any pointers on how I can achieve this would be really appreciated.</p>