Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-11991

Polling shows changes after job commits and pushes changes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • mercurial-plugin
    • None

      As of latest version of mercurial plugin (1.38) the behaviour of the plugin changed. We used to make some manuals release jobs to commit some changes (increase build number and set a tag) and push it to the origin repo. It seems that now every time after release job is executed (and commit and push happen), the plugin detects that the repo has changed and triggers another build. It was not working like that before...

      Some outputs:

      1st job (release job run manually):
      21:25:04 [workspace] $ hg showconfig paths.default
      21:25:04 [workspace] $ hg pull --rev 1_0
      21:25:04 [workspace] $ hg update --clean --rev 1_0
      21:25:04 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
      21:25:04 [workspace] $ hg log --rev . --template

      {node}
      21:25:05 [workspace] $ hg log --rev cc3b37d8df1298eabedfad328cbd4a068e27abf8
      21:25:05 [workspace] $ hg log --template "<changeset node='{node}

      ' author='

      {author|xmlescape}' rev='{rev}' date='{date}'><msg>{desc|xmlescape}</msg><added>{file_adds|stringify|xmlescape}</added><deleted>{file_dels|stringify|xmlescape}</deleted><files>{files|stringify|xmlescape}</files><parents>{parents}</parents></changeset>\n" --rev 1_0:0 --follow --prune cc3b37d8df1298eabedfad328cbd4a068e27abf8

      Inside the job:

      hg commit -m "Incrementing application version to 1.0-TEST (345" -u bot@polidea.pl AndroidManifest.xml
      hg tag -f Release_1.0-TEST_345 -u bot@polidea.pl
      hg push

      Then polling triggers another job:

      21:27:04 Started by an SCM change
      21:27:04 Building on master
      21:27:04 [workspace] $ hg showconfig paths.default
      21:27:04 [workspace] $ hg pull --rev 1_0
      21:27:04 [workspace] $ hg update --clean --rev 1_0
      21:27:04 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
      21:27:04 [workspace] $ hg log --rev . --template {node}
      21:27:05 [workspace] $ hg log --rev cc3b37d8df1298eabedfad328cbd4a068e27abf8
      21:27:05 [workspace] $ hg log --template "<changeset node='{node}' author='{author|xmlescape}

      ' rev='

      {rev}

      ' date='

      {date}

      '><msg>

      {desc|xmlescape}

      </msg><added>

      {file_adds|stringify|xmlescape}

      </added><deleted>

      {file_dels|stringify|xmlescape}

      </deleted><files>

      {files|stringify|xmlescape}

      </files><parents>

      {parents}

      </parents></changeset>\n" --rev 1_0:0 --follow --prune cc3b37d8df1298eabedfad328cbd4a068e27abf8

            kohsuke Kohsuke Kawaguchi
            jarek_potiuk Jarek Potiuk
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: