hudson

Hudson checkout gets stuck at 'git fetch'

主宰稳场 提交于 2019-12-10 06:41:24
问题 I'm using git version 1.6.2.2.1669.g7eaf8 with Hudson Git plugin 0.7.3 on Hudson 1.314 When I trigger a build, Hudson does a git fetch, but it never returns. I had one stuck there for 14 days before I killed it. The console output - it just sits here for days on end: Started by user anonymous Checkout:workspace / C:\hudson\jobs\Group1-git\workspace - hudson.remoting.LocalChannel@3d858159 Last Build : #63 Checkout:workspace / C:\hudson\jobs\Group1-git\workspace - hudson.remoting.LocalChannel

Hudson and maven-release-plugin

有些话、适合烂在心里 提交于 2019-12-10 02:50:08
问题 I'm using Hudson with the maven-release-plugin. As you may know, the maven-release-plugin builds project in 2 steps: release:prepare , then release:perform . How should I configure Hudson to execute release:rollback in case release:perform failed? 回答1: The standard way of performing release with Hudson/Jenkins is the Jenkins M2 release plugin. It wraps the maven release plugin and automates its execution. 回答2: Short answer: don't. Turn off update (do a clean checkout each time). FWIW, in my

How to pass a build number within the MultiJob plugin?

允我心安 提交于 2019-12-10 02:43:09
问题 The MultiJob plugin is great and I want to use it for my build process, but there is one issue I have to solve before: There are three jobs A, B and C. SVN triggers job A and B (parallel execution) and job C starts when A and B have finished. Job C requires the artifacts from job A and B as an input. -> Job A (with A.zip) Trigger -> Job C (use artifacts A.zip and B.zip) -> Job B (with B.zip) To design the workflow with the MultiJob plugin is easy, but I have no clue how to get the

How to Change Hudson Default Interface Language

点点圈 提交于 2019-12-10 02:41:59
问题 I'm running hudson.war through the command line. It launches the interface in my default language, portuguese. How can I change to english? 回答1: Depends on what you want: If you want to change the language only for yourself, change the browser settings. If you want to change it for everyone, there is a plugin for that. 回答2: As far as I know, you have to change browser language. Chrome (Mac) > Preferences > Under the Hood > Web Content > Languages and Spell-checker Settings... Internet

How do i set a private ssh key for hudson / jenkins to access bitbucket?

我只是一个虾纸丫 提交于 2019-12-10 01:50:18
问题 I'm trying to set up a Debian server with Apache2 as a front end to Tomcat 7 running Jenkins - which is working - but i want Jenkins to monitor a private Mercurial repository hosted at bitbucket and I'd like to use SSH. (I've tried with plain https but still no joy - there is a question answer here on SO that recommends using ssh) I've deployed Jenkins using the hot deploy capability of Tomcat by dropping the Jenkins .WAR file into /webapps. I can generate a public/private key pair on the

Hudson integration with UCM ClearCase

偶尔善良 提交于 2019-12-09 22:14:03
问题 I have a linux build machine with JBoss, UCM ClearCase and ant installed. I would like to find out how to configure a continuous integration using Hudson and Hudson clearcase plugin. Can I use an existing dynamic view that is already created. Please give me some basic steps. Thank you in advance. 回答1: Yes you can use an existing dynamic view. The principle is: create the dynamic view on your hudson (master) server indicate in the Hudson Job configuration you want to use an existing dynamic

jenkins配置邮件及增强版邮件通知

妖精的绣舞 提交于 2019-12-09 21:42:38
环境 jenkins:2.5 操作系统:win7 服务器:centos6 工具:CRT 需求 这个月有那么一次jenkins在自动升级(SCM)时失败了,那时刚好晚上7点,直到第二天早上有人点击时,才意识到升级失败,所以想想,我还是配置下构建失败的邮件通知吧! 安装插件 Email Extension Plugin (安装插件,我喜欢先去下载hpi文件,然后再去手动安装) jenkins默认的邮件通知 我先讲解下,默认的。 jenkins默认就有一个邮件通知,只是太简单的,不能个性化或者说定制化。 设置系统管理员邮件地址 邮件通知 ①SMTP服务器:如果你使用的是公司邮箱,那么就询问你自己公司里的运维人员吧;他们一般都知道,至少我就是问公司里的运维人员;要是你打算使用QQ邮箱,那么你需要设置下,网上有教程;网易邮箱默认开启。 说明:SMTP是一种协议 ②用户默认邮件后缀:根据自己情况去设置 ③勾选使用SMTP认证,用户名:根据自己情况设置,密码也是。 ④SMTP端口:默认25 配置好了后,可以勾选 测试,在Test e-mail recipient输入自己的邮箱,看下能否成功。 成功后,我们可以到job中进行配置: 配置好了后,接下来测试,我下面是故意写错echo,使其构建失败,验证邮件。 发送邮件的结果: 可以看出这个邮件内容纯文本,连个超链接都没有,内容也不够丰富!

Jenkins Plugin: create a new job programmatically

徘徊边缘 提交于 2019-12-09 16:13:51
问题 How to create a new Jenkins job within a plugin? I have a Jenkins plugin that listens to a message queue and, when a message arrives, fires a new event to create a new job (or start a run). I'm looking for something like: Job myJob = new Job(...); I know I can use REST API or CLI but since I'm in the plugin I'd use java internal solution. 回答1: You can create a new hudson/jenkins job by simply doing: FreeStyleProject proj = Hudson.getInstance().createProject(FreeStyleProject.class, NAMEOFJOB);

Why hudson/jenkins tries to make commit?

无人久伴 提交于 2019-12-09 15:08:49
问题 I'm using Hudson to clone a Git repository and build it. I'm getting the following error: FATAL: Could not apply tag jenkins-mus-tomcat-2-2 hudson.plugins.git.GitException: Could not apply tag jenkins-mus-tomcat-2-2 It's strange because I don't want Hudson to make any commits. It should only pull and compile. What's the problem and how can I fix it? 回答1: Check "Skip internal tag" config under "Advanced..." in section "Source code management". It will skip the tagging. 回答2: Note: the Hudson

Are setenv hudson plugin variables accessible in status email?

为君一笑 提交于 2019-12-09 14:12:40
问题 I installed the SetEnv plugin and it works fine for getting the variables during a task. unfortunately when i try to use the env variable in the resulting status email I have no luck at all. Is this supposed to work? I've tried both $VARNAME and ${VARNAME} - neither of which get replaced correctly in the email. 回答1: The simplest way to use environment variables (or any variables) in your email notifications is by using the Email-ext plugin. Check their "Content token reference" for specifics