Environment Variable

Can we take value of build / version number of the artifact to be deployed. so we make an env to take the value of build / version number and we put it on yaml configuration. so we don’t fill it manually.thankyou