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
39
votes
3 answers

How to do code review for google cloud git repo

We are hosting git repo on the google cloud platform. I know for github.com, we can use pull requests for code reviews, but google cloud does not seem to provide that. How do I perform code review for repos on google cloud platform?
25
votes
8 answers

Get Permission denied (publickey) for Git push to Google Cloud Source Repository with Google Cloud SDK authentication method on Windows 10

I'm trying to use Google Cloud Source Repository as a remote repository. I followed all the procedures to authenticate with the Google Cloud SDK authentication method that allows me to not use SSH keys (as they say). The problem is: I always get…
16
votes
3 answers

Error publishing source code from cloud build to a bucket using triggers

I´m trying to publish the html code from one cloud source repository to a public storage bucket in gcp through a cloud build trigger . However , I get the following error in the build each time I push to the master branch. generic::invalid_argument:…
14
votes
1 answer

How to run install pip requirements from private repo in google cloud source?

I'm trying to build a Dockerfile that installs requirements via pip into the container it builds. I think something may not be set up right in the google's SDK / cloud console. I get this error: me@cloud-q2smart:~/github/jokepkg/test$ sudo pip…
13
votes
2 answers

Jenkins with Google Cloud Source Repository

I am trying to use Jenkins for CI/CD. I've developed a Python flask application. I am deploying this application into Google App Engine. So far I am using gcloud app deploy app.yaml command to deploy application to Google App Engine. Code for this…
12
votes
3 answers

Go Get for Google's Cloud Source Repository

Making two different go modules source.cloud.google.com/me/a source.cloud.google.com/me/b With source.cloud.google.com/me/common as a common lib dependency (to share a model) I'm trying to go get source.cloud.google.com/me/common (even manually…
11
votes
5 answers

Using Google Cloud Source Repositories with service account

Is it possible to access a Google Cloud Source Repository in an automated way, i.e. from a GCE instance using a service account? The only authentication method I am seeing in the docs is to use the gcloud auth login command, which will authenticate…
9
votes
6 answers

Google Cloud Functions - How to securely store service account private key when using Google Source Repository?

I use Google Source Repository to store my Google Cloud Functions. (Git repo hosted by Google, basically) One of my function needs to access a private Google Sheet file, I therefore created a Service Account. (With way too many rights since it's so…
Vadorequest
  • 16,593
  • 24
  • 118
  • 215
8
votes
0 answers

Pull Requests on Google Cloud Source Repos

Is Google planning to enable pull requests on google cloud repos? We love using these repos in GCP but need to use pull requests in our development process (frankly, we're surprised and curious why they are not enabled). So at this point we are…
8
votes
6 answers

Possible way to add multiple git repositories in the same Google cloud project

Is there a way to add multiple git repositories in the same Google cloud project?
Ali SAID OMAR
  • 6,404
  • 8
  • 39
  • 56
7
votes
2 answers

Google Cloud Source Repositories: change default branch?

With GCP CSR, is it possible to change the default branch for a repository from master to something else? This doesn't have much bearing on functionality other than the branch that's first displayed in the CSR UI. However, it's something I can…
Chris Keller
  • 374
  • 2
  • 12
6
votes
1 answer

Pushing code to google source repos error

I am getting the following error when pushing changes to my cloud source repo.. remote: INVALID_ARGUMENT: Request contains an invalid argument. remote: [type.googleapis.com/google.rpc.LocalizedMessage] remote: locale: "en-US" remote: message:…
6
votes
1 answer

Rename Git repository in Google Cloud Source Repositories

Is it possible to rename a Git repository in Google Cloud Source Repositories?
Harold L. Brown
  • 8,423
  • 11
  • 57
  • 109
6
votes
2 answers

Using gcloud's credential helper to access Google Source Repositories prevents osxkeychain from working

In the Google Source Repositories docs, it asks you to use git config credential.helper gcloud.sh to allow Git to authenticate Recently, that's prevented me from using osxkeychain auth with GitHub - after adding that command, I get this error…
Maximilian
  • 7,512
  • 3
  • 50
  • 63
6
votes
2 answers

Auto deploy Google Cloud Functions from Google Cloud Source Control

I can't figure out how to automatically deploy newly pushed commits of Cloud Functions either from Cloud Source Control or from GitHub directly. I have found a similar solution by creating another function and GitHub webhook, but since Functions…
1
2 3 4 5 6 7