-
Bug
-
Resolution: Not A Defect
-
Minor
-
Linux debian 7.8 x64
mercurial plugin v1.56
when running a build, mercurial plugin retrieves changelog of current branch and displays latest changes in that branch.
Building in workspace /var/lib/jenkins/jobs/it/jobs/sit/workspace [workspace] $ hg showconfig paths.default [workspace] $ hg pull --rev release pulling from /home/hg/it no changes found [workspace] $ hg update --clean --rev release 13 files updated, 0 files merged, 0 files removed, 0 files unresolved [workspace] $ hg --config extensions.purge= clean --all [workspace] $ hg log --rev . --template {node} [workspace] $ hg log --rev . --template {rev} [workspace] $ hg log --rev 5b974cd24b9c3b650392b430a0e6418aaf60edd6 changeset: 7030:5b974cd24b9c branch: release user: Justinas Urbanavicius date: Tue Aug 09 11:02:55 2016 +0300 summary: Not quoting a scalar starting with the "%" indicator character is deprecated since Symfony 3.1 and will throw a ParseException in 4.0
but the latest commit is actually not latest, the local change id displayed here is 7030, if i run in workspace:
hg id -i -n
746e3dd247cc 7031
so the the latest is being checked out, but displayed changes are tip - 1
projects changes display the information correctly.
so currently displayed information is confusing
- is blocking
-
JENKINS-40063 Jenkins Console log shows old commit message
-
- Resolved
-
- links to
We've been getting this as well. We have to run a second job for the log to show up correctly.
After the commits to Mercurial, the first job shows that the wrong revision # and node are being used. The repository is actually at 468 when these log entries were generated:
Building remotely on DENQA03 in workspace c:\Jenkins\workspace\GDW All Tests - PROD (Run1)
{node}[GDW All Tests - PROD (Run1)] $ hg showconfig paths.default
[GDW All Tests - PROD (Run1)] $ hg pull --rev default
pulling from http://denqa01:8000/GDWTestAutomation
searching for changes
adding changesets
adding manifests
adding file changes
added 8 changesets with 14 changes to 11 files
(run 'hg update' to get a working copy)
[GDW All Tests - PROD (Run1)] $ hg update --clean --rev default
11 files updated, 0 files merged, 0 files removed, 0 files unresolved
[GDW All Tests - PROD (Run1)] $ hg log --rev . --template
[GDW All Tests - PROD (Run1)] $ hg log --rev . --template {rev}
[GDW All Tests - PROD (Run1)] $ hg log --rev 781104b8b0c9a4ca4188f347e84407e926ab873f
changeset: 460:781104b8b0c9
user: xxxx@xxxx.com
date: Fri Aug 26 08:43:19 2016 -0600
summary: Comment From Rev 460
When we re-run the job, we see that the local repository had already been updated to the current - but now the plugin documents the correct revision:
Building remotely on DENQA03 in workspace c:\Jenkins\workspace\GDW All Tests - PROD (Run1)
[GDW All Tests - PROD (Run1)] $ hg showconfig paths.default
[GDW All Tests - PROD (Run1)] $ hg pull --rev default
pulling from http://denqa01:8000/GDWTestAutomation
no changes found
[GDW All Tests - PROD (Run1)] $ hg update --clean --rev default
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
[GDW All Tests - PROD (Run1)] $ hg log --rev . --template {node}
[GDW All Tests - PROD (Run1)] $ hg log --rev . --template
{rev}[GDW All Tests - PROD (Run1)] $ hg log --rev 16165c769661e9a6a26bc0fcafcb90fbf988a8ce
changeset: 468:16165c769661
tag: tip
parent: 467:8ae5f7410737
parent: 460:781104b8b0c9
user: xxx@xxx.com
date: Fri Aug 26 11:53:13 2016 -0600
summary: Merge