hudson

Possible in Jenkins to add sleep time between build actions?

与世无争的帅哥 提交于 2019-12-08 17:30:32
问题 I am starting a JBoss server in Jenkins as a build action. The next action runs a set of tests. I need to add sleeptime between the two actions. Does anyone know how to do this easily? 回答1: You can add sleep command (on Unix) in the test build action before test execution. 回答2: If you mean to know how to sleep between those build steps you can use sleep with Execute shell type. sleep 30s 回答3: There is a built-in feature in Jenkins to put a sleep but it is not easy to find it because they call

Hudson - missing Trigger builds remotely option

你说的曾经没有我的故事 提交于 2019-12-08 16:01:22
问题 I'm trying to set post commit build on Hudson but I can't enable Trigger builds remotely (e.g., from scripts) option in Hudson. I have installed lots of plugins, google it for a while but all without success. This problem is kind of solved in (http://stackoverflow.com/questions/2469831/hudson-build-on-url-token) but this doesn't work for me either. My version of Hudson is Hudson ver. 1.378. bets 回答1: If security isn't enabled on the Jenkins instance, then the option is not available. But that

List of Slaves connected to master - Hudson

百般思念 提交于 2019-12-08 15:58:24
问题 Is there a way to find it programatically? I need this as part of an automated run; So this would be very helpful if there is an existing remote API call which can give this. 回答1: You don't need to parse the HTML - most of the Hudson pages can be turned into API calls by adding URL suffix, e.g. Make GET calls to: http://hudson:8080/computer/api/json switch the json for xml or python if you prefer over json if you use just the api suffix, you'll get a short generic help page on the api 回答2:

How to run Flex unit tests from the command line on Linux?

扶醉桌前 提交于 2019-12-08 09:27:03
问题 I am setting up a FlexBuilder build under Hudson/Jenkins on a Linux system. I want to execute our unit tests, but do it without using the standard GUI-based test runner. What are my options? 回答1: Folks seem to use something called xvfb. I haven't tried this solution myself so I'll just give you the links to the revelant articles I know : http://www.benlondon.co.uk/2010/02/running-flexunit-09-tests-on-headless.html http://life.neophi.com/danielr/2007/12/headless_linux_automated_flexu.html http

How can I setup Hudson to use the same repository for different projects and maintain separate change logs?

纵饮孤独 提交于 2019-12-08 09:19:28
问题 I typically setup SVN to host 1 big project per repository but a lot of our infrastructure has changed and we now have one main SVN server that has a hierarchy like so Branches Tags Trunk Project1 files & folders Project2 files & folders Project3 files & folders Projects1,2, and 3 do not share anything amongst themselves, they are independent projects each with their own solution file to be built. I can setup projects in Hudson like so Repository Url: http://server/svn/MainRepository Local

Backup task/plugin for hudson not working - how do I fix it?

别来无恙 提交于 2019-12-08 08:28:22
问题 I installed the backup plugin for hudson and when a backup is requested it attempts to shutdown hudson. It seems to hang in that state. What could be causing this? It is running on Windows 7 as a service. the real issue I want to solve though is how to back up my hudson configurations. (hudson, plugins, jobs) 回答1: Have a look at Joshua's answer to a similar question. I like his robocopy approach. Right now I am implementing his approach as a Hudson job. The job uses the filesystem-scm-plugin

Hudson ERROR: M2_HOME is set to an invalid directory

落花浮王杯 提交于 2019-12-08 07:54:10
问题 I am using a computer with Windows 7, and I have Hudson installed on it. I have had this installation for a while, and it has been working fine up till now. Something has changed. Now, whenever I try to build a project, after successfully checking out the project from SVN, it fails with this message: ERROR: M2_HOME is set to an invalid directory. M2_HOME = "C:\Build\Hudson\.hudson\jobs\Score_Plugin\workspace\.." Please set the M2_HOME variable in your environment to match the location of the

Unable to access private git repositories using Hudson

北城余情 提交于 2019-12-08 07:16:50
问题 I'm getting the below error: Started by user anonymous Checkout:workspace / /var/lib/hudson/jobs/test2/workspace - hudson.remoting.LocalChannel@1e77243d Using strategy: Default Checkout:workspace / /var/lib/hudson/jobs/test2/workspace - hudson.remoting.LocalChannel@1e77243d Cloning the remote Git repository Cloning repository origin ERROR: Error cloning remote repo 'origin' : Could not clone git@github.com:rampelli/test.git ERROR: Cause: Exception caught during execution of fetch command

maven-release-plugin: Perform fails with 'working directory “…workspace\\target\\checkout\\workspace” does not exist!'

こ雲淡風輕ζ 提交于 2019-12-08 06:32:23
I have maven project that fails when release:perform is called, though release;prepare works as expected. I have found the bug report (below) which certainly seems to resemble the issue I have but not entirely sure I understand the problem: MRELEASE516 The last few lines of output I get: [INFO] Executing: cmd.exe /X /C "p4 -d E:\hudson\jobs\myHudsonJob\workspace\target\checkout -p 1.1.1.1:1111: client -d myProjectWorkspace-MavenSCM-E:\hudson\jobs\myHudsonJob\workspace\target\checkout" [INFO] Executing goals 'deploy'... [WARNING] Base directory is a file. Using base directory as POM location.

How to hook PMD + Clover in Hudson build using maven?

℡╲_俬逩灬. 提交于 2019-12-08 06:26:23
问题 we have newly set-up up a Hudson (yes.. Hudson, not Jenkins) CI. The job scheduled in Hudson does the following a. Connects to IBM ClearCase repository to download the latest source code b. Compiles all java source code and Creates a WAR file (by running the project's pom.xml) c. Deploys it to a Tomcat6 server Now, i want to take it one more step further in-terms of bringing in automatic 'Static Code Analyzers' in this process. I installed PMD/Clover/JavaNCSS plugins in my Hudson instance,