gitlab

Using environment variables in Karate DSL testing

瘦欲@ 提交于 2021-02-07 08:55:31
问题 I'd like to incorporate GitLab CI into my Karate testing. I'd like to loop through my tests with different user names and passwords to ensure our API endpoints are responding correctly to different users. With that in mind, I'd like to be able to store the usernames and passwords as secure environment variables in GitLab (rather than in the karate-config as plain text) and have Karate pull them as needed from either the karate-config or the feature files. Looking through the docs and

Inject GitLab CI Variables into Terraform Variables

自作多情 提交于 2021-02-07 08:37:50
问题 I'm having a set of Terraform files and in particular one variables.tf file which sort of holds my variables like aws access key, aws access token etc. I want to now automate the resource creation on AWS using GitLab CI / CD. My plan is the following: Write a .gitlab-ci-yml file Have the terraform calls in the .gitlab-ci.yml file I know that I can have secret environment variables in GitLab, but I'm not sure how I can push those variables into my Terraform variables.tf file which looks like

gitlab api Tag creation error

梦想与她 提交于 2021-02-07 08:16:52
问题 Hi I am trying to create a tag to a project using the gitlab api, but it keeps saying tag name not valid. I even tried using the sample in gitlab api doc. Here is my attempt: ➜ /tmp curl -X POST -d @body.json https://mygitlabserver.com/api/v3/projects/9733/repository/tags --header "Content-Type:application/json" -H "PRIVATE-TOKEN:sNW8AGtLMdSGAJiGQ-gV" {"message":"Tag name invalid"}% ➜ /tmp cat body.json { "commit": { "author_email": "john@example.com", "author_name": "John Smith", "authored

gitlab api Tag creation error

橙三吉。 提交于 2021-02-07 08:15:33
问题 Hi I am trying to create a tag to a project using the gitlab api, but it keeps saying tag name not valid. I even tried using the sample in gitlab api doc. Here is my attempt: ➜ /tmp curl -X POST -d @body.json https://mygitlabserver.com/api/v3/projects/9733/repository/tags --header "Content-Type:application/json" -H "PRIVATE-TOKEN:sNW8AGtLMdSGAJiGQ-gV" {"message":"Tag name invalid"}% ➜ /tmp cat body.json { "commit": { "author_email": "john@example.com", "author_name": "John Smith", "authored

GIT: How to protect the branch from being removed by other developers?

时光怂恿深爱的人放手 提交于 2021-02-07 05:22:14
问题 After the first release of our product, we will be switching to a different branches for the main development and feature development. Is there a way to create a branch in such a way, so that we can protect it from being removed (accidentally or on purpose) unless you're a specific user (based on role or username)? I tried to create a sample git repository in our local gitlab machine, then protected one of the branches from the option on the website, but then I was able to remove it with git

GIT: How to protect the branch from being removed by other developers?

会有一股神秘感。 提交于 2021-02-07 05:21:18
问题 After the first release of our product, we will be switching to a different branches for the main development and feature development. Is there a way to create a branch in such a way, so that we can protect it from being removed (accidentally or on purpose) unless you're a specific user (based on role or username)? I tried to create a sample git repository in our local gitlab machine, then protected one of the branches from the option on the website, but then I was able to remove it with git

Multiple git accounts: no .ssh/config or SSH agent usage

廉价感情. 提交于 2021-02-07 04:30:07
问题 I'd like to use multiple Git server accounts (with any of GitHub, GitLab, BitBubket etc.). The accounts are distinguished by their email addresses, name1@email1.com and name2@email2.org and git is setup to use these addresses in the relevant repositories The following constraints apply to the 'change-account workflow': Without touching/changing SSH config files (e.g. ~/.ssh/config , etc.) when repositories or servers are added/removed/changed. Without requiring SSH agent running i.e. no ssh

git clone 不能正常下代码

做~自己de王妃 提交于 2021-02-07 02:38:14
今天在别人使用的一个老机器上,下载gitlab上的代码,总是报错:1、could not found。。。2、验证失败。。。疑惑了几个小时, 然后在网上搜了一下解决方式,原来是上一个人配置的git出了冲突,在此记录一下: 控制面板-->用户账户-->凭据管理器-->管理windows凭据-->普通凭据,在对应的url下修改用户名和密码;如果没有就新增。 之后再git clone **** 就能正常拉代码了。 来源: oschina 链接: https://my.oschina.net/u/4083583/blog/3115328

I am trying to fetch data from gitlab i am facing error

时光总嘲笑我的痴心妄想 提交于 2021-02-05 12:20:18
问题 I am trying to fetch my website content from git lab but unfortunately i am facing error please check below and how can i resolve this issue thanks. git fetch kex_exchange_identification: read: Connection reset by peer fatal: Could not read from remote repository. Please make sure you have the correct access rights 回答1: I fixed this issue after I switched remote URL of git repo from SSH to HTTPS. My guess is that this is occurring because of some security conditions imposed by GIT server.

gitbash使用git 命令的准备工作

为君一笑 提交于 2021-02-04 22:59:59
1、 git下载 2、git clone http://git.missfresh.cn/...   配置用户名密码 3、git 常用命令简写配置   git config --global alias.st status   git config --global alias.sp 'stash pop' #当前用户的Git配置文件(放在用户主目录下的一个隐藏文件 .gitconfig中) [alias] b = branch ck = checkout ci = commit st = status sl = stash list sp = stash pop [user] email = xupan03@missfresh.cn name = 许盼 彩蛋1:   SSH keys 允许在计算机和GitLab之间建立安全的连接,添加SSH key之前现需要生成一个。   #检查系统是否已经有SSH key   cat ~/.ssh/id_rsa.pub   #创建SSH key   ssh-keygen -t rsa -C " $your_email"   #展示public key   cat ~/.ssh/id_rsa.pub 彩蛋2:   VScode扩展同步    彩蛋3:    vscode git配置 来源: oschina 链接: https://my