Can not sync private project to Travis CI from Github - continuous-integration

I am using Travis CI to run script of repository github, but i can not see my private project to sync
Anything i can make to do it ?
https://gyazo.com/1086bc83f8b91ce38c74618c38df7705

In Travis CI, private and public repos are separately managed. Public repositories appear in https://travis-ci.org/profile and private ones in https://magnum.travis-ci.com/profile.
For more details you can refer to https://github.com/travis-ci/travis-ci/issues/2519

Related

Is there an alternative to gitlab-runner?

I would like to know if there is an alternative to gitlab runners compatible with bitbucket.
The main functionnalities i'm searching for is to install an executor on my server and use it to run some commands on the server where it is installed.
I've tried circle-ci, bitbucket pipelines and travis but all of those require to be connect to my server over ssh.
If you like the gitlab ci you can use it as a CI for bitbucket.
Just mirror your bitbucket repo on gitlab and your will be able to use all of gitlab ci features.
"The following are some possible use cases for repository mirroring:
You migrated to GitLab but still need to keep your project in another source. In that case, you can simply set it up to mirror to GitLab (pull) and all the essential history of commits, tags, and branches will be available in your GitLab instance."
It works on gitlab.com and also on gitlab self hosted (CE or Enterprise)

build go project in Jenkins with dependencies in private repository

I'm trying to set up automated build for go projects. Most people just use github dependencies which don't need credentials. We have some internal dependencies however available on our private git central server. Credentials are needed however to have go access these.
A possible workaround would be to configure a global git variable inside our build machines / build dockers; something like:
git config --global url."https://user:password#private.git.server/".insteadOf "https://private.git.server/"
however this doesn't seem to be the best solution to me, since the password would be stored in a human-readable text file.
I think the git-credentials plugin should be able to help me out; could I maybe export GIT_TERMINAL_PROMPT=1 and let the git-credentials plugin fill in for me?
How could I make sure go get or go install gets access to our private repository in a secure way?
I use a workaround with GITHUB_TOKEN to solve this.
Generate GITHUB_TOKEN here https://github.com/settings/tokens
export GITHUB_TOKEN=xxx
git config --global url."https://${GITHUB_TOKEN}:x-oauth-basic#github.com/mycompany".insteadOf "https://github.com/mycompany"
This way you don't expose the password and can revoke token at any time.
Note: Go uses http when downloading dependencies, not ssh.

Travis CI not recognizing renamed repository

So I originally named my github repo my_repo, but then renamed it my-repo shortly after creation, like within the first day. This was roughly a year ago.
Ever since, I've been building the project with Travis CI, using the free .org version. Now after making all my repos private and upgrading to the pro version with travis-ci.com, I've had to provide new API credentials in my .travis.yml. So I have to do so with
travis encrypt $(heroku auth:token) --add deploy.api_key --pro
This has worked with other repositories, but not this particular one. Instead, I get
repository not known to https://api.travis-ci.com/: dben89x/my_repo
However, on my Travis CI dashboard, it's trying to build it as dben89x/my-repo. I'm not sure how to tell travis to build it as dben89x/my-repo.
All my git remotes are set up as my-repo. I've tried logging out in the CLI and logging back in.
I found the answer here: https://github.com/travis-ci/travis-ci/issues/3264#issuecomment-180246348
Went into .git/config and changed
[travis]
slug = dben89x/my_repo
to
[travis]
slug = dben89x/my-repo

symfony flex with private recipes

What's the proper way to setup a flex recipe (private or public repository) for a package (private repository)?
What I tried so far
Got a private repository on bitbucket with a package.
Got a private repository on github with recipes.
Configured symfony flex server on github repository.
Added projects ids in config.json (recipes repository)
Yet, I can't understand how a recipe gets called during composer update..

Gitlab Remote Repository (locally-hosted)

I'm new to Git and Gitlab. I downloaded and installed Gitlab to my PC so I could have a private Git repository. I would like like to ask a few things regarding git-data in my private Gitlab setup (local only).
I was able to find my project name in the gitlab repository. It has some files/folders inside but I couldn't find the source code I pushed. I could see HEAD, INFO, etc. I was expecting to find my project folder which I pushed to this remote repository containing my source codes. Am I wrong to expect a copy of my project folder here with the source codes? Or is my pushed source code being stored in a compiled manner hence I couldn't find it?
Security-wise, can I assume that Gitlab doesn't send or push any of my code elsewhere in the Internet?

Resources