Jenkins Pipelines: Use jx-release-version

24 views
Skip to first unread message

Sverre Moe

unread,
Mar 7, 2019, 2:58:40 PM3/7/19
to Jenkins Users
I read the CloudBees blog on jx-release-version.
x-release-version calculates the next version number based on the current Git tag, or current specified version on pom.xml/Makefile

It looks interesting to determine next version. Is it only available for Jenkins X?

We use something like automatic versioning based on the number of git commits.
Current version v1.0.0
Add 5 commits, push and next version is v1.0.5
This is because we didn't want to make bump commits any more.
With this jx-release-version we could get the same advantage, but not get the next version minor as a commit count from the last.

Can this tool be used with standard Jenkins installation and our Pipeline scripts?

What about Gradle, automake and cmake? Is there plans to support these also?
build.gradle
version = 1.0.0-SNAPSHOT
CMakeLists.txt
project(application VERSION 1.0.0)
AC_INIT(application, 1.0.0)

Our projects with automake (configure.ac) and cmake (CMakeLists.txt) does not use the SNAPSHOT postfix on version. It is only used for Java projects with Maven and Gradle.

Sverre Moe

unread,
May 20, 2019, 5:54:49 PM5/20/19
to Jenkins Users
I created a number of Issues on jx-release-version in GitHub.

Just submitted a PR for an issue I reported:

I also started to implement support for CMake, Automake and Gradle. The first two are finished and commited (not pushed yet), but I am waiting for my PR to be merged before I submit more PRs.

Baptiste Mathus

unread,
May 31, 2019, 7:15:16 AM5/31/19
to jenkins...@googlegroups.com
Note that Jenkins-X generally uses different community channels than Jenkins.

From a cursory reading, it looks to me running the Maven release plugin (for Java projects like in the article from Jose) in batch mode would achieve this too. But again, cursory read so I might have missed specifics.

Cheers

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/99b2d910-1883-4f65-a39e-792bab688b9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages