Uploaded image for project: 'Jenkins Website'
  1. Jenkins Website
  2. WEBSITE-729

Can't access the repository by running Jenkins in Docker

    XMLWordPrintable

Details

    • Epic
    • Status: Done (View Workflow)
    • Minor
    • Resolution: Fixed
    • content
    • None
    • Tutorials

    Description

      https://jenkins.io/doc/tutorials/build-a-node-js-and-react-app-with-npm/

      I follow this tutorial to run Jenkins in Docker

      i create the docker and actually i need to use the following command to map the home path instead otherwise it will say \\Users\xxxx is not a valid Windows path
      -v "C:%HOMEPATH%":/home ^
      Everything is fine but I get the error when I try to run the job in Blue Ocean

      It says that it can't read from the remote repository

      I spend the whole afternoon on research but I still can't find out a solution.

      I even access the Jenkins home directory by running command in the bash after docker exec -it jenkins-blueocean bash, and I am sure that the home path map correctly.

      It will be great if someone could tell me how to deal with this.

      Attachments

        Activity

          oleg_nenashev Oleg Nenashev added a comment -

          I'd guess it's just because of the missing slash before "home".

          Missed the notification for this ticket

          oleg_nenashev Oleg Nenashev added a comment - I'd guess it's just because of the missing slash before "home". Missed the notification for this ticket
          markewaite Mark Waite added a comment -

          Instructions in this tutorial now use symbolic reference to the home drive (

          {%HOMEDRIVE%}

          }

          markewaite Mark Waite added a comment - Instructions in this tutorial now use symbolic reference to the home drive ( {%HOMEDRIVE%} }

          People

            Unassigned Unassigned
            fredwong_it Fred Wong
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: