一个Jenkins 1.651主站和从站已经安装在Windows Server 2012上。我需要一种方法来将主站从主站(我已经有了一个启动从站的任务)。 请给我任何build议,以最好的方式进行?
我已经安装了一个github webhook,并在jenkins的github插件上安装了日志。 jenkins似乎收到webhook正确的有效载荷。 然而,日志说,github webhook考虑戳我的工作,然后跳过,因为它没有find一个匹配的存储库 我在jenkins2.1,最近迁移到2.5 Received POST for https://github.com/<org_name>/<repo_name> May 20, 2016 3:17:49 PM FINE org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber$1 run Considering to poke echo_pipeline May 20, 2016 3:17:49 PM FINE org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber$1 run Skipped echo_pipeline because it doesn't have a matching repository. 我已经在pipe道作业的configuration中添加了这个存储库,我也在pipe道中克隆这个存储库。 我还需要在哪里configuration存储库,以便webhook考虑这一点,而不会跳过它
(有趣的是,我得到了一个与virtualbox有关的popup消息,在阅读完之后: 在什么情况下VirtualBox问题应该放在主题上?我决定在这里发表我的问题。) 背景信息: 我们使用Jenkins部署到我们的testing环境,该环境是一个使用Vagrant 1.8.1和VirtualBox 5.0.16的Windows 2012服务器。 设置testing环境涉及使用Vagrant自动启动VirtualBox虚拟机 对于每个新的部署,我们卸载以前的安装,这涉及到运行vagrant destroy来卸载虚拟机。 问题: 间歇性地从Jenkins自动部署期间执行vagrant destroy时,命令失败,并显示以下错误消息: Progress state: VBOX_E_FILE_ERROR VBoxManage.exe: error: Machine delete failed VBoxManage.exe: error: Could not delete the medium storage unit 'BLAH.vmdk' (VERR_SHARING_VIOLATION) VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleUnregisterVM(struct HandlerArg *)" at line 163 of […]
我正在试图将jenkins的变化推向aws的自动化过程。 问题似乎是,在GIT仓库里,我有2个文件夹,一个是docroot ,另一个是database 。 我需要docroot进入/var/www/html和数据库现在应该被忽略。 作为试运行,我正在尝试以下设置: 设置1: 构build后行动 在转移集 Source files: **/* Remove prefix: empty Remote directory: empty Exec command: pwd 结果:错误:发布时出现exception,exception消息[无法创build或更改为目录。 Directory [database]]构build步骤'通过SSH发送构build工件'将构build结果更改为UNSTABLE完成:UNSTABLE 设置2 : 构build后行动 在转移集 Source files: **/* Remove prefix: empty Remote directory: /var/www/html Exec command: pwd 结果:错误:发布时出现exception,exception消息[无法创build或更改为目录。 Directory [var]]构build步骤'通过SSH发送构build工件'将构build结果更改为UNSTABLE完成:UNSTABLE 所有的错误似乎围绕创build一个目录 – 但我不需要创build一个…
我有目前的情况:在我的公司networking中,我们有一台jenkins机器,我们需要访问供应商的回购。 我们希望使用ssh密钥来validation回购。 问题是我们之间有代理。 有没有任何jenkins插件或configuration会自动创build一个通过HTTP代理隧道的SSH?
我正在Jenkins后面运行Jenkins,并使用Let's Encrypt来获得SSL证书。 如果我通过https://jenkins.mydomain.de/访问该网站,一切工作正常。 但是,当我通过http://jenkins.mydomain.de/访问它,Firefox说:“连接被重置。”和curl说:“从服务器的空回复” 我如何debugging? 我真的不知道该在哪里寻找问题。 nginx日志不包含任何关于它的事情。 我怀疑在下面的configuration中关于端口80的部分是由其他指令无效,但我不知道我将如何调查。 $ curl -svL http://jenkins.mydomain.de/ * Hostname was NOT found in DNS cache * Trying my.ip.add.ress… * Connected to jenkins.mydomain.de (my.ip.add.ress) port 80 (#0) > GET / HTTP/1.1 > User-Agent: curl/7.38.0 > Host: jenkins.mydomain.de > Accept: */* > * Empty reply from server * Connection #0 to host […]
我正在将一些Jenkins作业转换成DSL脚本。 其中一些使用github进行SCM,并且由DSL支持,这很容易configuration。 但是,经过超过100次的工作转换之后,我第一次需要指定一个Git可执行文件(到目前为止,所有的工作都使用了默认的),似乎没有办法做到这一点。 job.xml显示了这个: <scm class="hudson.plugins.git.GitSCM" plugin="[email protected]"> <configVersion>2</configVersion> <userRemoteConfigs>…</userRemoteConfigs> <branches>…</branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> <gitTool>Ubuntu Git</gitTool> <submoduleCfg class="list"/> <extensions> <hudson.plugins.git.extensions.impl.SparseCheckoutPaths> <sparseCheckoutPaths> <hudson.plugins.git.extensions.impl.SparseCheckoutPath> <path> octane.pricing/octane.trader/server/work/mif_interface/cfg </path> </hudson.plugins.git.extensions.impl.SparseCheckoutPath> </sparseCheckoutPaths> </hudson.plugins.git.extensions.impl.SparseCheckoutPaths> </extensions> </scm> 除了<gitTool>Ubuntu Git</gitTool>之外,我可以使用DSL来完成所有这些工作。 这在DSL中没有提到,所以我认为这是不支持的,所以我尝试使用configuration块(铭记我还在学习如何使用)。 试了几件事,但我最期待的一件事: configure { project -> project << 'hudson.plugins.git.GitSCM' { paramDefs << 'gitTool' { string('Ubuntu Git') } } } 但没有骰子 – XML仍然显示“默认”选项。 我很惊讶这不能直接在DSL中指定,但任何人都可以看到我在做什么configuration块的错误?
我已经看到了serverfault.com/questions/436138/ulimit-not-reflected-for-jenkins-slave#new-answer,并没有为我工作的步骤,请帮助。 我使用的是红帽上的jenkins,我也有同样的问题。我把ulimit设置为99999,当我用ulimit命令检查ulimit时,我得到了99999,但是从jenkins的工作中我得到了1024.I“/lib64/security/pam_limits.so “和”/lib/security/pam_limits.so".I can not restart jenkins.I already added root soft nofile 99999 root hard nofile 99999 到文件/etc/security/limits.config 请帮忙。
我有一个Jenkins主,占用大约600%的CPU使用率。 它导致平均50的负荷,并使jenkins多次崩溃。 我试图删除几个插件,并清理工作区,以减less作业(我没有很多工作 – 大约50)。 我正在使用Jenkins 2.38,但Jenkins 1.6也是如此。
有没有一种方法获得密码散列的命名LDAP用户,其中用户在运行OSX Sierra和MacOS服务器5.2的MacOS服务器上的Open Directory中定义? 我的用例: 我在Docker容器中使用Jenkins设置CI / CD节点,该容器将运行在运行MacOS服务器的服务器上。 我希望Jenkins容器能够被安全的使用服务器的LDAP打开目录进行安全保护,也就是说,想要修改Jenkinsconfiguration的用户需要使用他们自己的networking用户/密码login到Jenkins。 作为configuration的一部分,我需要将XML文件( config.xml )复制到Jenkins主目录中,并且该文件需要包含保护LDAP系统的用户的哈希密码。 我认为密码哈希存储在一个encryption的目录,因此我想知道如何检索它。 我希望整个部署脚本是自动化的,所以我需要能够为命名用户检索哈希(或重新创build它),以便将其注入到将要放入Jenkins主目录中的XML文件中目录。