gitlab

Log the warning messages in a text file from a cake script

假装没事ソ 提交于 2019-12-10 15:13:46
问题 I'm using the below cake script to compile my C# project. There are few warning messages shown in PowerShell while executing the script. I like to log the warnings in a text file which is in a physical location(ex: D:\WarningReport.txt) . The below is the cake script task I use to compile the project. Task("Build") .Does(() => { if(IsRunningOnWindows()) { MSBuild("./src/Example.sln", settings => settings.SetConfiguration(configuration)); } }); I like to add something like below,

How can I change the url for a project in GitLab?

拥有回忆 提交于 2019-12-10 14:52:33
问题 I have a project in Gitlab that is available over HTTP/SSH: git@192.168.1.10:MyGroup/MyProject.git I want to change that using another IP, i.e.: git@192.168.1.20:MyGroup/MyProject.git Where or how can I change that? 回答1: You can use below command to set new URL for your repository. git remote set-url origin git://git@192.168.1.20:MyGroup/MyProject.git 回答2: You can find all repositories remotes inside the file .git/config . You can edit it by hand or use command git remote . 来源: https:/

Gitlab CI Symfony : SQLSTATE[HY000] [2002] Connection refused

不羁的心 提交于 2019-12-10 13:57:28
问题 I use gitlab to run unit tests each time someone push the code. I get this error during composer installation. > Incenteev\ParameterHandler\ScriptHandler::buildParameters Creating the "app/config/parameters.yml" file > Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap > Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache [Doctrine\DBAL\Exception\ConnectionException] An exception occured in driver: SQLSTATE[HY000] [2002] Connection refused [Doctrine\DBAL

Gitlab CI does not execute npm scripts

江枫思渺然 提交于 2019-12-10 13:19:45
问题 I try to make a CI script running on a gitlab runner. What I want is simple: First the npm install command should be executed to fetch all the required npm packages. After that the npm test and npm run build should be executed. The .gitblab-ci.yml script looks as follow: before_script: - cd my/folder/ - npm install --silent stages: - test - build run_tests: script: - npm test stage: test build: script: - npm run build stage: build Unfortunatly only the npm install gets executed twice. And

Why integrated fabric(crashlytics) with gitlab does not send issues to gitlab?

自闭症网瘾萝莉.ら 提交于 2019-12-10 12:22:55
问题 I use fabric-Crashlytics in my android app and initiate it in Application class via Fabric.with(new Fabric.Builder(this) .kits(new Crashlytics(), new Answers()) .debuggable(true) .build() ); I integrated fabric with gitlab in fabric's service hooks successfully, It means when I press "Send Test" blue button on fabric I'll receive an issue in gitlab. BUT when I force app to crash via [ Crashlytics.getInstance().crash(); ] ,I don't get any issue in gitlab, Why? How Can I fix this problem? 回答1:

Gitlab Generate Changelog Script

人走茶凉 提交于 2019-12-10 11:53:01
问题 Using Gitlab for the first time. I had an existing web project on my local PC, I ran these commands; cd /myFolder git init git add . git remote add origin remote repository URL git commit -m "First commit" git push origin master This added all my files to my remote repo - all working well so far. I noticed that on the gitlab website, on my project page, there was a button Add Changelog (as well as add readme , add licence , etc.). I clicked this button and an empty changelog.md was created in

Can anyone post a working example of GitLab CI that has external submodules?

余生长醉 提交于 2019-12-10 11:47:03
问题 I am trying to get gitlab’s CI to work properly with an external submodule. I have a submodule in ANOTHER repository, so no relative path. I do NOT want to use a SSH key solution. I want to use the CI token (CI_JOB_TOKEN). Documentation is NOT clear because what is possible, or not, has changed and there are texts all over the place with many different approaches and, yet, nothing that fits the basic criteria. It used to not be possible to pull submodules, with CI, if they had an absolute

setting gitlab with docker registry error 500

那年仲夏 提交于 2019-12-10 11:42:11
问题 I have running docker with docker registry on example.domain.com docker run -d -p 5000:5000 --restart=always --name registry \ -v /etc/ssl/certs/:/certs \ -e REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/var/lib/registry \ -v /git/docker_registry:/var/lib/registry \ -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/server.crt \ -e REGISTRY_HTTP_TLS_KEY=/certs/server.key \ registry:2 I can push and pull to this docker registry but when i try to connect it with gitlab which is running on the same machine

Accidentally committed sensitive information - GitLab

牧云@^-^@ 提交于 2019-12-10 11:08:39
问题 I accidentally committed a file with sensitive data. I need to update that file by removing the sensitive data and ensure the older version doesn't show up in the history. I understand that those who have the repo cloned locally will still have access to it. But once they pull the latest, can it be setup in a way that they will not see the sensitive data moving forward or will not be able to see it in the logs? 回答1: You could remove the sensitive data from history. As you note, any existing

Automating pushing parts of a git repo to google cloud bucket

爷,独闯天下 提交于 2019-12-10 10:59:55
问题 In setting this up, my thinking was that I'd work on my repo and have it privately stored with Gitlab. I'd then create a .gitlab-ci.yml file which on every push it would trigger a push to a Google Source Repo which triggers actions to update the project's bucket. I went through the Generating Static Credentials guide which seems to link to a very antiquated page to which instructs you to create a .gitcookies file which will store your static credentials. I don't understand what it's giving me