-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build insignificant version when suppliyng scope, for Jenkinsfile declarative pipeline? #60
Comments
I've managed to figgure out a workaround by doing some groovy string interpolation:
I think it would be nice to treat empty string as non-specified and I believe the code responsible for this is here:
It makes Optional.ofNullable() from an empty string. It would be nice to filter empty strings props, don't you think? |
Thanks for providing all of the feedback and issues so far. Glad to have someone interested in using the plugin. I agree about changing it to treat an empty stage (probably the same for scope) as an empty Optional. I'll mark this as an enhancement to pull in in the next release. If you have time, you're certainly welcome to submit a PR. Otherwise, I'll tackle it when I do my next round of fixes to reckon. |
Hi @ajoberstar. About this issue as well, how can we only run the reckon plugin on the jenkinspipeline? Basically on our local development environment we don't want to generate .jar files with the reckon version. Only on the jenkins pipeline prior to do a release we want to use the reckon plugin. Do you have any suggestion for this behaviour? Thanks for the help. |
Hi @cduque89 , how you build the jar name is not reckon part. It's gradle part . Search the web. |
@ajoberstar : I tried to fix the bug but did not manage. It's not fixable from that place. I did not have time to look deeper into this. Sorry. |
No problem @ieugen. |
Hello,
How can I make reckon generate insignificant versions when supplying an (empty) stage ?
I'm using reckon to build continuous integration with Jenkins Pipeline via Jenkinsfile and I (believe I) need it to generate insignificant versions when not supplying a scope.
I have configured reckon like this:
And in my Jenkinsfile I have something like this:
The issue that I'm having is that with default build triggering, the stage is set to 'dev' and that creates a significant version with a tag and everything, which is not something I wish to have when building non-final versions.
I run it the build with the above configuration, this is executed:
It gives me a version like this 1.8.0-dev.1 .
I have tried not to supply the stage, or supply an empty string but it does not work:
Thank you,
p.s. You're awesome for making reckon and all the other stuff.
The text was updated successfully, but these errors were encountered: