标签: gitlab

java.lang.IllegalStateException:Dex存档:仅为.CLASS文件设置.DEX扩展名

我在gitlab ci上构建了这个项目

./gradlew assembleDebug --stacktrace
Run Code Online (Sandbox Code Playgroud)

有时它会抛出一个错误:

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithDexBuilderForDebug'.
> com.android.build.api.transform.TransformException: java.lang.IllegalStateException: Dex archives: setting .DEX extension only for .CLASS files
Run Code Online (Sandbox Code Playgroud)

在我的本地电脑上它正常工作.

kotlin版本是1.2

multidex已启用

这个错误的原因是什么?

continuous-integration android build kotlin gitlab

40
推荐指数
4
解决办法
3万
查看次数

连接到Android Studio上的GitLab存储库

我正在尝试使用Android Studio的I/O预览连接到GitLab存储库.有谁知道怎么做/如果有可能吗?

git android googleio gitlab android-studio

38
推荐指数
2
解决办法
8万
查看次数

是否可以删除GitLab上的问题?

我最近安装了GitLab试用它,我真的很享受它.这很容易安装和使用,但我发现了一个烦人的"问题".我还没有找到一种方法来删除与项目相关的问题.

我知道从系统中删除问题并不是一个好习惯,但是在某些特定情况下这是非常有用的,例如当你创建一个没有意义并且不想进入系统的问题时,甚至关闭后

所以,我的问题,非常简单:是否可以删除GitLab上的问题?如果是这样,我该怎么办?

我在Debian wheezy上使用GitLab 7.2.1.

非常感谢

gitlab

38
推荐指数
4
解决办法
2万
查看次数

获取GitLab CI以克隆私有存储库

我设置了GitLab和GitLab CI来托管和测试我的一些私人回购.对于我在这个系统下的作曲家模块,我设置了Satis来解析我的私人包.

显然这些私有包需要一个ssh密钥来克隆它们,我在终端中工作 - 我可以运行composer install并获取这些包,只要我ssh-add在shell中添加了密钥.

但是,当在GitLab CI中运行我的测试时,如果项目具有任何这些依赖项,则测试将无法完成,因为我的GitLab实例需要身份验证才能获得deps(显然),并且测试失败了Host key verification failed.

我的问题是如何设置它以便当跑步者运行测试时它可以在没有密码的情况下对gitlab进行身份验证?我已经尝试在我的runners ~/.ssh文件夹中放置一个无密码的ssh-key ,但是构建甚至不会添加密钥,"eval ssh-agent -s"后面跟ssh-add似乎没有说代理没有运行...

ssh continuous-integration gitlab gitlab-ci gitlab-ci-runner

38
推荐指数
5
解决办法
2万
查看次数

Git推送导致致命:协议错误:线路长度不好:这个

我想让GitLab在我的服务器上运行(运行CentOS 6.5).我跟着gitlab-receipe到线,但我无法让它工作.我能够访问Web界面,创建新项目但推送到主分支返回以下错误:

fatal: protocol error: bad line length character: This
Run Code Online (Sandbox Code Playgroud)

我已经对生产环境进行了检查,结果如下:

Checking Environment ...

Git configured for git user? ... yes

Checking Environment ... Finished

Checking GitLab Shell ...

GitLab Shell version >= 1.7.9 ? ... OK (1.8.0)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
update hook up-to-date? ... yes
update hooks in repos are links: ... …
Run Code Online (Sandbox Code Playgroud)

git ssh repository gitlab

37
推荐指数
3
解决办法
8万
查看次数

从Android Studio中的Gitlab克隆存储库时出现"Repositroy test failed"错误?

我想从Android Studio 0.8.1中的gitlab存储库克隆我的android代码.我检查了VCS >>从Version Control中检出>> Git >>在这里添加了HTTP url.它提示我"Repositroy test failed".请帮我解决问题.我也检查了插件.谢谢了很多.

android linker-errors gitlab android-studio

37
推荐指数
1
解决办法
5万
查看次数

docker-in-docker(dind)服务在gitlab ci中的作用

根据官方gitlab文档,docker buildci管道内启用的一种方法是使用dind服务(就gitlab-ci 服务而言).

但是,由于在docker执行程序上运行ci作业总是如此,因此docker:latest也需要图像.

