Questions tagged [google-cloud-source-repos]

Cloud Source Repositories are fully-featured, private Git repositories hosted on Google Cloud Platform.

Cloud Source Repositories are fully-featured, private Git repositories hosted on Google Cloud Platform.

You can use Cloud Source Repositories for collaborative development of any application or service, including those that run on Google App Engine and Google Compute Engine. If you are using Stackdriver Debugger, you can use Cloud Source Repositories and related tools in the Cloud Platform Console to view debugging information alongside your code during application runtime.

Using Cloud Source Repositories is easy if you are familiar with Git. For example, you can add a Cloud Source Repository to a local Git repository as a remote, or you can connect it to a hosted repository on GitHub or Bitbucket. From a local repository, you can use the standard set of Git commands to interact with the repository in the Cloud, including push, pull, clone and log.

99 questions
0
votes
1 answer

How to clone a particular branch from Google CLoud Source Repository

I am trying to clone a particular branch from Google Cloud Source Repository. gcloud source repos clone This command only scans the master branch not the dev branch that I am looking for How to clone the particular brach?
0
votes
1 answer

Using Cloud source repository in a GCP production project

I have a standalone cloud source repository, (not cloned from Github). I am using this to automate deploying of ETL pipelines . So I am folowing Google recommended guidelines, i.e committing the ETL pipeline as a .py file. The cloud build trigger…
Kuwali
  • 233
  • 3
  • 13
0
votes
0 answers

Does GCP VPC SC service supports Cloud Source Repository or not?

There is a scenario to have cloud source repository inside VPC SC perimeter to build CI/CD pipelines inside the perimeter to build & deploy the solutions. https://cloud.google.com/vpc-service-controls/docs/supported-products But the Google Doc…
0
votes
1 answer

Google Cloud Source Repositories Git operations hang sometimes for several minutes

We're experiencing hangs on Git operations (pull/push etc.) on all our Google Source Repositories since around November 2020. It usually happens 1-2 times out of 10. We're experiencing this on different computers (both with Ubuntu and Fedora OS with…
Nonoo
  • 335
  • 2
  • 7
0
votes
0 answers

Google Cloud Source Repository random access denied

Randomly, I will get the error below when trying to push to my GCP git repo. The problem usually self-resolves after I wait a while (seems like 30 minutes or more but I haven't actually timed it). PERMISSION_DENIED The caller does not have…
Jeff
  • 373
  • 1
  • 6
  • 16
0
votes
2 answers

GCP Cloud Functions helpers

Assume we're deploying GCP Cloud Functions from a GitHub repo (mirrored via GCP Source Repositories). Is it possible to set up shared code that can be accessed by both functions below? (e.g. via helpers.py). helpers.py function_one/ ├──…
0
votes
1 answer

How to reject checking in if tests fail in Google Cloud Build

I've created a Docker file and configured it as the trigger to my Google Cloud Source Repository. There are only a few options available to I chose "Push to a branch". Right now my docker image can do a new Cloud Function (written with golang)…
user14676730
0
votes
1 answer

How to go back to previous commit?

I was doing some cleanup and accidentally deleted a folder. then: git commit -a -m $VER git push -f -u origin master I'm trying to restore the folder but I don't see it in previous commits. How to go back to previous commit?
thstart
  • 397
  • 3
  • 15
0
votes
1 answer

Accidentally deleted a repository from google source repositories

So, I was doing some cleanup for some repositories on my GCD source repositories, and accidentally I deleted an important repository that -unfortunately- I don't have any clone of Is there a way to retrieve this back ? Like a recycle bin for source…
Mellervin
  • 145
  • 1
  • 8
0
votes
1 answer

Redeploy Google Cloud Function from command line using Source Repositories

I have a fairly simply Google Cloud Function that I'm deploying from Cloud Source Repositories. I'm using the Google Cloud Shell as my development machine. When I make updates to the function as I'm developing, I use the CLI to push updates to my…
0
votes
1 answer

Is there a way to get a json file content in the Cloud Function?

everyone! I really need to get a content from a json file in the same folder as my main.py file. The problem is: Google Cloud Function can't run the open() statement. As the following error appears: No such file or directory: 'mytest.json' Now, I'm…
0
votes
1 answer

Launch Dataproc PySpark job from Cloud Source

I am currently launching PySpark using DataProcPySparkOperator from Airflow with a script in Cloud Storage run_pyspark_job = dataproc_operator.DataProcPySparkOperator( task_id='run-dataproc-pyspark', main='gs://my-repo/my-script.py', …
0
votes
1 answer

ModuleNotFoundError when using local dependencies

The repo works on my machine but not on gcloud. Structure of repo (on Google Cloud Source Repo): project/ ├── localdep.py └── mylocalpackage/ └── main.py In main.py: import localdep Yet I receive the following error: ModuleNotFoundError: No…
0
votes
1 answer

How to clone GCP Cloud Source Repositories in AWS instance

I would like to clone GCP "Cloud Source Repositories" in AWS instance using GCP service account(IAM). I wanted to close using "git clone" command. Please let me know how to do it?
Saran
  • 835
  • 3
  • 11
  • 31
0
votes
1 answer

Problem mirroring Bitbucket repo to GCP Cloud Source Repo

I'm attempting to setup CICD for a GCP Cloud Function and App-Engine deployment. The repo is in Bitbucket and I am following the instructions found here to create a mirror between my Bitbucket repo and a GCP Cloud Source repo. Using the GCP Cloud…