hudson

How to make Jenkins display fail if one of the ant tests fail

吃可爱长大的小学妹 提交于 2019-12-11 02:07:03
问题 I have several tests that should be executed regardless of each other's success and I want Jenkins/Hudson to display red light if at least one of those tests failed. My current (simplified for clarity) configuration is as following: ci.sh : ... ant ... build.xml : ... <target name="AllTests"> <antcall target="TestA"/> <antcall target="TestB"/> <antcall target="TestC"/> </target> <target name="TestA"> ... <exec executable="..." failonerror="false"/> ... </target> <target name="TestB"> ...

Eclipse as IDE + Mercurial for version control + ? Bug tracking = Good idea? [closed]

允我心安 提交于 2019-12-11 01:43:36
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 months ago . For a new Java web project I thought about using: Eclipse as IDE Mercurial for version control Some kind of bug tracking software I have heard of bug tracking software where you can tie a change to an unresolved bug when you check it in. I haven't used any such solution

Hudson - different build targets for different triggers

大城市里の小女人 提交于 2019-12-10 22:59:09
问题 I would like to have different build targets for periodic builds and for those that are triggered by polling SCM. More specific: The idea is that nightly builds should call 'mvn verify' which includes integration tests, while a normal build calls 'mvn test' that just executes Unit tests. Any ideas how this can be achieved using Hudson? Cheers Chris 回答1: You could create two jobs - one scheduled and the other polled. In the scheduled you can specify a different maven goal from the polled. 回答2:

Hudson cannot find powershell after update to powershell 3

为君一笑 提交于 2019-12-10 17:55:26
问题 One of my jobs had need for the ConvertTo-Json commandlet available in powershell 3.0 So I installed WMF 3.0 on our Windows Server 2008 R2 (SP1) box. After a restart all my powershell using jobs result in the error: [workspace] $ powershell.exe "& 'C:\Users\HUDSON~1\AppData\Local\Temp\hudson1263303013566726397.ps1'" The system cannot find the file specified FATAL: command execution failed java.io.IOException: Cannot run program "powershell.exe" (in directory "C:\hudson\jobs\MyProject

How to programmatically add a job to a view in hudson

元气小坏坏 提交于 2019-12-10 17:15:17
问题 I have a Java program controlling automatically generated jobs for a set of hudson servers. It is no problem to create, delete or update job(config)s using the hudson remote API. I also managed it to create hudson views and to create a new job for a hudson view. But I still need to know how to add an already existing job to a view and how to remove it again. Are there URLs with arguments doing the job (like for the job creation)? 回答1: You can execute a groovy script through the Hudson CLI API

Showing exception while connecting slave to master using headless jnlp

Deadly 提交于 2019-12-10 15:27:38
问题 i am using jenkins 1.447.2 version.My master is linux and slave is windows Jul 27, 2012 12:44:17 PM hudson.remoting.jnlp.Main$CuiListener <init> INFO: Hudson agent is running in headless mode. Jul 27, 2012 12:44:17 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://10.10.1.162:8080/jenkins/, http://dem Jul 27, 2012 12:44:38 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to demo.sigmainfo.in:8050 Jul 27, 2012 12:44:38 PM hudson.remoting.jnlp

Maven incremental building

三世轮回 提交于 2019-12-10 12:42:20
问题 We currently have a big Maven 2 project that is rather a collection of many single standalone projects with complicated dependencies, with the exception of some common parent POMs for building. In the end we always have to ship the application as one piece, so I would rather like to convert it to one or a few big projects. Does anyone have experience in how to optimize continuous integration builds for big projects. Is the incremental build functionality of Maven or Hudson any good? I would

Hudson continuous integration server: how to see Windows mapped directories that are visible to Ant?

倖福魔咒の 提交于 2019-12-10 10:37:41
问题 Using Hudson, Ant 1.7, Tomcat 6.20, JDK 1.6 and JDK 1.5; all on Windows boxes. My Ant build script for a WAR file uses JARs stored on a remote server. The directory path to the remote server is mapped as a network drive in Windows. A build.properties file is used to specify the paths to the JAR dependencies. When building with Ant, either at command line or in Eclipse, the WAR builds and deploys successfully. Example from build.properties: lib.log4j=S:/Support/JARs/log4j-1.2.15.jar In the

hudson/maven publishing snapshots

余生长醉 提交于 2019-12-10 10:31:12
问题 I would like to be able to publish snapshots to the repository using maven (or have hudson publish snapshots after each build using maven). I've been reading up on the SCM section of the POM, and I have a couple of questions. Sorry if I'm off base here - this part is new to me. I don't want to put my username and password in SCM section the POM (under developer connection). Is there any other way for hudson (or anyone else using the maven task) to gain authorization to publish using maven

Hudson build on URL token

时光怂恿深爱的人放手 提交于 2019-12-10 10:12:31
问题 I configured a hudson instance and have created jobs. While creating builds, I was able to see this option "Trigger the build by accessing this URL + SecretTOKEN" option. Now, I am unable to see that for any new jobs I create. Am I missing some setting or a configuration? The only change I made was running the servlet container from Root to a regular user. 回答1: In my Hudson (1.349) when creating a new job, there's an option under Build Triggers called Trigger Builds Remotely (e.g. from