hudson

How do I make Hudson/Jenkins fail if Sonar thresholds are breached?

僤鯓⒐⒋嵵緔 提交于 2019-12-18 19:09:01
问题 I am using maven to build my java app, Jenkins for CI and Sonar for metrics. Currently I have a build job that creates the sonar report. (Triggered via a post-build step in Jenkins.) I would like to set this up to fail the build if certain thresholds are met - i.e. any major or blocker violations or Complexity more than 1.7. Any guidance would be appreciated! - L 回答1: Install the build breaker plugin. Fails your build if the code breaches any of the alert thresholds you specify on the project

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

♀尐吖头ヾ 提交于 2019-12-18 15:44:06
问题 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

In Hudson, how do I get the current build's git commit sha?

别来无恙 提交于 2019-12-18 11:00:37
问题 We are using Hudson with git. We have a build/test server which compiles our project and then a QA server to which we need to deploy. We want to get the current built git commit sha and use it to pull the appropriate commit for deployment on our QA server. Unfortunately it seems that the hudon git plugin does not set the git commit sha in the environment variables (as the svn plugin does in SVN_REVISION for example). How do we get around this? Pointer/ examples will be helpful as I am a

How to get CTest results in Hudson / Jenkins

ε祈祈猫儿з 提交于 2019-12-18 10:35:31
问题 I'm using CTest (part of CMake) for my automated tests. How do I get CTest results in the Jenkins dashboard ? Or, phrased differently, how do I get CTest to output in JUnit-like XML ? 回答1: In Jenkins, after the CMake part (probably made through the CMake plugin), add the following batch script, or adapt for builds on Linux : del build_32\JUnitTestResults.xml pushd build_32\Tests "C:\Program Files\CMake 2.8\bin\ctest.exe" -T Test -C RelWithDebInfo --output-on-failure popd verify >nul C:

HUDSON: How to stop hudson job from command line?

家住魔仙堡 提交于 2019-12-18 03:37:07
问题 I need to forcefully stop a Hudson build running in remote server. Is there a command/API to do that? for ex: to trigger a new build we can do :- HUDSON_URL/job/JOBNAME/build looking for similar API to stop the build. 回答1: You should be able to make a http request to http://HUDSON_URL/job/JOBNAME/BUILDNUMBER/stop and you can do a xpath request to get the build number http://HUDSON_URL/job/JOBNAME/api/xml?xpath=//lastBuild/number/text() There may be a way to put in latestBuild or lastBuild

Hudson git clone error

南楼画角 提交于 2019-12-18 02:46:12
问题 I have created free-style software project in Hudson. I want to clone a public Git repository: git://github.com/bret/watir.git Build fails with error message: Started by user anonymous Checkout:workspace / C:\Documents and Settings\Administrator\.hudson\jobs\watir\workspace - hudson.remoting.LocalChannel@1a1f370 Last Build : #4 Checkout:workspace / C:\Documents and Settings\Administrator\.hudson\jobs\watir\workspace - hudson.remoting.LocalChannel@1a1f370 Cloning the remote Git repository

Hudson git clone error

给你一囗甜甜゛ 提交于 2019-12-18 02:46:09
问题 I have created free-style software project in Hudson. I want to clone a public Git repository: git://github.com/bret/watir.git Build fails with error message: Started by user anonymous Checkout:workspace / C:\Documents and Settings\Administrator\.hudson\jobs\watir\workspace - hudson.remoting.LocalChannel@1a1f370 Last Build : #4 Checkout:workspace / C:\Documents and Settings\Administrator\.hudson\jobs\watir\workspace - hudson.remoting.LocalChannel@1a1f370 Cloning the remote Git repository

Use Hudson to build a specific git commit

落爺英雄遲暮 提交于 2019-12-17 22:18:13
问题 I have a hudson build server. The source code is managed by a git repository. For each build the latest version is checked out and compiled. Now i'd like to tell hudson to use not the latest version, but an older version of the code (specified by me). In hudson i have two parameters which can be set. First "name of repository", with default value "origin" and second refspec with value +refs/heads/*:refs/remotes/origin/* . I tried a bit around something like origin/[commitid] or +refs/heads/*

Problem with Hudson + Git + Gitosis on windows

独自空忆成欢 提交于 2019-12-17 20:59:01
问题 I have git and gitosis running smoothly on windows with msysgit (with OpenSSH), and I would now like Hudson to start using git. So, I have ensured that the hudson windows service is running as the hudson user, and I have added the hudson user through gitosis-admin. I also have unixutils, and they are in the windows path. But, Hudson fails at clone the project. I can clone my project using git bash, when logged in as the hudson user, but not on the windows command line, and I am afraid this is

How to configure Jenkins StarTeam plugin?

此生再无相见时 提交于 2019-12-17 17:04:43
问题 Jenkins (Hudson) has StarTeam plugin. How to configure it properly? I have installed this plugin but when I build the project I get this error: java.lang.NoClassDefFoundError: com/starbase/starteam/Folder Machine is Windows Server 2008. I have StarTeam SDK installed in C:\Program Files (x86)\Borland\StarTeam SDK 10.4 folder. 回答1: There is a hint on plugin documentation page: The plugin requires the StarTeam SDK, StarTeam extensions and jsafe libraries in Hudson's classpath. These files are