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

dir('myfolder') taking user to tmp folder inside 'myfolder'

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: pipeline
    • Labels:
      None
    • Environment:
      Jenkins 2.289.3
      MacOS Catalina. Version 10.15.7
    • Similar Issues:

      Description

      I have a pipeline script that clones a git folder and then switches to the cloned folder by using dir(). After switching to the cloned folder, I am trying to run a shell command to install a few npm packages.
      however, the shell command is executed inside the @tmp folder instead of the folder being supplied in the dir() step.

      The @tmp folder seems to be automatically created inside the folder supplied in the dir() step when i clone theĀ  git repository

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            bhaskarphukan Bhaskar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: