Tag: jenkins

泊坞窗jenkins图像login错误

我是新来的docker工人,我试图在docker上使用jenkins。 所以我用这个命令拉jenkins形象 docker pull jenkins jenkins安装没有任何错误。 之后,我开始jenkins像文件说的形象。 https://hub.docker.com/r/_/jenkins/ docker run -p 8080:8080 -p 50000:50000 -v /your/home:/var/jenkins_home jenkins 所以我试图loginhttp://localhost:8080/但我得到login错误。 它的说去https://wiki.jenkins-ci.org/display/JENKINS/Logging检查。 我检查了,我需要打开/var/log/jenkins/jenkins.log文件生成pipe理员密码。 我试图达到与bash提交的。 我没有得到这个文件。 我怎样才能到达文件? 如何在Docker等上达到我生成的密码或jenkins文件 谢谢。

如何在成功构buildJenkins之后创build自动泊坞窗图像?

一旦构build成功,我想通过Jenkins创build一个自动泊坞窗图像。 我尝试通过在执行shell中提供docker命令但抛出command not found错误。如果这是不正确的方式如何在Windows 10中实现这一点。 错误: ……………. ……………. 12 passing (81ms) + docker build -t snapshot . C:\WINDOWS\TEMP\jenkins6038297422360146327.sh: line 4: docker: command not found Build step 'Execute shell' marked build as failure Finished: FAILURE 即使在jenkins里面安装docker之后,它并没有select我的docker url 在jenkins里面的Docker 完整的Docker URL错误 用TLS创build一个新的vm false: docker-machine create -d virtualbox –engine-opt tlsverify=false node2 检查TLS是假的我跑下面的命令 docker-machine env node2 这里DOCKER_TLS_VERIFY =“1” ,但是在文档中提到DOCKER_TLS_VERIFY […]

jenkins – 不能运行程序“docker”

尝试使用声明式pipe道使用docker代理程序… pipeline { agent { docker { image 'rubygem/calabash-cucumber' } } … 构build作业finddocker镜像,然后跳过所有阶段并退出Javaexception: [test_automation] Running shell script + docker pull rubygem/calabash-cucumber Using default tag: latest latest: Pulling from rubygem/calabash-cucumber Digest: sha256:cc6a06017009f0a68b93db33c2ced09a224ce2b8754efadaed16c18190e56ee4 Status: Image is up to date for rubygem/calabash-cucumber:latest [Pipeline] } [Pipeline] // stage [Pipeline] sh [test_automation] Running shell script + docker inspect -f . […]

Jenkinspipe道可以写/configuration一个单独的Jenkins作业吗?

我有一个Jenkinspipe道build立docker图像,并用git hash标记它们。 我还有另一个参数化的Jenkinspipe道,这个pipe道需要一些string/select参数来部署泊坞窗图像。 我希望构buildpipe道将一些string附加到部署pipe道中的select参数,这样当用户运行部署pipe道时,他/她只会看到最近成功构build的泊坞窗图像列表供您select。 有人知道怎么做吗?

在使用自定义生成环境插件时,拒绝Dockerfile的权限

我正在使用自定义生成环境插件(1.6.5),并configuration我的Dockerfile来build立它在jenkins奴隶容器内。 问题 – 我能够从Dockerfile构build图像,但构build失败,出现以下错误。 + /path/to/jenkins-slave/workspace/Dockerfile /tmp/hudson5103005593128970928.sh: 2: /tmp/hudson5103005593128970928.sh: /path/to/jenkins-slave/workspace/Dockerfile: Permission denied Build step 'Execute shell' marked build as failure Stopping Docker container after build completion Finished: FAILURE Dockerfile有 – FROM php:5.6.11-apache

Jenkins Docker Plugin似乎并没有为Jenkins构buildconfiguration从属容器

Docker主机金属操作系统 – CentOS 7.3 Jenkins Master在Docker主机金属的容器中运行 jenkins2.6 Docker主机金属监听端口4243 我不是很熟悉Jenkins Docker插件 ,这可能是我的问题。 但现在我的问题是,我期待的Docker插件在我的Docker主机上旋转容器,我已经在JenkinsconfigurationDocker插件中将我的Docker主机configuration为一个Cloud,而Docker插件可以连接到我的Docker主机按“testing连接”: 我在Docker Hub上使用了一个非常常见的Docker镜像作为Slave,在这一点上并不重要,因为Docker插件甚至没有尝试启动一个Docker容器从站: 这里是我简单的jenkins工作的configuration,运行,拉动源代码和完成没有错误,永远不会在任何一点转动奴隶容器towork: 下面是运行的输出没有错误: 安装Docker插件后,我重新启动了Jenkins Docker安装在我的Jenkins主容器上 Docker插件可以和我的Docker主机通信 这是我的Jenkins Master Dockerfile #reference #https://engineering.riotgames.com/news/putting-jenkins-docker-container FROM jenkins:2.46.3 MAINTAINER Brian Ogden #setup folder for jenkins to log and save war file to USER root RUN apt-get update && apt-get install -y make apt-transport-https ca-certificates curl gnupg2 software-properties-common […]

量angular器testing在Jenkins的Docker中随机超时,在本地Docker中正常工作

当使用由Protractor&Jasmine (默认/支持的量angular器运行程序)定义的API时,testing在个别开发人员笔记本电脑上始终可以正常工作。 由于某些原因,在Jenkins CI服务器上运行testing时,它们将会失败(尽pipe在两台主机上都有相同的docker容器,而且非常令人沮丧)。 发生此错误: Jasmine规范超时。 重置WebDriver控制stream程。 出现此错误: 错误:超时 – 在由jasmine.DEFAULT_TIMEOUT_INTERVAL指定的超时时间内未调用asynchronouscallback。 将getPageTimeout & allScriptsTimeout设置为30秒对此没有影响。 我尝试将jasmine.DEFAULT_TIMEOUT_INTERVAL更改为60秒,以便在此套件中的所有testing中,一旦出现第一个错误,那么每个testing都将等待完整的60秒并超时。 我已经阅读并重读了量angular器的页面,但是没有一个与这种情况有关。 甚至更奇怪的是,这似乎是某种缓冲区问题 – 起初testing将总是在特定的规格上失败,没有任何关于该规范的看法是错误的。 在debugging过程中,我将seleniumdocker容器从2.53.1-beryllium升级到了3.4.0-einsteinium ,并且testing仍然失败,但是它们没能成功解决一些问题 – 这意味着在更新中可能会有一些优化,所以能够得到在发出之前做了更多的事情。 我确认,通过重新排列规格的顺序 – 以前一直失败的规格现在已经过去,并且之前通过的testing开始失败(但与重新sorting之前的其他失败大致相同)。 环境: 量angular器 – 5.1.2 selenium/独立铬debugging – 3.4.0-einsteinium docker工 – 1.12.5

我如何在jenkins中安装selenium chrome驱动程序?

我已经拉我的本地主机端口8080 jenkins容器,揭露jenkins。 我可以看到jenkins运行良好。 我已经安装了PIP我已经安装了PIPselenium,当我运行testing时,我得到一个错误: + python /var/jenkins_home/workspace/My_Job/slenium_login.py 12:02:06 Traceback (most recent call last): 12:02:06 File "/var/jenkins_home/workspace/My_Job/slenium_login.py", line 6, in <module> 12:02:06 driver = webdriver.Chrome(cd) 12:02:06 File "/var/jenkins_home/shiningpanda/jobs/5db0e2cb/virtualenvs/d41d8cd9/local/lib/python2.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 62, in __init__ 12:02:06 self.service.start() 12:02:06 File "/var/jenkins_home/shiningpanda/jobs/5db0e2cb/virtualenvs/d41d8cd9/local/lib/python2.7/site-packages/selenium/webdriver/common/service.py", line 81, in start 12:02:06 os.path.basename(self.path), self.start_error_message) 12:02:06 selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see […]

在Docker容器中杀死一个分叉的进程,让容器在Jenkins docker slave插件上退出

我使用docker来build立和testing。 在testing过程中,我的testing用例将启动一个单独的进程(mongod进程),testing用例完成后将终止该进程。 在整个testing用例运行期间, mongod进程会被生成并被杀死很多次。 我遇到的问题是当mongod进程被终止,docker容器退出,代码137.我的docker文件如下: FROM ubuntu RUN sed -i -e 's/us.archive.ubuntu.com/archive.ubuntu.com/g' /etc/apt/sources.list && apt-get update && apt-get install -y curl RUN apt-get update && apt-get install -y –no-install-recommends \ openssh-client openssh-server rsync vim \ dh-autoreconf libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev \ && curl -OL https://github.com/git/git/archive/v2.13.1.tar.gz \ && tar -zxf v2.13.1.tar.gz && cd git-2.13.1 && […]

Docker构build和运行只能在第一个stream浪汉中进行

问题:有没有一种方法可以在首次创buildstream浪机时创build并运行泊坞窗图像? 问题:当运行vagrant provision我得到一个错误说, docker: Error response from daemon: Conflict. The container name "/jenkins" is already in use by container <snip> docker: Error response from daemon: Conflict. The container name "/jenkins" is already in use by container <snip> 。 附加信息:我跑了vagrant provision因为我添加了plugins.txt文件的另一个插件来自动安装设置jenkins机器时。 我通过这种方式创build了构build脚本,以使stream浪机的构build尽可能快,并且尽可能小的泊坞窗(仍然需要在这里工作)。 另外,因为我想删除Jenkins设置GUI,并创build了一个默认的pipe理员帐户。 Vagrantfile: Vagrant.require_version ">= 1.5" Vagrant.configure("2") do |config| config.vbguest.auto_update = false config.vm.provider :virtualbox do […]