我正试图跟踪一个GitLab问题,不管它位于哪个项目中。
问题通常是在GitLab中在项目上下文中创建的。如果将其移动到另一个项目,则将关闭该问题并创建一个新问题。原始问题使用moved_to_id跟踪新位置。问题是,我不知道如何使用moved_to_id API v4来跟踪这个GitLab值。GitLab不遵守典型的REST类行为,您可以通过它的ID检索实体。
例如,如果我调用https://gitlab.com/api/v4/issues/,我将得到一个作为对象的问题列表:这些对象有一组字段:标题、描述、状态、.、id和iid。iid是项目中问题的用户友好标识。但是什么是id,它是如何有用
自动部署我的gitlab hello-world应用程序失败,并出现超时。它似乎无法连接到群集api终结点。
Using KUBE_CA_PEM...
Cluster "gitlab-deploy" set.
User "gitlab-deploy" set.
Context "gitlab-deploy" created.
Switched to context "gitlab-deploy".
Unable to connect to the server: dial tcp xxx.xxx.xx.xxx:80: i/o t
我非常喜欢在维基媒体页面上创建一个内容表的__TOC__。
每当你在维基媒体页面上写这样的东西时:
This is a page for my project
## Credits ##
bla bla
## License ##
bla bla
__TOC_自动创建一个内容表,允许您浏览页面的内部链接。
我注意到这在GitHub wiki页面中是可能的:通过使用不同的技巧来实现。
但是,我想念GitLab wiki页面中的这个特性。它提供这样的功能吗?
我试图在gitlab包注册表上发布一些jar工艺品,但是我从服务器上得到了这个错误:
Received status code 415 from server: Unsupported Media Type
下面是我的build.gradle.kts的发布部分:
publishing {
publications {
create<MavenPublication>("maven"){
artifact(tasks["bootJar"])
}
}
repositories
我正在尝试将我的jenkins服务器连接到gitlab.com上的私有存储库。我已经将gitlab的API访问令牌添加到我的jenkins服务器,并将Jenkins公钥添加到gitlab帐户的ssh-键中。
在将我的gitlab存储库添加到jenkins管道后,我得到以下错误:
Failed to connect to repository : Command "git ls-remote -h -- git@gitlab.com:user_name/repo_name.git HEAD" returned status code 128:
stdout:
stderr: Ho
我需要遵循gitlab的某些指示。gitlab的指令是-
Manually (re)authorising GitLab Mattermost with GitLab
Authorise GitLab Mattermost
To do this, using browser navigate to the admin area of GitLab, Application section. Create a new application and for the callback URL use: http://mattermost.example.com/signup/gitlab/com
我想在Phabricator中创建一批存储库。这些repo已经在gitlab中创建了,所以我只想通过API将它们导出到Phabricator中。但我没有发现这些API对此有效。我可以通过Phab UI手动完成此操作,如下所示,但对于批量存储库来说效率不高。enter image description here
这也许是个愚蠢的问题,但我真的不知道发生了什么。
我用crate react app创建了一个React,并将其作为私有存储库上传到我的GitLab帐户。(默认) React在本地yarn start在localhost:3000上运行后按预期启动。由于我需要为正在进行的代码开发创建包,我已经开始使用NPMRegistry at GitLab。这其实很简单:
在app目录中创建一个.npmrc
添加作用域、存储库ID和auth令牌(我选择使用个人令牌)如下
# Set URL for your scoped packages.
# This is my top-level gr
我已经从源代码中安装了我的gitlab,用letsencrypt来保护它,并在https://gitlab.mydomain.com下部署它。我可以访问网站和创建存储库等,但我找不到一种方法来注册一个gitlab ci运行程序的安装。
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/ci):
https://gitlab.mydomain.com/ci
Please enter the gitlab-ci token for this runner:
xxxxxxxx-xxxxxxxx
Please ent
场景
创建一个安装了转轮的新虚拟机
触发(从另一个项目)运行的管道,该管道在这个新虚拟机上运行
如果上面的管道在新虚拟机上失败,则执行其他操作,或者失败。
问题
我正在使用GitLabs触发器API从一个项目运行管道,但是希望它能在这个新创建的虚拟机上运行。
将这些信息解析为GitLab API的最好方法是什么,或者像标记这样的东西是最好的方法吗?
.gitlab-ci.yml
stages:
- deploy to test
- test
- deploy to prod
Terraform Deploy To Test:
stage: deploy to test
s
在创建新项目时,我通常从包含单个文件的父存储库中导入一个特定的文件,因此可以将其作为一个整体导入。
包含单个POST请求到https://gitlab.example.com/api/v4/projects/的完整操作,发送有效负载如下:
{
"name": "The New Great Project III",
"namespace_id": 12,
"description": "A Project",
"import_url": "https://us