• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wooga / atlas-release / 10
81%

Build:
DEFAULT BRANCH: master
Ran 03 Jun 2020 09:17AM UTC
Jobs 5
Files 13
Run time 732829min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
10

push

jenkins

Fix Snapshot branchname strategy (#50)

Description
===========

The `PartialSemVerStrategy` `STAGE_BRANCH_NAME` tries to generate a
unique semver 2.0 prerelease pattern. The provided tests where mostly
written in an optimistic fashion. This patch fixes the strategy when
branch names are in use which contain unusual characters or character
combinations.

As an example:

The branchName `feature/button_01` would yield a prerelease part of:
`branch.feature.button.01` which is not semver 2 compatible. Numerical
parts are not allowed to be `0` padded. The strategy also kept hanging
characters like `-`,`+`,`_`.

This patch tries to fix this cases.

_excerpt from the tests in `ReleasePluginSpec`

```
_  | 10   | "ci"  | _  | "test/build01-"            | "1.1.0-branch.test.build.1.10"
_  | 22   | "ci"  | _  | "test/build01+"            | "1.1.0-branch.test.build.1.22"
_  | 45   | "ci"  | _  | "test/build01_"            | "1.1.0-branch.test.build.1.45"
_  | 204  | "ci"  | _  | "test/build01"             | "1.1.0-branch.test.build.1.204"
_  | 100  | "ci"  | _  | "test/build.01"            | "1.1.0-branch.test.build.1.100"
_  | 55   | "ci"  | _  | "test/build002"            | "1.1.0-branch.test.build.2.55"
_  | 66   | "ci"  | _  | "test/build.002"           | "1.1.0-branch.test.build.2.66"
_  | 789  | "ci"  | _  | "test/build000000000003"   | "1.1.0-branch.test.build.3.789"
_  | 777  | "ci"  | _  | "test/build.000000000003"  | "1.1.0-branch.test.build.3.777"
_  | 789  | "ci"  | _  | "test/build000000.000003"  | "1.1.0-branch.test.build.0.3.789"
_  | 3    | "ci"  | _  | "test/build.000000.000003" | "1.1.0-branch.test.build.0.3.3"
_  | 3    | "ci"  | _  | "release/1.00.x"           | "1.0.1-branch.release.1.0.x.3"
```

Changes
=======

![FIX] Snapshot branchname strategy

217 of 237 relevant lines covered (91.56%)

2.78 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10.1 03 Jun 2020 09:17AM UTC 0
98.06
2 10.2 03 Jun 2020 09:21AM UTC 0
98.06
3 10.3 03 Jun 2020 09:25AM UTC 0
98.06
4 10.4 25 Oct 2021 07:06AM UTC 0
81.66
5 10.5 25 Oct 2021 07:07AM UTC 0
81.66
Source Files on build 10
Detailed source file information is not available for this build.
  • Back to Repo
  • Jenkins Build #10
  • 775a39b1 on github
  • Prev Build on master (#9)
  • Next Build on master (#12)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc