hudson

Can't run gradle on jenkins slave

倾然丶 夕夏残阳落幕 提交于 2019-12-12 15:28:36
问题 I've configured a jenkins ubuntu slave and I want to run my gradle build on it(with gradle plugin). The problem is that when running the jenkins build job I get: $ gradle --no-daemon --info clean build FATAL: command execution failed java.io.IOException: Cannot run program "gradle" (in directory "/var/jenkins/workspace/dadi"): java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at hudson.Proc$LocalProc.<init>(Proc.java:244) at

How to have Jenkins ignore certain files when checking for change?

£可爱£侵袭症+ 提交于 2019-12-12 14:12:26
问题 In the "Excluded Regions" of the CVS configuration, I have added the following: .*/.*/.*\.d .*/.*/.*\.o .*/.*/.*\.so .*/.*/.*\.a .*/.*/.*\.exe .*/.*/.*\.obj .*/.*/.*\.dll .*/.*/.*\.lib .*/.*/.*\.txt .*/.*/.*\.tar .*/.*/.*\.tar\.gz All files with the above extensions should be ignored. However, Jenkins still runs builds based on the fact that a file "build.txt" in some folder ABC has changed, or the one of the tar.gz files has changed. How to get Jenkins to ignore these files? Is something

Hudson/Jenkins PMD Configuration

末鹿安然 提交于 2019-12-12 14:11:27
问题 I am new to Jenkins and just started configuring it. This is what i have done till now: Installed and configured Jenkins to display the home page. Added PMD plugin. Set the HUDSON_HOME to a specific directory > C:\Work\Jenkins Configured a test build to run a simple do-nothing ant script. It runs successfully Written an independent pmdbuild.xml to run checks on a set of files in C:\myview (I am using clearcase). This xml also copies the output pmd_results.xml to the workspace directory in

2 instances of Sonar on same machine

做~自己de王妃 提交于 2019-12-12 13:11:26
问题 Can we run 2 instances(2 different versions) of Sonar on same machine? At present Sonar 3.7.3 is installed and is been used with Hudson for Sonar Reports. Now, there are some projects that run on Java 8 and Java 8 is not supported by 3.7.3 Sonar version. So to run the Java 8 projects, I need to use the latest version of Sonar but upgradation of Sonar would impact the existing projects that run on Java 6. So can we configure 2 Sonar instances and can configure Hudson accordingly so that both

How to setup TFS2010 to use Jenkins build server

北慕城南 提交于 2019-12-12 11:41:04
问题 We use Jenkins as our CI build server but have moved over to TFS to do all the project management stuff (user stories, dev tasks, test cases, reporting, automation). How do I setup TFS2010 to use our Jenkins build server? 回答1: it's actually more like the other way around. You need to configure the TFS plugin for Jenkins, telling it to use TFS as your source control system. below is a link to the jenkins TFS plug-in... https://wiki.jenkins-ci.org/display/JENKINS/Team+Foundation+Server+Plugin

Is it possible to delete a hudson job programmatically via REST API?

爷,独闯天下 提交于 2019-12-12 10:34:45
问题 I can create jobs using /createItem?name=JOBNAME, but cant find anything in the docs about deleting jobs. 回答1: Discovered by looking into how the delete button does it that you can just post to joburl/doDelete a bit like this.. wget -qO- --post-data="anything" http://HOST/job/JOBNAME/doDelete > /dev/null 回答2: Go to <JobURL>/api/? You will get below text. Delete a job To programmatically delete this job, do HTTP POST to this URL. DISCLAIMER: I tested it with Jenkins. But this should also work

Maven + FindBugs - fail on high-priority warning

↘锁芯ラ 提交于 2019-12-12 10:34:10
问题 I am using Maven and FindBugs on a large project. I would like to cause a maven build to fail if FindBugs yields any high priority errors. A simple parameter can be set within a pom.xml to fail on errors but I need it to fail on high priority warnings. Any suggestions would be huge! 回答1: I suspect you are already aware of the findbugs:check goal available for the plugin. Setting the threshold configuration item to High should limit the goal to failing only on High priority issues. Here is an

Hudson: Copy artifact from master to slave fails

孤人 提交于 2019-12-12 08:59:53
问题 Is it possible to use the 'copy artifact' plugin to copy an artifact from a job that ran on master to a downstream job that runs on a slave node? I'm getting an error on the slave that says: hudson.util.IOException2: hudson.util.IOException2: Failed to extract /srv/hudson/jobs/myproject/builds/2011-04-29_10-28-54/archive/myartifact.foo Obviously that path is not valid, as it points to the artifact folder on master. Am I missing something or is this just not possible? 回答1: Yes, it is possible.

Marking upstream Jenkins/Hudson as failed if downstream job fails

谁都会走 提交于 2019-12-12 08:18:44
问题 I am using Parameterized Trigger Plugin to trigger a downstream build. How do I specify that my upstream job should fail if the downstream fails? The upstream job is actually is dummy job with parameters being passed to the downstream. 回答1: Make sure you are using the correct step to execute your downstream jobs; I discovered that since I was executing mine as a "post build step", I didn't have the "Block until the triggered projects finish their builds" option. Changing that to "build task"

Can my build stipulate that my code coverage never get worse?

岁酱吖の 提交于 2019-12-12 08:04:54
问题 I am using hudson CI to manage a straight java web project, using ant to build. I would like to mandate that the unit test coverage never be worse than the previous build, thereby making sure any new code is always tested, or at least the coverage is continually improving. Is there a hudson plugin that works this way? Edit: I am currently using Emma, but would be willing to switch to another coverage app. Also, as a clarification, I've seen the thresholds in some Hudson plugins, but that's