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

hg clone adding "@2" to end of clone destination path

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • core
    • None
    • Master is Jenkins 1.471 running on Windows XP 64-bit using Mercurial 2.0.2 via TortoiseHG 2.2.2.
      Slave Node is running (via SSH) on Ubuntu 10.04 64-bit using Mercurial 2.3 via TortoiseHG 2.1.

      Intermittently, the Mercurial plug-in will attempt to clone to a workspace that doesn't exist because it is adding "@2" to the end of the workspace path. This results in a clone that is unexpected and unnecessary.

      CONSOLE OUTPUT
      --------------------------------------------------
      13:55:22 Started by an SCM change
      13:55:22 [EnvInject] - Loading node environment variables.
      13:55:22 Building remotely on <NODE_NAME_REMOVED> in workspace /var/lib/jenkins/workspace/<JOBNAME_REMOVED>@2
      13:55:22 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
      13:55:22 $ /usr/bin/hg clone --rev default --noupdate http://<REPO_ADDRESS_REMOVED> /var/lib/jenkins/workspace/<JOBNAME_REMOVED>@2
      14:24:19 Build was aborted
      14:24:19 Aborted by <USERNAME_REMOVED>
      14:24:19 Archiving artifacts
      14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
      14:24:19 adding changesets
      14:24:19 adding manifests
      14:24:19 adding file changes
      14:24:19 transaction abort!
      14:24:19 Recording test results
      14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
      14:24:19 No test report files were found. Configuration error?
      14:24:19 Recording fingerprints
      14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
      14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
      14:24:19 Description set: MERCURIAL_REVISION: ${MERCURIAL_REVISION}
      14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
      14:24:19 Finished: ABORTED

          [JENKINS-14699] hg clone adding "@2" to end of clone destination path

          Kyle Leinen created issue -
          Kyle Leinen made changes -
          Description Original: Intermittently, the Mercurial plug-in will attempt to clone to a workspace that doesn't exist because it is adding "@2" to the end of the workspace path. This results in a clone that is unexpected and unnecessary.

          CONSOLE OUTPUT
          --------------------------------------------------
          13:55:22 Started by an SCM change
          13:55:22 [EnvInject] - Loading node environment variables.
          13:55:22 Building remotely on <NODE_NAME_REMOVED> in workspace /var/lib/jenkins/workspace/<JOBNAME_REMOVED>@2
          13:55:22 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          13:55:22 $ /usr/bin/hg clone --rev default --noupdate http://wdxivsgsdci01.jdnet.deere.com/hgweb/hgweb.cgi/GSD /var/lib/jenkins/workspace/<JOBNAME_REMOVED>@2
          14:24:19 Build was aborted
          14:24:19 Aborted by <USERNAME_REMOVED>
          14:24:19 Archiving artifacts
          14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          14:24:19 adding changesets
          14:24:19 adding manifests
          14:24:19 adding file changes
          14:24:19 transaction abort!
          14:24:19 Recording test results
          14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          14:24:19 No test report files were found. Configuration error?
          14:24:19 Recording fingerprints
          14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          14:24:19 Description set: MERCURIAL_REVISION: ${MERCURIAL_REVISION}
          14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          14:24:19 Finished: ABORTED
          New: Intermittently, the Mercurial plug-in will attempt to clone to a workspace that doesn't exist because it is adding "@2" to the end of the workspace path. This results in a clone that is unexpected and unnecessary.

          CONSOLE OUTPUT
          --------------------------------------------------
          13:55:22 Started by an SCM change
          13:55:22 [EnvInject] - Loading node environment variables.
          13:55:22 Building remotely on <NODE_NAME_REMOVED> in workspace /var/lib/jenkins/workspace/<JOBNAME_REMOVED>@2
          13:55:22 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          13:55:22 $ /usr/bin/hg clone --rev default --noupdate http://&lt;SERVER_ADDRESS_REMOVED&gt;/hgweb/hgweb.cgi/GSD /var/lib/jenkins/workspace/<JOBNAME_REMOVED>@2
          14:24:19 Build was aborted
          14:24:19 Aborted by <USERNAME_REMOVED>
          14:24:19 Archiving artifacts
          14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          14:24:19 adding changesets
          14:24:19 adding manifests
          14:24:19 adding file changes
          14:24:19 transaction abort!
          14:24:19 Recording test results
          14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          14:24:19 No test report files were found. Configuration error?
          14:24:19 Recording fingerprints
          14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          14:24:19 Description set: MERCURIAL_REVISION: ${MERCURIAL_REVISION}
          14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          14:24:19 Finished: ABORTED
          Kyle Leinen made changes -
          Description Original: Intermittently, the Mercurial plug-in will attempt to clone to a workspace that doesn't exist because it is adding "@2" to the end of the workspace path. This results in a clone that is unexpected and unnecessary.

          CONSOLE OUTPUT
          --------------------------------------------------
          13:55:22 Started by an SCM change
          13:55:22 [EnvInject] - Loading node environment variables.
          13:55:22 Building remotely on <NODE_NAME_REMOVED> in workspace /var/lib/jenkins/workspace/<JOBNAME_REMOVED>@2
          13:55:22 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          13:55:22 $ /usr/bin/hg clone --rev default --noupdate http://&lt;SERVER_ADDRESS_REMOVED&gt;/hgweb/hgweb.cgi/GSD /var/lib/jenkins/workspace/<JOBNAME_REMOVED>@2
          14:24:19 Build was aborted
          14:24:19 Aborted by <USERNAME_REMOVED>
          14:24:19 Archiving artifacts
          14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          14:24:19 adding changesets
          14:24:19 adding manifests
          14:24:19 adding file changes
          14:24:19 transaction abort!
          14:24:19 Recording test results
          14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          14:24:19 No test report files were found. Configuration error?
          14:24:19 Recording fingerprints
          14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          14:24:19 Description set: MERCURIAL_REVISION: ${MERCURIAL_REVISION}
          14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          14:24:19 Finished: ABORTED
          New: Intermittently, the Mercurial plug-in will attempt to clone to a workspace that doesn't exist because it is adding "@2" to the end of the workspace path. This results in a clone that is unexpected and unnecessary.

          CONSOLE OUTPUT
          --------------------------------------------------
          13:55:22 Started by an SCM change
          13:55:22 [EnvInject] - Loading node environment variables.
          13:55:22 Building remotely on <NODE_NAME_REMOVED> in workspace /var/lib/jenkins/workspace/<JOBNAME_REMOVED>@2
          13:55:22 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          13:55:22 $ /usr/bin/hg clone --rev default --noupdate http://&lt;REPO_ADDRESS_REMOVED> /var/lib/jenkins/workspace/<JOBNAME_REMOVED>@2
          14:24:19 Build was aborted
          14:24:19 Aborted by <USERNAME_REMOVED>
          14:24:19 Archiving artifacts
          14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          14:24:19 adding changesets
          14:24:19 adding manifests
          14:24:19 adding file changes
          14:24:19 transaction abort!
          14:24:19 Recording test results
          14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          14:24:19 No test report files were found. Configuration error?
          14:24:19 Recording fingerprints
          14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          14:24:19 Description set: MERCURIAL_REVISION: ${MERCURIAL_REVISION}
          14:24:19 Changing BUILD_ID variable (job build time) with the date pattern yyyy-MM-dd'T'HH:mm:ssZ.
          14:24:19 Finished: ABORTED

          mat007 added a comment -

          We're using SVN and very regularly (e.g. once a week) we experience this issue.
          Sometimes it even goes to @3 or @4 before we notice.
          The thing is the workspace does exist, it just seems for some reason something decides to switch to the @2 workspace.
          For instance one build starts with :

          Started by an SCM change
          Building remotely on Slave-2 in workspace E:\workspace\<PROJECT>
          Updating http://svn.<DOMAIN>/<PATH>/<PROJECT>/trunk at revision '2013-02-19T15:26:09.965 +0100'
          

          and the next one :

          Started by an SCM change
          Building remotely on Slave-2 in workspace E:\workspace\<PROJECT>@2
          Checking out a fresh workspace because E:\workspace\<PROJECT>@2\trunk doesn't exist
          Cleaning local Directory trunk
          Checking out http://svn.<DOMAIN>/<PATH>/<PROJECT>/trunk at revision '2013-02-19T17:11:09.863 +0100'
          

          We are using matrix builds with a few slaves started via jnlp, all on windows.
          Any clue how we could help debug this ?

          It is quite inconvenient as some of our projects take up to 70GB disk space and duplicating them fills up the disk pretty quickly.

          mat007 added a comment - We're using SVN and very regularly (e.g. once a week) we experience this issue. Sometimes it even goes to @3 or @4 before we notice. The thing is the workspace does exist, it just seems for some reason something decides to switch to the @2 workspace. For instance one build starts with : Started by an SCM change Building remotely on Slave-2 in workspace E:\workspace\<PROJECT> Updating http: //svn.<DOMAIN>/<PATH>/<PROJECT>/trunk at revision '2013-02-19T15:26:09.965 +0100' and the next one : Started by an SCM change Building remotely on Slave-2 in workspace E:\workspace\<PROJECT>@2 Checking out a fresh workspace because E:\workspace\<PROJECT>@2\trunk doesn't exist Cleaning local Directory trunk Checking out http: //svn.<DOMAIN>/<PATH>/<PROJECT>/trunk at revision '2013-02-19T17:11:09.863 +0100' We are using matrix builds with a few slaves started via jnlp, all on windows. Any clue how we could help debug this ? It is quite inconvenient as some of our projects take up to 70GB disk space and duplicating them fills up the disk pretty quickly.
          Jesse Glick made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: mercurial [ 15502 ]

          Jesse Glick added a comment -

          You have asked that your job be capable of multiple concurrent builds, so Jenkins is obliging by creating multiple workspaces for it.

          Jesse Glick added a comment - You have asked that your job be capable of multiple concurrent builds, so Jenkins is obliging by creating multiple workspaces for it.
          Jesse Glick made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          mat007 added a comment -

          The "Execute concurrent builds if necessary" check box is unchecked and we don't see multiple concurrent builds (not counting axis of the build matrix of course).

          mat007 added a comment - The "Execute concurrent builds if necessary" check box is unchecked and we don't see multiple concurrent builds (not counting axis of the build matrix of course).
          mat007 made changes -
          Resolution Original: Not A Defect [ 7 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

          Jesse Glick added a comment -

          Then it is probably specific to matrix jobs, and probably not a bug in that case either: you just need multiple workspaces to handle the concurrent (matrix) builds.

          Jesse Glick added a comment - Then it is probably specific to matrix jobs, and probably not a bug in that case either: you just need multiple workspaces to handle the concurrent (matrix) builds.

            kohsuke Kohsuke Kawaguchi
            kmleinen Kyle Leinen
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: