Tag: jenkins

Kubernetes Jenkins交换空间问题

由于“自由交换空间”为0,Jenkins无法build立。我不知道如何解决这个问题。 构build过程保持悬挂。 这里输出的一部分: 当我ssh到实例和docker info我得到一个WARNING: No swap limit support 。

jenkins用docker工具返回状态码128

我有一个与Jenkins和build设项目的问题:昨天一切工作find,没有任何configuration没有改变,没有插件或jenkins已被更新。 这是我的工作输出: ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Command "git -c core.askpass=true fetch –tags –progress git@git.XXX:AAA/0YYY7.git +refs/heads/*:refs/remotes/origin/* –depth=1" returned status code 128: stdout: stderr: /tmp/ssh2047466924933280956.sh: 6: /tmp/ssh2047466924933280956.sh: ssh: not found fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1388) […]

jenkinspipe道dockerbuild设docker代理

我有一个jenkins声明式pipe道构build,运行gradle并使用gradle插件创builddocker映像。 我也使用dockerfile代理指令,因此整个事情在Docker容器中运行。 这与jenkins本身安装在docker工作(我知道,这是很多docker工人)很好。 我有jenkins安装在docker for mac上的docker容器中,根据https://jpetazzo.github.io/2015/09使用-v /var/run/docker.sock:/var/run/docker.sock(DooD) / 03 / do-not-use-docker-in-docker-for-ci / 。 通过这个设置,pipe道docker代理运行良好,并且pipe道docker代理中的docker build命令也运行良好。 我假设jenkins还将dockersockets安装在内部docker集装箱上。 现在我试图运行这个安装在ec2实例上的jenkins,并正确安装了docker。 jenkins用户将docker组作为其主要组。 jenkins用户能够成功运行“docker run hello-world”。 我的pipe道构build启动docker代理容器(基于添加了各种东西的gradle图像),但是当gradle试图运行docker build命令时,我得到以下内容: * What went wrong: Execution failed for task ':docker'. > Docker execution failed Command line [docker build -t config-server:latest /var/lib/****/workspace/nfig-server_feature_****-HRUNPR3ZFDVG23XNVY6SFE4P36MRY2PZAHVTIOZE2CO5EVMTGCGA/build/docker] returned: Cannot connect to the Docker daemon. Is the docker daemon running […]

如何在docker风筝上改变jenkins音量

我正在尝试从Docker Kitematic更改Jenkins默认主机卷,但每当我尝试这样做,我都会得到下面的错误 注意: 我正在使用Docker工具箱我已经将所需的新卷path添加到Docker虚拟机的共享文件夹

Docker全局variables在Jenkinspipe道中不可用

我正在尝试在pipe道作业中使用docker全局variables构build一个docker镜像,该镜像在安装Docker Pipeline插件时变得可用。 我看,他们已经安装,但我无法看到他们在片段生成器链接或调用它们。 我也尝试重新启动系统,使安装有效,但没有预期的结果。 请指教。 jenkins版本:2.46.1 Dockerpipe道版本:1.10 主持人:Windows 10

Jenkins Docker抛出exception并开始离线

我试图让Jenkins在Docker中运行起来。 我正在使用官方回购和拉最新的标签。 docker run -u 498 –name awsjenkins -p 8080:8080 -p 50000:50000 -v /mnt/jenkins:/var/jenkins_home jenkins 它开始好,但它是抛出一个错误: Apr 26, 2017 9:14:27 PM hudson.model.UpdateCenter updateDefaultSite WARNING: Upgrading Jenkins. Failed to update the default Update Site 'default'. Plugin upgrades may fail. java.io.IOException: Server returned HTTP response code: 503 for URL: http://updates.jenkins-ci.org/update-center.json?id=default&version=2.46.2 at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1876) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474) at hudson.model.DownloadService.loadJSON(DownloadService.java:172) at […]

selenium镀铬在jenkins奴隶崩溃

我试图在无头模式下使用selenium运行UItesting。 我看到铬是浏览器崩溃,每当我尝试加载驱动程序。 这是追溯。 Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/behave/model.py", line 1456, in run match.run(runner.context) File "/usr/local/lib/python3.5/dist-packages/behave/model.py", line 1903, in run self.func(context, *args, **kwargs) File "steps/collectorUi.py", line 35, in step_impl assert context.ndpUt.driverInit(title="Pegasus Portal") is not False, 'Initial page title didnt match' File "../collectorSanity/libs/ndpUi.py", line 91, in driverInit browser=self.browser) File "../runner/testutils/seleniumutils.py", line 70, in __init__ executable_path=self.browserPath+self.browserDriver) […]

jenkins集装箱docker推送错误无法响应

我用图像jenkins在Docker容器中运行Jenkins:latest。 插件docker-build-step已经安装。 Docker的构build过程看起来不错,但是当docker push的时候出现了一些问题: docker push error Docker Builder在系统configuration中被configuration如下: Docker生成器configuration IP 172.17.0.1是jenkins容器视图中的主机IP地址。 dockerbuild设工程,但docker推失败是真的让我困惑。 我的configuration或理解有问题吗? 谢谢你!

使用烤面包机查看yocto版本

Currenlty我们正在研究一个在同一个AWS实例上运行的jenkins容器和一个烤面包机容器的项目。 我们的Jenkins容器可以访问实例上的docker,并从Yocto dockerfile中创build一个图像,它将git clone,然后checkout krogoth并最终使用bitbake来构build它。 我们也有一个正在运行的Toaster容器,我们只想查看我们所做的yocto构build。 当我们创build与jenkins成功Yocto,我们的烤面包机不logging这些。

如何将Docker机器暴露给内部networking

我创build了一个docker集装箱我尝试了很多方法,通过以下方式将其公开给我的内部networking: 1-桥接我的Docker VBox机器上的LAN连接,但没有运气 2-Bashing到容器本身和bingingnetworking内的任何机器工作正常,但打开/ etc / hosts文件显示IP是不同于我的容器IP(我不知道如何) 我正在使用docker工具箱: 客户: 版本:17.03.1-ce API版本:1.27 Go版本:go1.7.5 Git commit:c6d412e 内置:星期二3月28日00:40:02 OS / Arch:windows / amd64 服务器: 版本:17.04.0-ce API版本:1.28(最低版本1.12) Go版本:go1.7.5 Git commit:4845c56 build于:周四4月5日18:45:47 2017 OS / Arch:linux / amd64 实验:假 我的容器是jenkins