hudson-plugins

How to pass ${CHANGES} to downstream job?

ぐ巨炮叔叔 提交于 2019-12-01 05:58:21
I have upstream job that polls SVN for changes. If changes are detected, the build is started. After the build, the upstream project calls downstream project to run test. I'm using "Trigger Parameterized Build". I want that downstream project will be able to send an email with test results and SVN changes that cause to the build/test. But the problem is that if I'm using ${CHANGES} variable in downstream it appear to be empty. How can I pass ${CHANGES} from upstream project to downstream project? You can get the change set or the values you need with groovy script: def jenkins = Jenkins

Jenkins/Hudson SVN Issue

人盡茶涼 提交于 2019-12-01 05:19:28
I have a (strange) issue on my Jenkins installation which basically leads to SVN updates failing on an alternate basis. The stack trace shows two issues: hudson.util.IOException2: revision check failed on (my repo).... and Caused by: org.tmatesoft.svn.core.SVNException: svn: OPTIONS (my repo) If I rerun a build after this happens, everything works just fine. Mark Edit by ganders with exact same issue: Here's the stack trace from my machine that causes this error. It would appear as though it occurs when it tries to access the SVNExternals directory (.../trunk/common), and for some reason it

How to pass ${CHANGES} to downstream job?

99封情书 提交于 2019-12-01 03:51:27
问题 I have upstream job that polls SVN for changes. If changes are detected, the build is started. After the build, the upstream project calls downstream project to run test. I'm using "Trigger Parameterized Build". I want that downstream project will be able to send an email with test results and SVN changes that cause to the build/test. But the problem is that if I'm using ${CHANGES} variable in downstream it appear to be empty. How can I pass ${CHANGES} from upstream project to downstream

Jenkins/Hudson SVN Issue

泪湿孤枕 提交于 2019-12-01 02:51:11
问题 I have a (strange) issue on my Jenkins installation which basically leads to SVN updates failing on an alternate basis. The stack trace shows two issues: hudson.util.IOException2: revision check failed on (my repo).... and Caused by: org.tmatesoft.svn.core.SVNException: svn: OPTIONS (my repo) If I rerun a build after this happens, everything works just fine. Mark Edit by ganders with exact same issue: Here's the stack trace from my machine that causes this error. It would appear as though it

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

女生的网名这么多〃 提交于 2019-11-30 13:45:25
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 appreciate as detailed as an answer you could give. Please, and thank you. I actually archived the

groovy.lang.MissingPropertyException: No such property: manager for class: Script1

时光怂恿深爱的人放手 提交于 2019-11-30 08:17:16
I am trying to invoke Groovy inside Hudson (using groovy plugin) to get some properties for our build. But I am getting this exception: groovy.lang.MissingPropertyException: No such property: manager for class: Script1 I get this with the following line: def buildNUmber = manager.build.number This happens when I run as an inline command within Jenkins as well as using a script: I tried the solution below, but it fails during the declaration itself (line two): Binding binding = new Binding(); binding.setVariable("manager", manager); GroovyShell shell = new GroovyShell(binding); shell.evaluate

Can Hudson slaves run plugins?

大兔子大兔子 提交于 2019-11-30 03:57:22
We have a custom plugin for Hudson which uploads the output of a build onto a remote machine. We have just started looking into using a Hudson slave to improve throughput of builds, but the projects which use the custom plugin are failing to deploy with FileNotFoundExceptions. From what we can see, the plugin is being run on the master even when the build is happening on the slave. The file that is not being found does exist on the slave but not on the master. Questions: Can plugins be run on slaves? If so, how? Is there a way to identify a plugin as being 'serializable'? If Hudson slaves can

groovy.lang.MissingPropertyException: No such property: manager for class: Script1

你说的曾经没有我的故事 提交于 2019-11-29 11:21:53
问题 I am trying to invoke Groovy inside Hudson (using groovy plugin) to get some properties for our build. But I am getting this exception: groovy.lang.MissingPropertyException: No such property: manager for class: Script1 I get this with the following line: def buildNUmber = manager.build.number This happens when I run as an inline command within Jenkins as well as using a script: I tried the solution below, but it fails during the declaration itself (line two): Binding binding = new Binding();

Can Hudson slaves run plugins?

﹥>﹥吖頭↗ 提交于 2019-11-29 01:34:41
问题 We have a custom plugin for Hudson which uploads the output of a build onto a remote machine. We have just started looking into using a Hudson slave to improve throughput of builds, but the projects which use the custom plugin are failing to deploy with FileNotFoundExceptions. From what we can see, the plugin is being run on the master even when the build is happening on the slave. The file that is not being found does exist on the slave but not on the master. Questions: Can plugins be run on

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

。_饼干妹妹 提交于 2019-11-27 11:51:23
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 system groovy script using the GROOVY PLUGIN. Here are some hints and code snippets: There is a Groovy