Fix bug when minor version number goes beyond 9

The upstream version determination might pick the wrong version if
a minor version was a prefix of another minor version. Observed when
going from EGit 5.9 to 5.10: the build would pick a JGit 5.1.* version
instead of 5.10.0 as upstream version.

Fix by including the period after the minor version in the prefix that
we check against our own version. Since "5.1." is not a prefix of
"5.10.", this will now pick the correct upstream version.

Change-Id: I0d8af8f938ac9f56448679badd1557de3d2dd8de
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
1 file changed
tree: 65c9bb19d40161e50c3831fdebdad3c2421a7ad3
  1. .classpath
  2. .gitignore
  3. .project
  4. .settings/
  5. LICENSE
  6. README.md
  7. src/
  8. vars/
README.md

EGit Jenkins Pipelines

This repository contains the EGit Jenkins pipeline library.

For general information about Jenkins pipeline shared libraries see the Jenkins documentation.

Jenkins pipelines are written in Groovy; for development in Eclipse it may help to install the Groovy Development Tools. Be aware, though, that GDT patches the JDT Java compiler; a particular version of GDT thus works only with a particular version of JDT. If you use an Eclipse I-build (nightly development build for the next release), GDT will fail to install.

The library is intended to be used for the Jenkins builds of the egit/egit and the egit/egit-github repositories.

It provides several kinds of general pipelines that can be configured:

  • verifyBuild is a simple pipeline that builds and runs the tests for a Gerrit patch set.
  • productBuild is intended to be run when a Gerrit patch set is submitted and builds a full distribution (nightly or stable build).

uiNode encapsulates the general Jenkins slave setup to run a build including UI tests on a JIRO node.

Directory src contains auxiliary Groovy classes encapsulating generally useful operations.

License

The content of this repository is licensed under the EPL 2.0.

SPDX-License-Identifier: EPL-2.0