How to write Gradle build currentVersion to a file How to write Gradle build currentVersion to a file jenkins jenkins