# AWS code commit repo url

**URL:** <https://community.jenkins.io/t/aws-code-commit-repo-url/6916>\
**Category:** Using Jenkins\
**Created:** [April 18, 2023, 8:20pm UTC](https://community.jenkins.io/t/aws-code-commit-repo-url/6916 "2023-04-18T20:20:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [April 18, 2023, 8:47pm UTC](https://community.jenkins.io/t/aws-code-commit-repo-url/6916/2 "2023-04-18T20:47:56Z")

</div>

searching the forums for `"not in a git directory"` has turned up a number of threads.

Please make sure you search existing topics before open a new one.

> [@Jenkins pipeline-as-code: not a git repository](https://community.jenkins.io/t/jenkins-pipeline-as-code-not-a-git-repository/6275):
>
> Hello, I’m trying to set up an IaC pipeline that deploys some resources using terraform. I am storing this pipeline in a top-level Jenkins file in our IaC repository. Our repository is stored on a self-hosted bitbucket server. I have created a multibranch pipeline with “Single repsitory & branch” as the branch source, and specified the correct repository URL and credentials there. However, when executing trying to create the pipeline from git (i.e. executing in Jenkins), the following error alw…

> [@Upgrade from 2.361.2 to 2.395 fails to download the shared library](https://community.jenkins.io/t/upgrade-from-2-361-2-to-2-395-fails-to-download-the-shared-library/6358):
>
> ERROR: Error fetching remote repo ‘origin’ hudson.plugins.git.GitException: Failed to fetch from [https://github.com/gh-org-data-platform/dp-tools-jenkins-sharedlib](https://github.com/gh-org-data-platform/dp-tools-jenkins-sharedlib) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:1003) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1245) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1309) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129) at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.lambda$doRetrieve…

> [@Detected dubious ownership in repository with Jenkins upgrade](https://community.jenkins.io/t/detected-dubious-ownership-in-repository-with-jenkins-upgrade/6182/2):
>
> Update, I wanted to try to see if maybe I could find a solution that wasn’t a drastic one just to see what would happen. So in the agent dockefle I set: git config --global --add safe.directory '\*' This fixed the issue for a freestyle project but not for the pipeline. Both of the jobs are cloning the same repo and has the same configuration for the git checkout except for pipeline vs freestyle. The error message for the pipeline has not changed so I am fully at a loss now.

---

_[View the full topic](https://community.jenkins.io/t/aws-code-commit-repo-url/6916)._
