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

Build creates second workspace@2 for non-concurrent build configuration

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Duplicate
    • core, matrix-project-plugin
    • None
    • OS: Ubuntu 12.04 64-bit
      Jenkins: 1.609.1 (upgraded from 1.580.3)
      disk-usage plugin: 0.25 (upgraded from 0.24)
      Matrix Project Plugin: 1.6 (upgraded from 1.4.1)
    • Jenkins Core 2.136

    Description

      I didn't have this issue when I was using ver 1.580.3.
      After upgrading Jenkins ver 1.609.1 (together with other Jenkins plugins update),
      I started to see this issue.

      My jenkins job is using multi-config project type (aka Matrix project),
      and has 3 variants.
      I didn't set to be run concurrently,
      so the 3 variants will start the build one by one.

      In the previous version 1.580.3,
      it will reuse the same workspace folder for all of 3 variant builds.

      In the new version 1.609.1,
      when multiple jobs are triggerd,
      I can see sometimes the first variant build of the second job
      will start to create and use workspace@2
      instead of re-using original worksapce.

      Note:
      I'm also using disk-usage plugin.
      At the end of build,
      it will trigger that plugin to calculate workspace disk space.
      My work space tends to be large and sometimes it take several minutes to finish.

      I suspect it's that disk-usage plugin still occupying the original worksapce,
      but the second job in queue starts earlier,
      so it creates workspace@2 for the first variable build.

      From workspace@2,
      I always see only one variant only under AXIS folder.

      Attachments

        Issue Links

          Activity

            totoroliu Rick Liu created issue -
            totoroliu Rick Liu made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-21622 [ JENKINS-21622 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 165324 ] JNJira + In-Review [ 181925 ]
            jamesdumay James Dumay made changes -
            Remote Link This issue links to "CloudBees Internal CD-480 (Web Link)" [ 20531 ]
            jamesdumay James Dumay made changes -
            Remote Link This issue links to "CloudBees Internal CD-473 (Web Link)" [ 20532 ]
            recampbell Ryan Campbell made changes -
            Link This issue relates to JENKINS-41127 [ JENKINS-41127 ]
            dnusbaum Devin Nusbaum made changes -
            Released As Jenkins Core 2.136
            Assignee Kohsuke Kawaguchi [ kohsuke ] Devin Nusbaum [ dnusbaum ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            openjenkins J S made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            dnusbaum Devin Nusbaum made changes -
            Resolution Duplicate [ 3 ]
            Status Reopened [ 4 ] Resolved [ 5 ]
            olssons Sten Olsson made changes -
            Attachment image-2020-08-16-13-41-37-491.png [ 52222 ]
            olssons Sten Olsson made changes -
            Attachment image-2020-08-16-13-42-26-759.png [ 52223 ]
            olssons Sten Olsson made changes -
            Attachment image-2020-08-16-13-43-23-877.png [ 52224 ]

            People

              dnusbaum Devin Nusbaum
              totoroliu Rick Liu
              Votes:
              4 Vote for this issue
              Watchers:
              22 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: