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

Multiple workspaces created for same job.

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi All,

      I am creating Jenkins pipeline in which I have 2 stages :

      1) Git Checkout

      2) Package (.war) built using maven

      Once checkout is completed in stage 1) the repository got checked out in the workspace with name "master-platform". Till now, all seems fine.

      But when stage 2) got initiated, the workspace have multiple directories (master-platform@2, master-platform@2@tmp) starting with job names. Instead of cd'ing into job workspace to work on cloned code, it is creating other dir and cd'ing into it.

      Example : /home/jenkins/workspace/master-platform@2@tmp/durable-5c94b25f/script.sh: line 5: cd: ssd-v3: No such file or directory

      This issue is failing my builds as actual code is not available to the package stage.

      Can any-one please help me out in this issue ?

      FYI, there are no concurrent builds here as I googled in few of the blogs/stackoverflow.

      Thanks

      Anuj

        Attachments

          Activity

          Hide
          markewaite Mark Waite added a comment -

          This is not related to the git client plugin but to general purpose Pipeline use. It seems to be a question and request for help rather than a bug report.

          Please use one of the chat systems or the mailing list for questions. There are many more people answering questions on those systems than there are plugin maintainers monitoring bug reports to specific plugins.

          You might also refer to the stackoverflow article "How to reuse previously created workspace across stages".

          Show
          markewaite Mark Waite added a comment - This is not related to the git client plugin but to general purpose Pipeline use. It seems to be a question and request for help rather than a bug report. Please use one of the chat systems or the mailing list for questions. There are many more people answering questions on those systems than there are plugin maintainers monitoring bug reports to specific plugins. You might also refer to the stackoverflow article " How to reuse previously created workspace across stages ".

            People

            • Assignee:
              Unassigned
              Reporter:
              anujgupta Anuj Gupta
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: