hudson

how to configure jenkins to work with websvn

孤街醉人 提交于 2019-12-04 07:59:28
I started using jenkins and now trying to configure it to use websvn for diff and files view. I saw a post that say I have to configure multyviews. but I dont understand exactly what it means and how to work with it after it is configured. The solution was to use websvn2 plugin of jenkins which support the url with parameters 来源: https://stackoverflow.com/questions/5564014/how-to-configure-jenkins-to-work-with-websvn

Having Latest Tests Results info in the notified email with Hudson

拜拜、爱过 提交于 2019-12-04 07:47:43
I have a project with a lot of tests failing, so it would be great for me to receive by email the number of failed tests compare from the latest build. What i need is just the info that appears in the project's page by the test results link: Latest Test Result (10 failures / -2) Is this possible? I've already tried the email-ext plugin, but it is not telling me that info (I can have the list of failing tests with output etc., but I really just need that info above). Any ideas? In the end I used a patch for the email-ext plugin, that allows you to have a groovy template for your email. I think

Hudson infinite loop polling for changes in Git repository?

依然范特西╮ 提交于 2019-12-04 06:55:38
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 same using git ls-tree HEAD Also, Hudson runs this command to check for changes: git fetch +refs/heads

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

这一生的挚爱 提交于 2019-12-04 05:23:52
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 single value to be passed to the build job as a parameter. I am stuck at how to achieve this in a

Jenkins Plugin: create a new job programmatically

匆匆过客 提交于 2019-12-04 04:55:20
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. Steve You can create a new hudson/jenkins job by simply doing: FreeStyleProject proj = Hudson.getInstance().createProject(FreeStyleProject.class, NAMEOFJOB); If you want to be able to handle updates (and you already have the config.xml ): import hudson.model

Configure a hudson maven job to keep building if there are test failures, but only deploy if there are no test failures

落花浮王杯 提交于 2019-12-04 03:25:56
I've created a hudson job for our maven multi-project with 5 modules to deploy the SNAPSHOT artifacts to the maven repository. That's ok, as long as it builds successfully without test failures. However, now I'd like to fulfill the following requirements: When a module has a test failure, the build should continue bulding and test the other modules, but turn yellow. Using -Dmaven.test.failure.ignore=true accomplishes, but fails at the next requirement. When a module has a test failure, none of the artifacts should be deployed to the maven repository. Other projects depend on the snapshots this

Limiting log size of jenkins.log or hudson.log

雨燕双飞 提交于 2019-12-04 03:22:02
I use Hudson as well as Jenkins and I have several jobs on them. From time to time my hudson.log/jenkins.log file grows enormously. I am aware that the size of same can be limited. Please help in how to change and in what file the change has to be made. You can use logrotate . You can find more information about logrotate on this kb article . Here is how logrotate is configured on my system ( /etc/logrotate.d/jenkins ): /var/log/jenkins/jenkins.log /var/log/jenkins/access_log { compress dateext maxage 365 rotate 99 size=+4096k notifempty missingok create 644 postrotate if [ -s /var/run/jenkins

Fail hudson build with groovy script

醉酒当歌 提交于 2019-12-04 03:17:13
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 The Groovy Postbuild Plugin seems to be what you need, and has a method called buildFailure() which sets the build result to FAILURE. A way to do this programmatically within the Groovy script is: throw new hudson

Which settings.xml is used by jenkins slave?

孤者浪人 提交于 2019-12-04 02:50:31
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.apache.maven/maven-core/pom.properties Parsing POMs ERROR: Echec à la lecture des POMs hudson.util

Why hudson/jenkins tries to make commit?

那年仲夏 提交于 2019-12-04 02:20:34
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? J-16 SDiZ Check "Skip internal tag" config under "Advanced..." in section "Source code management". It will skip the tagging. VonC Note: the Hudson bug 3874 mentions: tagging fails if there's no ~/.gitconfig , and you get the following error: