This question is somehow related to Using Jenkins BUILD NUMBER in RPM spec file.
You can access the build number in a Jenkins process using the environment variable ${BUILD_NUMBER}
. But how can I use this environment variable within my Play! build.sbt
file to set rpmRelease := "..."
to the actual build number?
The RPM is built within Jenkins using the simple Shell command activator rpm:packageBin
.