我的印象是 gitlab 既创建了一个类似于 github(但私有)的存储库,也为存储库提供了一个 Web 客户端界面。
我还认为 tortoisegit 是一个基于 Windows 的 git 客户端。
我对么?
如果我使用 gitlab,我需要 tortoisegit 吗?
gitlab web 客户端和 tortoisegit 有什么区别?
我需要从 gitlab 备份中恢复一些存储库。此备份包含所有存储库的 .bundle 文件。如何恢复包含所有分支的完整存储库?
如果我跑,git bundle list-heads myfile.bundle我可以看到所有的分支。
我想使用所有分支在本地恢复该 repo,以将其推送到新的/空的 gitlab 存储库。
我尝试使用 git clone、git pull 我能找到的所有其他技巧,但这只会导致一个只有 master 分支的 repo。
我可以使用此命令成功访问有关用户的信息:
curl http://gitlab.$INTERNAL_SERVER.com/api/v3/\
users/$USER_ID\?private_token\=$GITLAB_TOKEN
Run Code Online (Sandbox Code Playgroud)
但是,我找不到用于获取用户已推送到 GitLab 服务器的提交列表的 API 端点。是否存在包含此信息的 URL?
我目前使用Cypress作为我的测试工具,并且在 gitlab ci 上运行它时遇到了一个小问题。
我的 Cypress 测试的一部分目前使用敏感的信用卡信息,所以当我将它上传到 gitlab 存储库时,我不得不尝试找出一种方法来防止任何人查看所说的“敏感信息”。最终,我尝试利用 Gitlabs 方便的“秘密变量”功能。
在设置了所有需要隐藏的变量后,我进入了 gitlab-ci.yml 文件并进行了设置,以便 .gitlab-ci.yml 文件创建一个名为“cypress/support/PaymentCredentials.yml”的新文件。 js”,并且在该文件中,所有敏感的付款信息都将存储为 javascript 变量(如下所示)
image: bahmutov/cypress-image
# caching node_modules folder
# https://about.gitlab.com/2016/03/01/gitlab-runner-with-docker/
cache:
paths:
- node_modules/
before_script:
- cypress verify
- "echo -e \"export default {CARDHOLDER_NAME: '$CARDHOLDER_NAME', CARD_CC: '$CARD_CC', CARD_CC_MONTH: '$CARD_CC_MONTH', CARD_CC_YEAR: '$CARD_CC_YEAR', CARD_CC_CCV: '$CARD_CC_CCV'}\" > cypress/support/PaymentCredentials.js"
stages:
- build
- test
build-specs:
stage: build
script:
- npm install
artifacts:
paths:
- cypress/integration
.job_template: &e2e_test_definition
script:
- echo $CARDHOLDER_NAME
- export $CARDHOLDER_NAME …Run Code Online (Sandbox Code Playgroud) continuous-integration unit-testing gitlab gitlab-ci cypress
我正在创建一个简单的Java项目,使用Gradle该项目可以生成测试报告(即BDD Cucumber,JUnit等)。该项目将部署到Gitlab该项目作为Gitlab CI流程一部分的位置。
我的JUnit报告是在build/reports/tests/test/相对于项目路径的文件夹中生成的(一个index.html和一些CSS文件等)。
即使测试用例失败,我如何配置我也.gitlab-ci.yml可以将内容发布build/reports/tests/test/到Gitlab页面?
这就是我的内容.gitlab-ci.yml:(我的仓库可以在这里找到)
版本1:不向页面发布任何内容
image: java:8-jdk
stages:
- test
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
test:
stage: test
script:
- mkdir public
- ./gradlew test
artifacts:
paths:
- build/reports/tests/test/
only:
- master
after_script:
- mv build/reports/tests/test/* public
Run Code Online (Sandbox Code Playgroud)
版本2:失败后就不执行该deploy阶段test。
image: java:8-jdk
stages:
- test
- deploy
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
test:
stage: test …Run Code Online (Sandbox Code Playgroud) 将gitlab-runner设置为具有executor的Docker容器后docker,我无法运行任何构建。显示的日志如下所示:
Running with gitlab-runner 11.4.2 (cf91d5e1)
on <hostname> 9f1c1a0d
Using Docker executor with image docker:stable-git ...
Starting service docker:stable-dind ...
Pulling docker image docker:stable-dind ...
Using docker image sha256:acfec978837639b4230111b35a775a67ccbc2b08b442c1ae2cca4e95c3e6d08a for docker:stable-dind ...
Waiting for services to be up and running...
Pulling docker image docker:stable-git ...
Using docker image sha256:a8a2d0da40bc37344c35ab723d4081a5ef6122d466bf0a0409f742ffc09c43b9 for docker:stable-git ...
Running on runner-9f1c1a0d-project-1-concurrent-0 via a7b6a57c58f8...
Fetching changes...
HEAD is now at 5430a3d <Commit message>
Checking out 5430a3d8 as master...
Skipping Git submodules setup
$ …Run Code Online (Sandbox Code Playgroud) 我有一个驻留在Gitlab中的Gradle Java 11项目。我想介绍gitlab-ci.yml一下强制Gitlab构建项目并在每次向远程分支推送时运行测试。
看起来像什么?
我很确定已经提出了类似的问题,但是找不到,因此,感谢您的帮助。
如何解决“ MacBook Pro”上的此错误。
git:'credential-wincred'不是git命令。参见'git --help'。
git:'credential-wincred'不是git命令。参见'git --help'。
远程:HTTP基本:拒绝访问致命的:身份验证失败“ https://gitlab01.xxxxx.com.tw/xxxxx/xxxxxxx.git/ ”
我使用“ git config --system --unset credential.helper”和“ git config --global credential.helper wincred”,对我来说什么都不起作用。谢谢。
I want to push and syncronize my code in two different remote repository, to Gitlab and Github at the same command, is it possible?
gitlab ×10
git ×5
gitlab-ci ×4
gradle ×2
cypress ×1
docker ×1
git-bundle ×1
github ×1
gitlab-pages ×1
java ×1
junit ×1
tortoisegit ×1
unit-testing ×1