有人能解释一下:

  • docker:dinddocker:latest图像有什么区别?
  • (最重要的):为什么这两个服务和所需要的泊坞窗图像(如所示在这个例子中,从GitHub的文档链接)来执行如docker buildwhithin一个CI的工作吗?不是docker:latest图像(作业将在其中执行!)包含docker守护程序(我认为docker-compose也是),它们是我们需要的命令所必需的工具(例如docker build,docker push等等)?

除非我错了,否则问题或多或少变成:

为什么docker客户端和docker守护程序不能驻留在同一个docker(启用)容器中

continuous-integration gitlab docker gitlab-ci

37
推荐指数
1
解决办法
1万
查看次数

如何修复调用失败的服务器意外响应:Android Studio中未经授权

我在Gitlab上有一个项目,最近几天我一直在处理它!

现在我想pull在家用PC上进行项目,但显示以下错误:

Invocation failed Unexpected Response from Server:  Unauthorized
        java.lang.RuntimeException: Invocation failed Unexpected Response from Server:  Unauthorized
        at org.jetbrains.git4idea.nativessh.GitNativeSshAskPassXmlRpcClient.handleInput(GitNativeSshAskPassXmlRpcClient.java:34)
        at org.jetbrains.git4idea.nativessh.GitNativeSshAskPassApp.main(GitNativeSshAskPassApp.java:30)
        Caused by: java.io.IOException: Unexpected Response from Server:  Unauthorized
        at org.apache.xmlrpc.LiteXmlRpcTransport.sendRequest(LiteXmlRpcTransport.java:231)
        at org.apache.xmlrpc.LiteXmlRpcTransport.sendXmlRpc(LiteXmlRpcTransport.java:90)
        at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72)
        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194)
        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185)
        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178)
Run Code Online (Sandbox Code Playgroud)

我的Android Studio版本是3.4

java git android gitlab android-studio

37
推荐指数
10
解决办法
4734
查看次数

在推送git用户时,Gitlab会提示输入密码

我在linode的服务器上安装了gitlab.gitlab的所有服务都很棒.我能够登录,创建用户,回购等.但我遇到的问题是,当我尝试推送回购时,它会为git用户提示密码,如下所示:

git@gitlab.myserver.com's password
Run Code Online (Sandbox Code Playgroud)

我已按照安装gitlab的说明进行操作:https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md并禁用登录使用安装中提到的以下行获取用户git指南:

sudo adduser --disabled-login --gecos'GitLab'git

我正在使用gitlab版本6.可能是什么问题?

输出:ssh -Tvvv git@gitlab.myserver.com如下:

OpenSSH_5.9p1 Debian-5ubuntu1.1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to gitlab.myserver.com [MY_IP] port 22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/swaroop/.ssh/id_rsa" as a RSA1 public key
debug1: identity file /home/swaroop/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist …
Run Code Online (Sandbox Code Playgroud)

git ssh gitlab git-shell

36
推荐指数
5
解决办法
7万
查看次数

我怎样才能让gitlab-ci-runner的DinD图像缓存中间图像?

我有一个Dockerfile,从安装texlive-full软件包开始,这是一个巨大的,需要很长时间.如果我docker build在本地,安装后创建的中间图像被缓存,后续构建很快.

但是,如果我推送到我自己的GitLab安装并启动GitLab-CI构建运行器,这似乎总是从头开始,重新下载FROM映像,再次执行apt-get安装.这对我来说似乎是一个巨大的浪费,所以我试图弄清楚如何让GitLab DinD图像在构建之间缓存中间图像,到目前为止没有运气.

我已经使用了尝试--cache-dir,并--docker-cache-dirgitlab-runner register命令,都无济于事.

这甚至是gitlab-runner DinD图像应该能够做到的吗?

我的.gitlab-ci.yml:

build_job:
    script:
    - docker build --tag=example/foo .
Run Code Online (Sandbox Code Playgroud)

我的Dockerfile:

FROM php:5.6-fpm
MAINTAINER Roel Harbers <roel.harbers@example.com>
RUN apt-get update && apt-get install -qq -y --fix-missing --no-install-recommends texlive-full
RUN echo Do other stuff that has to be done every build.
Run Code Online (Sandbox Code Playgroud)

我使用GitLab CE 8.4.0和gitlab/gitlab-runner:latest作为跑步者

docker run -d --name gitlab-runner --restart always \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v /usr/local/gitlab-ci-runner/config:/etc/gitlab-runner \
    gitlab/gitlab-runner:latest \
; …
Run Code Online (Sandbox Code Playgroud)

gitlab docker gitlab-ci gitlab-ci-runner

36
推荐指数
1
解决办法
9633
查看次数