hudson

Hudson git commands are *incredibly* slow

心不动则不痛 提交于 2019-12-06 01:34:21
I have installed msysgit, and I am attempting to use it inside of Hudson. Whenever I run a command in an interactive shell, whether it be git-bash or a command prompt, the commands are instant. When I run them in Hudson, they lag for a very long time. Running /bin/git help took 63 seconds when I just invoked it. I've never waited long enough to see a clone begin outputting (>10 minutes). The Hudson mailing list is down, so I figured I would try here... I've run into this problem as well, and figured out a workaround. When Hudson runs as a service, something is missing that your normal desktop

Hudson infinite loop polling for changes in Git repository?

谁说胖子不能爱 提交于 2019-12-06 00:57:18
问题 The git plugin for hudson works well. However, the build script must update a version number in the files in the repository, commit, and push back to the repository. When Hudson polls next to check for changes, it goes into an infinite loop because it sees that commit as a "change" builds again, which commits a change, so it builds again, then it commits another change, etc... You get the idea. I stopped it, ran a "git log" in each repository and compared the latest commit ids are exactly the

How to make dynamic drop down lists on parameterized build page in a custom Hudson plugin?

妖精的绣舞 提交于 2019-12-06 00:37:51
问题 I am trying to achieve the following for a parameterized hudson job: when a user clicks on 'build now' he should be presented with three drop down list parameters viz., Environment, Server, Port. I want the drop down to be dynamic i.e on changing the value of environment the list of servers should change accordingly and similarly the values of port should change on the basis of selected server. Once a user makes the final selection, all three values from the dropdowns are to be used to make a

Extracting Tomcat Zip SOMETIMES fail with IOException: Negative seek offset

大兔子大兔子 提交于 2019-12-05 22:12:17
I am using maven cargo with its zip url installer feature to download a tomcat for my integration tests. This works fine on my computer, but when its run in husdon it fails sometimes (round about 10-20%). The failure is: Error while expanding /home/hudson/workspace/My Test Media-Archive/cfma/target/cargo/install/apache-tomcat-6.0.32.zip java.io.IOException: Negative seek offset at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:148) at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:107) at org.codehaus.cargo.container.installer.ZipURLInstaller.unpack(ZipURLInstaller.java

Fail hudson build with groovy script

六月ゝ 毕业季﹏ 提交于 2019-12-05 22:01:10
问题 I have a couple of post build actions that I run on my Hudson build. They are currently bash scripts, and if I want to fail the biuld from them, I just return a non-zero value. Is there a way to fail the build from another scripting language (such as groovy)? Do I just write a script that also returns non-zero? Or is there a particular plugin I need to enable this? thanks, Jeff 回答1: The Groovy Postbuild Plugin seems to be what you need, and has a method called buildFailure() which sets the

Maven, Hudson and Dynamic Clearcase Views

别说谁变了你拦得住时间么 提交于 2019-12-05 20:14:53
This led on from the question about asking if Apache Maven and IBM Rational ClearCase integrated well. Thought I should write up what I found out - will require various edits, but I shall eventually get round to adding it all I hope. Environment ClearCase - Version 7.0.1.2 of ClearCase. Maven - All of them, from the Maven website . Hudson - Version 1.307 downloaded straight from the Hudson website Questions Does Maven run from a VOB? I installed all the versions of Maven2 into a VOB 'stacked', i.e. I added Version 2.0 - labelled it, locked the label - then added 2.0.1 on top. To prevent there

maven deploy to tomcat cluster (multiple) in one line

主宰稳场 提交于 2019-12-05 20:08:53
We're trying to have maven deploy to many multiple servers that form our cluster in just one line. This solution works just fine except that we need to run it repeatedly (1 time per server installation) and our goal is to do it after our integration server (jenkins) buils a successful artifact. And having a matrix feature is not really an option at this time. Why build again the project per server if we just need to deploy it? (plus the time spend doing this) We've been experimenting using maven profiles (one per server and trying to activated them all at once, or one big profile with all

Which settings.xml is used by jenkins slave?

旧街凉风 提交于 2019-12-05 18:39:45
问题 I have a Jenkins master (running on a small Linux box) and a Jenkins slave (running on a "correct" XP machine). I have configured both for all jibs to be run on the Windows XP slave. Unfortunatly, each time a build is run on that slave, the build fails due to the following error : ERROR: Ignore Problem expanding maven opts macros org.jenkinsci.plugins.tokenmacro.TokenMacro Found mavenVersion 3.0.3 from file jar:file:/E:/java-ext/apache-maven-3.0.3/lib/maven-core-3.0.3.jar!/META-INF/maven/org

Jenkins Build error java.lang.ClassNotFoundException: hudson.remoting.Launcher

▼魔方 西西 提交于 2019-12-05 18:17:42
问题 I am trying to integrate jenkins with svn. I have configured maven_home, java_home (java 1.5 update 22). I am using jenkins version 1.459 . One of my colleague successfully configured jenkins with the svn.But as now we are using a different branch, I wanted to add a new job so that it checkout from the new branch and continuous integrate the project. Jenkins is running in a remote linux machine and I use vpn to connect to the server and set up the things.What am I missing. Modules changed,

Auto respond 'yes' for 'grails war' on Hudson

一世执手 提交于 2019-12-05 15:41:57
We're using 'grails war' to build a war on hudson then another job to deploy to our test environment. The problem is that when the 'grails war' encounters a plugin upgrade, it will continuously ask the user to upgrade certain plugins. Is there a way to respond 'y' on all user input? I tried --non-interactive but that seems to do nothing. You may need to put quotes around the run target in the Targets text field: "war --non-interactive" yes | grails war assuming your on OSX/unix/Linux/cygwin. That answers yes for all questions that the program you pipe it to asks. if you only want to say yes