I have git local repository on Centos and jenkins as container on same machine. How to provide the git path in jenkins job to access it.
Please guide me.
Hi Krishna,
You can use a volume when starting the Jenkins container.
Then start the jenkins container with
-v <path-to-centos-repo>:<path-to-jenkins-repo>
Then in Jenkins you can reference the repo with
/path/to/repo.git
file:///path/to/repo.git
1. jenkins container
docker run --name Jenkins_Linux -d -p 9091:8080 jesusperales/jenkins-docker-run-inside
2. Bit bucket container
docker volume create --name bitbucketVolume
docker run -v bitbucketVolume:/var/atlassian/application-data/bitbucket --name="bitbucket" -d -p 7990:7990 -p 7999:7999 atlassian/bitbucket-server
Both are up and running on same centos machine. How can I access the git path in jenkins job?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.