hudson

How would I produce JUnit test report for groovy tests, suitable for consumption by Jenkins/Hudson?

房东的猫 提交于 2019-12-03 12:49:51
问题 I've written several XMLUnit tests (that fit in to the JUnit framework) in groovy and can execute them easily on the command line as per the groovy doco but I don't quite understand what else I've got to do for it to produce the xml output that is needed by Jenkins/Hudson (or other) to display the pass/fail results (like this) and detailed report of the errors etc (like this). (apologies to image owners) Currently, my kickoff script is this: def allSuite = new TestSuite('The XSL Tests') /

Hudson git error ssh

只愿长相守 提交于 2019-12-03 12:44:35
If there is anyone that can help me understand why this git repo isn't cloning that would be amazing. I runt the same command from the terminal it works. I hoping to find out where I can put the password so the server can authenticate the connection. Please and thank you. ERROR: Error cloning remote repo 'origin' : Could not clone ssh://build@kdmanalytics.net/usr/local/repository/kdm/git/TestCaseGenerator.git ERROR: Cause: Error performing /usr/bin/git clone -o origin ssh://build@kdmanalytics.net/usr/local/repository/kdm/git/TestCaseGenerator.git /var/lib/hudson/jobs/KDM_Test_Case_Generator

Why is Jenkins ignoring the %PATH% variable when using MSBuild?

大城市里の小女人 提交于 2019-12-03 12:39:43
I am trying to use Jenkins to compile my MSBuild project created with Delphi. I have the MSBuild plugin installed into Jenkins and configured. I'm choosing the specific configuration for my build job. I have set all the environmental variables in Jenkins that are required by the Delphi compiler (from rsvars.bat for you Delphi types.) The project compiles just fine on the command line. If I do it on the command line, MSBuild reports a nice big fat PATH (the correct one) as part of the command line it uses to call the Delphi compiler. However, when I try to use it with Jenkins, the result is

Multiple Jenkins Masters using a Shared Slave pool

走远了吗. 提交于 2019-12-03 12:30:07
问题 I am trying to scale Jenkins for a large organization. Is there a way to have multiple Jenkins masters share a slave pool? For example, if I had 200 Jenkins Masters and I want them to share the same set of 50 Linux slaves. That is, assuming each slave only has 1 executor, if Master A submits a job to the slave pool and it is running on Slave 1, if Master B submits a job to the slave pool, it would try to run on one of the other free slaves, since Slave 1 is already occupied. I know multiple

MSBuild cannot sign a ClickOnce manifest using a temporary key (errors MSB3326 and MSB3321)

徘徊边缘 提交于 2019-12-03 12:21:59
问题 I am trying to build a ClickOnce Windows Forms project (.NET 3.5 / Visual Studio 2010) on a Windows Server computer. (In an effort to automate the build process with Hudson CI.) For signing the ClickOnce manifest I created a temporary key in Visual Studio, temp.pfx . I can successfully build and deploy the project from Visual Studio on my workstation. But when running MSBuild on the server I get the following error messages: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common

How to mark Jenkins builds as SUCCESS only on specific error exit values (other than 0)?

夙愿已清 提交于 2019-12-03 12:18:14
When I run an Execute shell build step to execute a script and that script returns 0 , Jenkins flags the build as SUCCESS , otherwise it flags it as FAILURE which is the expected default behaviour as 0 means no errors and any other value represents an error. Is there a way to mark a build as SUCCESS only if the return value matches a specific value other than 0 (e.g. 1 , 2 , 3 ...)? PS: in case you're wondering why I'm looking for that, this will allow me to perform unit testing of Jenkins itself as my scripts are written to return different exit values depending on various factors, thus

move Hudson job to another server

两盒软妹~` 提交于 2019-12-03 12:17:46
I've setup a continuous integration build with Hudson running on Tomcat. I now need to move this a different instance of Tomcat, but don't want to have to configure everything from scratch. Is there a configuration file that defines each job which I could copy to the new server, or is to possible to import/export a job via the user interface? Thanks, Don Simon Groenewolt Check the .hudson directory in the homedir of the user that runs the hudson process. (At least: that is the location hudson writes its config files to if you run it using java -jar hudson.war on linux). Also: http://wiki

Can I get Tomcat running as a service to dump heap?

萝らか妹 提交于 2019-12-03 12:03:05
I am attempting to have Tomcat, which is currently running as a service on a Windows 2003 box, dump heap on an OutOfMemoryError . (Tomcat is running Hudson, which is reporting a heap space problem at the tail end of my build. Running the build manually produces no such error. The Hudson guys need a heap dump to get started.) As instructed elsewhere, I've told the Apache Service Monitor to configure the JVM it uses to run Tomcat to dump heap when an OutOfMemoryError is encountered by adding the following to the JVM options: -XX:+HeapDumpOnOutOfMemoryError Then I run the build again. Sure enough

How to get specific information about the current build project in Jenkins with Groovy?

心不动则不痛 提交于 2019-12-03 11:49:31
In Jenkins/Hudson, with the help of a Postbuild Groovy script, I would like to get one of the following: an environment variable (e.g. current JOB_NAME, BUILD_NUMBER etc.) the result of a specific build number of the current project the build number of the last not successful build in the current project At the moment I only found the following way, but it's rather limited: def item = hudson.model.Hudson.instance.getItem("GroovyMultipleFailTest") def build = item.getLastBuild() build.getNumber() Great88 ${manager.build.getEnvironment(manager.listener)['BUILD_NUMBER'] } Bo Persson had the best

Why does git fetch via hudson fail, while git fetch via the command line works?

风流意气都作罢 提交于 2019-12-03 11:38:57
I'm trying to fetch a read-only git repository from github and have it be built via hudson. This process is failing. This is the hudson output: Started by an SCM change Checkout:workspace / d:\hudson\home\jobs\gdcm-hudson\workspace - hudson.remoting.LocalChannel@19ba1d8 Using strategy: Default Checkout:workspace / d:\hudson\home\jobs\gdcm-hudson\workspace - hudson.remoting.LocalChannel@19ba1d8 GitAPI created Fetching changes from the remote Git repository Fetching upstream changes from git://github.com/malaterre/gdcm.git [workspace] $ "C:\Program Files (x86)\Git\bin\git.exe" fetch -t git:/