hudson

How to hook PMD + Clover in Hudson build using maven?

廉价感情. 提交于 2019-12-07 11:35:28
we have newly set-up up a Hudson (yes.. Hudson, not Jenkins) CI. The job scheduled in Hudson does the following a. Connects to IBM ClearCase repository to download the latest source code b. Compiles all java source code and Creates a WAR file (by running the project's pom.xml) c. Deploys it to a Tomcat6 server Now, i want to take it one more step further in-terms of bringing in automatic 'Static Code Analyzers' in this process. I installed PMD/Clover/JavaNCSS plugins in my Hudson instance, but while looking at it's setting, it looks like, these plugins will not perform the static code

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

旧城冷巷雨未停 提交于 2019-12-07 09:07:28
问题 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. 回答1: You may need to put quotes around the run target in the Targets text field: "war --non-interactive" 回答2: yes | grails war assuming your on OSX/unix

Change working directory in ant junit task

坚强是说给别人听的谎言 提交于 2019-12-07 06:07:11
问题 I have a ant file that runs JUnits tests. These tests rely on a relative path to certain configuration files. I've tried to set the working directory for the batch test, but fail. I want the working directory to be ${plugins.dir}/${name} The JUnit part of the ant script: <junit haltonfailure="no" printsummary="on" fork="true" showoutput="true" dir="${plugins.dir}/${name}"> <jvmarg value="-Duser.dir=${plugins.dir}/${name}"/> <classpath> <path refid="project.classpath"/> <pathelement location="

Catch Abort signal on hudson in shell script?

主宰稳场 提交于 2019-12-07 04:51:31
问题 How can we trap the abort signal of the job on hudson so that i can do some post steps in case of abort (I am running a job on hudson which has shell script running in background)? 回答1: I have experienced with Jenkins, not hudson, (Jenkins is a fork of hudson) Jenkins sends a SIGTERM on Unix through Sun's JRE java.lang.UnixProcess.destroyProcess, on Windows, this is done through TerminateProcess API. JENKINS - Aborting a build HUDSON - Aborting a build So you can use "trap" in your shell

Restarting apache with Jenkins or Phing

只谈情不闲聊 提交于 2019-12-07 04:02:48
问题 I'm currently using Phing and Jenkins to automate builds and deployment for my CodeIgniter app. One problem I'm having trouble with is restarting the apache service. I tried in Phing but there isn't enough permissions. What is the best way to restart? EDIT: After adding jenkins into the sudoer file and exec'ing the service httpd restart, Jenkins throws: Process leaked file descriptors. Below is a snippet of the Phing output via Jenkins. It says a workaround is to install daemonize. Not sure

Hudson / Jenkins: share parameters between several jobs

若如初见. 提交于 2019-12-07 02:55:07
问题 I have about 20 jobs using common parameters (user, password), and sometimes the password expires... So I have to change it on all jobs, which is really time consuming (and error prone, I may forget one). I thought about: using a kind of magic property file if that exists to have directly lines like KEY, VALUE added into job parameters adding the same kind of KEY, VALUE pair directly inside build.xml , but where ? And it's really ugly... Maybe with a dedicated XML embedded into the build.xml

expect utility is not working when executing from jenkins

陌路散爱 提交于 2019-12-07 01:32:53
问题 we have a unix script which uses expect utility for interactive execution. This script works well when we run from unix server. If we run this script from Jenkins, it is not working. Below is the script var="xxxxx" expect -c " spawn sudo cp /abcd/sjws/config/obj.conf /abcd/sjws/config/obj.conf_jenkins expect { "Password:" { send $var\r;interact } } exit " Below is the output when we run from jenkins spawn sudo cp /abcd/sjws/config/obj.conf /abcd/sjws/config/obj.conf_jenkins Password: Password

Jenkins - could not read Username for 'https://github.com': No such device or address

元气小坏坏 提交于 2019-12-06 23:01:28
I'm trying to set up Jenkins / Hudson on my Ubuntu PC. That's not the problem but I set an Android job with the following commands: export CLEAN=false export LUNCH=cm_ace-userdebug export REPO_BRANCH=cm-10.1 export RELEASE_TYPE=CM_NIGHTLY curl -O https://raw.github.com/CyanogenMod/hudson/master/job.sh . ./job.sh The job stops after a few seconds because of the error: could not read Username for ' https://github.com ': No such device or address How do I fix this error? Please help! I suspect that Jenkins is attempting to open "/dev/tty" or something to ask you for a user name and password. That

No test report files were found in Hudson with NUnit

天大地大妈咪最大 提交于 2019-12-06 18:52:42
问题 I could successfully run NUnit in Hudson using batch command and it generates the TestResult.xml in the NUnit installation directory. But Hudson generates the error that No NUnit test report files were found. Configuration error? after the correct path is given to the xml file under Publish NUnit test result report . Should the xml file be in the project's workspace or is there any other configuration to make this work??? I referred to the Problem Publishing NUnit Testing Result Reports with

Hudson : “yes: standard output: Broken pipe”

烈酒焚心 提交于 2019-12-06 17:07:37
问题 I need to run a shell script in hudson. That script needs an answer from the user. To give an automatic answer I did the following command line : yes | ./MyScript.sh This works well in Ubuntu terminal. But when I use the same command in the Hudson job, the script will be automated and do all the needed work, but at the end, I get these two lines of error : yes: standard output: Broken pipe yes: write error And this causes the failure to my Hudson job. How should I change my command line to