hudson

Import Hudson jobs to Jenkins

夙愿已清 提交于 2019-12-13 08:39:22
问题 I'm trying to import Hudson(v3.1.2) jobs into Jenkins, but it seems that the config files differ in structure. Information about Git repository and MSBuild settings will not be read by Jenkins. Anyone know if there's a way to get around this? 回答1: One solution is to upgrade your existing Hudson instance to Jenkins (to migrate the job configuration). And next, you can try to import the migrated jobs into your new Jenkins server. Please do a backup before upgrading your Hudson instance :) 回答2:

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

In Groovy, how do I get the list of parameter names for a given job?

点点圈 提交于 2019-12-13 04:52:59
问题 In Groovy, I get my hands on a Hudson job: def job = hudson.model.Hudson.instance.getItem("Rsync library to docs-stage") Now I would like to have a list of the parameter names for that job. Sounds simple, but Googling around isn't getting me there yet. Could someone enlighten me? Thanks. 回答1: I'n not sure what you mean by "parameter names." As a last resort, you can get the configuration of the job as an XML String: print job.configFile.asString() Since this is XML, you can parse it as needed

Locating build output from Jenkins

左心房为你撑大大i 提交于 2019-12-13 04:46:42
问题 I have installed Jenkins, and am successfully building a VS 2012 solution. Which is great. However, I cannot find where the build output is located? I assume I'm missing some parameter somewhere, such as system.outdir in TeamCity. Regardless, where are my files! 回答1: The build output is located where your build job put them. Jenkins have a workspace for each job. By default this workspace is : %JENKINS_HOME%\jobs\%jobname% So I guess your build products are somewhere inside the workspace.

PHPUnit_Framework_Exception: Could not connect to the Selenium RC server when I run with Hudson

自闭症网瘾萝莉.ら 提交于 2019-12-13 03:58:29
问题 I have set up Hudson CI Server and running PHPUnit test with Selenium (big thanks to this post!). Now I am running Hudson server and Selenium server on my localhost. I set up Hudson as port 8080 (default) and Selenium -port 1234 as it conflicts otherwise. However, every time I run Selenium test, I get a following error: PHPUnit_Framework_Exception: Could not connect to the Selenium RC server. /Users/***/.hudson/jobs/Selenium/workspace/sampleTest.php:28 /usr/lib/php/phing.php:37 where line 28

How do you run SimpleTest from Hudson?

牧云@^-^@ 提交于 2019-12-13 03:39:12
问题 I'm doing some work with CakePHP and want to use Hudson. I can run all kinds of plugins but I don't see anything for SimpleTest. Until Cake 2.0 comes out and they move to PHPUnit, I'd like to figure out how to run SimpleTest with Hudson. 回答1: This is an old question, but I thought I'd give my input... We are still stuck on cake 1.3 and are using Jenkins. We use stagehand-test runner to run the tests and generate the junit report. You can have your ant build run something like the following:

How to get hudson's git plugin to clone repo with the name of the repo in the path?

两盒软妹~` 提交于 2019-12-13 02:17:04
问题 Let's say I have a repo called "stuff". git@github.com:mine/stuff.git when I do a git clone of this repo from the command line, it creates a directory called "stuff" and puts everything in that directory. When I set up hudson to use git, it puts everything in the directory $hudson_home/jobs/myjob/workspace/* with no "stuff" after workspace. Just the items inside of stuff. How can I make hudson clone the repo like the commandline does, namely: $hudson_home/jobs/myjob/workspace/stuff/* I see no

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

Jenkins key-value variable or using a variable to define another

半城伤御伤魂 提交于 2019-12-13 01:13:27
问题 I'm setting up a centralized build system where several projects get "packaged". The project can be selected using a choice parameter, and based on it I'm building the SVN checkout path. The repository is the same, but each app has a slightly different path, eg: app 1 resides in ../libs/App1.. app 2 resides in ../tools/App2.. etc My problem is that I need to somehow match the app name with its location. The first thought that came to mind was a key-value parameter but I have yet to find a

Get hudson to checkout source to a specific directory

情到浓时终转凉″ 提交于 2019-12-12 19:30:21
问题 This seems like a simple task but for the life of me I can't get Hudson to checkout my source to a specific directory. I can checkout the source using svn on the command line. I tried specifying the Local Module setting under source code management but no dice. I set it to c:\source\trunk and I get this when i run the build. Started by user anonymous Checking out http://mysvnserver/trunk java.io.IOException: The filename, directory name, or volume label syntax is incorrect at java.io