hudson-plugins

How to make a Jenkins/Hudson job surveil some others jobs and decide whether to build or not?

为君一笑 提交于 2019-12-28 03:38:29
问题 PROBLEM Given that all the jobs have string LEVEL_X in it's job name, where X is a number > 1. I want every job with X = n to surveil every job with X = n-1 , and start building if each of them is finished with success. And I want the job with X = n to surveil the other jobs with an interval of 1 minute. First of all, I am interested in knowing what the best way is to do that, second I want the solution if one can be implemented by a small script, maybe a groovy script which can be run in

To get build status through environment variable

荒凉一梦 提交于 2019-12-25 05:05:48
问题 I am using jenkins for continous integration. For my build purpose, i triggering email using Ant task. I am not able to find an environment variable to pass ant for sending email build status(success/failure/stable). i want to know how can i get environment variable for build status?..if not available, what is the alternative option for build status? Thanks in Advance varghese 回答1: Why use ANT to send emails from Jenkins when you have two great plugins that does just that? The default mail

Legacy Maven 2 job type Plugin with Maven 3.2.1 not working

ⅰ亾dé卋堺 提交于 2019-12-24 01:02:37
问题 I try to use Hudson (3.3.3) and Legacy Maven 2 job type Plugin (3.0.2) with Maven (3.2.1), but I get an error. Is there a way to use Maven 3.2.1? Job log: Found mavenVersion 3.2.1 from file jar:file:/C:/Users/dur/.hudson/tools/Maven_3.2.1/lib/maven-core-3.2.1.jar!/META-INF/maven/org.apache.maven/maven-core/pom.properties Parsing POMs [workspace] $ "C:\Program Files\Java\jdk1.7.0_25/bin/java" -cp C:\Users\dur\.hudson\plugins\maven-plugin\WEB-INF\lib\maven3-agent-3.0.2.jar;C:\Users\dur\.hudson

How to get a better performance from Hudson CI API?

人盡茶涼 提交于 2019-12-24 00:27:23
问题 I'm trying to write a little tool for myself that would integrate with Hudson build server. The current roadblock that I've hit is performance. I'd like to do a simple thing like have a list of all jobs and the times of last successful build. The hudson API provides this information, but I either have to query everything at depth=2 or query each job individually (there's 150 of them currently). Even with exclude either approach takes over half a minute. This is unacceptable for a UI that

Jenkins Dynamic parameters based on previously selected parameter value

∥☆過路亽.° 提交于 2019-12-20 17:39:19
问题 Here I am basically looking for a dependency parameter. Let's say I have two dropdowns in the build parameter section. Based on the value selected from the first dropdown the possible default I want the values of the second dropdown to vary. Is there any plugin or approach to handle this requirement effectively? 回答1: This is exactly what you are looking for: https://github.com/biouno/uno-choice-plugin/wiki/Uno-Choice-Cascade-Dynamic-Choice-Parameter It seems to be a hidden gem, haven't found

Hudson — Step by step guide to set up master and slave machines

♀尐吖头ヾ 提交于 2019-12-18 15:44:06
问题 As you can see, the link to that on the hudson website is dead. So, I was hoping for a little step by step for setting up a windows slave with a linux master. I managed to setup hudson on the windows machine, but how do i link the slave to report back to the master and initiate build from the master to run on the windows slave. Basically how is the flow of data between the master/slave achieved, I know this can be done but there is no documentation online that explicitly says do this. I would

Creating SSH keys for Gerrit and Hudson

这一生的挚爱 提交于 2019-12-17 02:33:11
问题 I'm trying to use the Hudson Gerrit Trigger plug-in. For whatever reason, Gerrit is not accepting the SSH key located at /var/lib/hudson/.ssh/id_rsa . In the GUI I get Connection error : com.jcraft.jsch.JSchException: Auth fail as an error, and when I'm working in the terminal I get a Permission denied (publickey) error. How can I generate and use a working private key so Hudson and Gerrit can play nice? 回答1: The OP Josh Smith managed to sort it out: I'd actually needed to add the SSH key

Using a variable obtained using a pre-build shell command to set an option for the Maven build in Hudson

穿精又带淫゛_ 提交于 2019-12-13 05:16:31
问题 I have a Hudson job that runs a maven goal. Before this maven goal is executed I have added a step to run before the build starts, it is a shell script that obtains the version number that I want to use in the 'Goals and options' field. So in my job configuration, under Build Environment I have checked the Configure M2 Extra Build Steps box and added a shell script before the build. The script looks like this: export RELEASE={command to extract release version} echo $RELEASE And then under

Jenkins (formerly Hudson) Plot Plugin: Illegible Font

為{幸葍}努か 提交于 2019-12-13 01:26:53
问题 The text within the plots generated by Jenkins' Plot plugin is illegible, as it uses a very small cursive font. It appears as though I am missing a Java font used by this plugin; however, I have no idea how to install or find such fonts. I'm using OpenJDK 1.6.0, and have JRE 6u23 installed. It's the same issue experienced at the Labels-are-unreadable-in-charts, but much to my dismay, the user did not post the solution after figuring out how to fix the problem. 回答1: I'm not sure if this helps

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"