blob: ac7870bd6fb81e4d078cc47fb1d0cc8040b34f8a [file] [log] [blame]
Joey Armstrong45fe8052023-06-23 09:51:02 -04001Jenkins: Common job failures
2============================
3
4ERROR: Duplicate tag (job: version-tag_wildcard)
5-------------------------------------------------
6
7.. code:: bash
8
9 02:44:55 v4.3.3 Tagged by CORD Jenkins version-tag job: 384, for Gerrit patchset: 33916
10 02:44:55 v4.3.4 Tagged by CORD Jenkins version-tag job: 388, for Gerrit patchset: 34359
11 02:44:55 go-based project found, using v-prefixed version for git tags: v4.3.4
12 02:44:55 Version string '4.3.4' in 'VERSION' is a SemVer released version!
13 02:44:55 ERROR: Duplicate tag: v4.3.4
14 02:44:55 Build step 'Execute shell' marked build as failure
15
16FIX:
17^^^^
18
19Most VOLTHA repositories contain the file `VERISON <https://gerrit.opencord.org/plugins/gitiles/voltha-openolt-adapter/+/refs/heads/master/VERSION>`_ which contain a semantic version string for builds.
20
21Content and use of the VERSION file is documented [`here <https://docs.voltha.org/master/overview/contributing.html#versioning>`_]
22
23- Problem #1: No VERSION file included with a patch.
24
25 - If a VERSION file was not included in your patch simply add it with an incremented version string.
26
27- Problem #2: Development collision
28
29 - Periodically two devs may work in a repository at the same time.
30 - Jenkins job processing is on a first-come-first-serve-basis.
31 - When two patches are submitted for inclusion
32
33 - The first patch will be accepted.
34 - The second patch will fail with a duplicate tag.
35
36 - This is a normal development event, when it happens check the repository
37 to determine the latest VERSION string, increment the value and include
38 the VERSION file in your patch.
39 - ie: git commit --amend; git rebase; git review
40
41
42