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

Problem to create multibranch pipeline with Mercurial SCM

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Duplicate
    • Component/s: pipeline
    • Labels:
      None
    • Environment:
      CentOS 7 Server
      Jenkins 2.2 from standard Docker image
      latest versions of plugins:
      - pipeline plugin 2.1
      - pipeline multibranch plugin 2.3
      - Mercurial plugin 1.54
    • Similar Issues:

      Description

      When new multibranch pipeline project created from Mercurial SCM, the workspace directory don't created.

      Branch Indexing Log:

      Started
      Acquired master cache lock.
      [94E244684A83F66F7E11E392316816A50ECD3DBB-consolidation] $ /usr/bin/hg pull
      
      pulling from http://ntp-hg.krista.ru/Consolidation/consolidation
      searching for changes
      adding changesets
      adding manifests
      adding file changes
      added 10 changesets with 10 changes to 10 files
      (run 'hg update' to get a working copy)
      Master cache lock released.
      [94E244684A83F66F7E11E392316816A50ECD3DBB-consolidation] $ /usr/bin/hg heads --template "{node} {branch}\n"
      Found branch default
      Scheduling build for branch: default
      Found branch 3.0.*-RELEASE
      Scheduling build for branch: 3.0.*-RELEASE
      Found branch 1.2.*-RELEASE
      Scheduling build for branch: 1.2.*-RELEASE
      Found branch 2.1.*-RELEASE
      Scheduling build for branch: 2.1.*-RELEASE
      Found branch 2.0.*-RELEASE
      Scheduling build for branch: 2.0.*-RELEASE
      Finished: SUCCESS
      

      Jenkins log:

      May 11, 2016 11:08:01 AM INFO hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness queueChangeSet
      Queue of changeset     A jobs/Pipelines/jobs/tst/config.xml
       aborted (scm manipulator not settled !)
      May 11, 2016 11:08:29 AM INFO hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness queueChangeSet
      Queue of changeset     A jobs/Pipelines/jobs/tst/config.xml
       aborted (scm manipulator not settled !)
      May 11, 2016 11:09:13 AM INFO org.jenkinsci.plugins.workflow.job.WorkflowRun finish
      Pipelines/tst/default #1 completed: FAILURE
      May 11, 2016 11:09:20 AM INFO org.jenkinsci.plugins.workflow.job.WorkflowRun finish
      Pipelines/tst/3.0.*-RELEASE #1 completed: FAILURE
      May 11, 2016 11:09:26 AM INFO org.jenkinsci.plugins.workflow.job.WorkflowRun finish
      Pipelines/tst/1.2.*-RELEASE #1 completed: FAILURE
      May 11, 2016 11:09:40 AM INFO org.jenkinsci.plugins.workflow.job.WorkflowRun finish
      Pipelines/tst/2.1.*-RELEASE #1 completed: FAILURE
      May 11, 2016 11:09:48 AM INFO org.jenkinsci.plugins.workflow.job.WorkflowRun finish
      Pipelines/tst/2.0.*-RELEASE #1 completed: FAILURE
      

      In log of each subjob:

      Started by an SCM change
      Acquired master cache lock.
      [94E244684A83F66F7E11E392316816A50ECD3DBB-consolidation] $ /usr/bin/hg pull
      pulling from http://ntp-hg.krista.ru/Consolidation/consolidation
      searching for changes
      no changes found
      Master cache lock released.
      [94E244684A83F66F7E11E392316816A50ECD3DBB-consolidation] $ /usr/bin/hg heads --template "{node} {branch}\n"
      Found branch default
      Found branch 3.0.*-RELEASE
      Found branch 1.2.*-RELEASE
      Found branch 2.1.*-RELEASE
      Found branch 2.0.*-RELEASE
      Waiting for master lock on hgcache/94E244684A83F66F7E11E392316816A50ECD3DBB-consolidation java.util.concurrent.locks.ReentrantLock@55dd836c[Locked by thread Executor #-1 for master : executing Pipelines/tst/3.0.*-RELEASE #1]...
      Acquired master cache lock.
      [94E244684A83F66F7E11E392316816A50ECD3DBB-consolidation] $ /usr/bin/hg pull
      pulling from http://ntp-hg.krista.ru/Consolidation/consolidation
      searching for changes
      no changes found
      Master cache lock released.
      $ /usr/bin/hg version
      $ /usr/bin/hg --config extensions.share= share --noupdate /var/jenkins_home/hgcache/94E244684A83F66F7E11E392316816A50ECD3DBB-consolidation /var/jenkins_home/workspace/Pipelines/tst/default@script
      abort: No such file or directory: '/var/jenkins_home/workspace/Pipelines/tst/default@script'
      ERROR: Failed to clone http://ntp-hg.krista.ru/Consolidation/consolidation
      ERROR: Failed to clone http://ntp-hg.krista.ru/Consolidation/consolidation
      Finished: FAILURE
      

      If I pre-create the directory then project creation completes successfully.

        Attachments

          Issue Links

            Activity

            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Seems to be critical

            Show
            oleg_nenashev Oleg Nenashev added a comment - Seems to be critical
            Hide
            karabayan Bayan Chernogorski added a comment -

            Is there a known workaround for this issue?

            This issue is a showstopper for us, at the moment. We can't use the multibranch pipeline since all of our projects a in mercurial.

            Show
            karabayan Bayan Chernogorski added a comment - Is there a known workaround for this issue? This issue is a showstopper for us, at the moment. We can't use the multibranch pipeline since all of our projects a in mercurial.

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                vektory79 Victor Verbitsky
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: