Jenkins plugin release build number is adding -rc

Hi,

We raised pull request in Jenkins with respect to our final code changes and while creating the build number it is adding -rc and all number as a suffix.
Till 4.0.7 version it is creating build number perfectly fine but from 4.0.8 onwards, it is adding -rc
below is the release link Leapwork | Jenkins plugin

below is the code repo link GitHub - jenkinsci/leapwork-plugin: Leapwork Integration with Jenkins

Kindly assist

@mawinter69 Kindly assist if you can share some insights about this

I’ve submitted a pull request that proposes the necessary change and includes a detailed description explaining why the change is needed.

For reference, the explanation in that pull request includes:

The “Automated release” documentation includes a section that describes the automated release configuration used in this repository. The section is “Manually controlled prefix (optional)” and it includes instructions that the .mvn/maven.config file must include the line:

-Dchangelist.format=%d.v%s

The .mvn/maven.config in the repository does not include that line, so Maven is using the default value of the changelist.format.

A little earlier in that page, it includes the instructions so that a developer can check the version number pattern that they have selected. The commands to check that are:

mvn validate
mvn validate -Dset.changelist -Dignore.dirt

When I run mvn validate on this repository before this change, one of the output lines is:

[INFO] Building Leapwork 4.0.12-SNAPSHOT

When I run mvn validate -Dset.changelist -Dignore.dirt on this repository before this change, one of the output lines is:

[INFO] Building Leapwork 4.0.12-rc93.784bbceeef27

That output is because the changelist.format is not set in the .mvn/maven.config file.

After I added the changelist.format, the output is now:

[INFO] Building Leapwork 4.0.12-93.v784bbceeef27
1 Like

Thank you !! it is working fine as expected locally. Once I will raise pull request at jenkins, hope it will work there too.

The description explains why it works locally for you. Local development does not use the flag to set the changelist, (-Dset.changelist) so you won’t see it locally unless you include that argument in your Apache Maven command line.