Closed ieugen closed 6 years ago
I'm not sure this is a good fit for reckon, because if you need to pass info from Gradle to Jenkins, you may need more than just the version.
Gradle has a built in WriteProperties task type that would clean up the Gradle piece that you're currently writing. I've used that as an approach to pass things to Jenkins before.
Thanks for the suggestion, I think it is going to be enough. If it's a common scenario, maybe a few words in the docs make sens.
Hello,
We are using Jenkinsfile to automate builds on Jenkins and also deployments to a Kubernetes cluster. How can we pass the project version from reckon to the project?
Right now we are using a gradle task that writes all the build properties to a properties file that we then load in our Jenkins file. While this works ok, it is a bit of a hack and I think it would be awesome if we can get this functionality from reckon.
One solution would be for reckon to add a small utility task that will print the project version. Having this in reckon should avoid some duplication.
Any ideas on how to better handle this?
Regards,