hudson

Multiple deployments in maven

二次信任 提交于 2019-12-30 04:30:11
问题 We have a internal artifactory repository. At the moment all snapshots will be deployed there. We also want to have a different server with a web interface, and want to copy the to it the created artifacts. For our builds we use Hudson, but the post-build action "Deploy artifacts to Maven repository" together with scp doesn't work. So there is the question of doing it in some other elegant way. Why isn't maven able to have several distribution repositories? Any ideas? The nicest thing would

is there a way to set ant -verbose inside build.xml?

白昼怎懂夜的黑 提交于 2019-12-29 18:50:31
问题 I would like to get verbose console output while building from eclipse and hudson. There seems to be no verbose property for <target> and <project> and it seems very wrong to call <exec> on ant from inside the script just to pass the verbose prop. Is there a better way? 回答1: It will be an eclipse External Tools Configuration parameter (under Run -> External Tools ). Please see the screenshot below: 回答2: You could use Ant's <record> task (http://ant.apache.org/manual/Tasks/recorder.html) to

How to configure a single Jenkins job to make the release process from trunk or branches?

ⅰ亾dé卋堺 提交于 2019-12-28 05:10:29
问题 I am currently enhancing the release process of our projects on Jenkins (1.430). Current release jobs Today, for one specific project, we have one job dedicated to the Release process. The complete procedure is the following: The developer who is in charge of the release changes manually the version of all the pom.xml files (in fact using mvn versions:set -DnewVersion=2.0 ) to get rid of the -SNAPSHOT . Then, he creates a tag in SVN (http://my-svn-repo/project/tags/V_2_0 for example). Once

How to make a Jenkins/Hudson job surveil some others jobs and decide whether to build or not?

为君一笑 提交于 2019-12-28 03:38:29
问题 PROBLEM Given that all the jobs have string LEVEL_X in it's job name, where X is a number > 1. I want every job with X = n to surveil every job with X = n-1 , and start building if each of them is finished with success. And I want the job with X = n to surveil the other jobs with an interval of 1 minute. First of all, I am interested in knowing what the best way is to do that, second I want the solution if one can be implemented by a small script, maybe a groovy script which can be run in

How do you run NUnit tests from Jenkins?

守給你的承諾、 提交于 2019-12-28 03:18:05
问题 I'm looking to run automated NUnit tests for a C# application, nightly and on each commit to svn. Is this something that Jenkins-CI can do? Is there an online tutorial or how-to document which documents a similar setup that I can look at? 回答1: I needed to do exactly what you do, here's how I setup Jenkins to do this: Add the NUnit Plugin to Jenkins In your project go to Configure -> Build -> Add a build step In the dropdown scroll down to -> Execute Windows Batch Command Ensure this step is

How to trigger a build only if changes happen on particular set of files

狂风中的少年 提交于 2019-12-27 16:40:32
问题 How do I tell Jenkins/Hudson to trigger a build only for changes on a particular project in my Git tree? 回答1: The Git plugin has an option (excluded region) to use regexes to determine whether to skip building based on whether files in the commit match the excluded region regex. Unfortunately, the stock Git plugin does not have a "included region" feature at this time (1.15). However, someone posted patches on GitHub that work on Jenkins and Hudson that implement the feature you want. It is a

How to trigger a build only if changes happen on particular set of files

删除回忆录丶 提交于 2019-12-27 16:40:07
问题 How do I tell Jenkins/Hudson to trigger a build only for changes on a particular project in my Git tree? 回答1: The Git plugin has an option (excluded region) to use regexes to determine whether to skip building based on whether files in the commit match the excluded region regex. Unfortunately, the stock Git plugin does not have a "included region" feature at this time (1.15). However, someone posted patches on GitHub that work on Jenkins and Hudson that implement the feature you want. It is a

To get build status through environment variable

荒凉一梦 提交于 2019-12-25 05:05:48
问题 I am using jenkins for continous integration. For my build purpose, i triggering email using Ant task. I am not able to find an environment variable to pass ant for sending email build status(success/failure/stable). i want to know how can i get environment variable for build status?..if not available, what is the alternative option for build status? Thanks in Advance varghese 回答1: Why use ANT to send emails from Jenkins when you have two great plugins that does just that? The default mail

How to run command in windows batch Command in jenkins

冷暖自知 提交于 2019-12-25 04:06:44
问题 I am trying to run a command in Jenkins under build step of running commands in Execute windows batch command. I wrote dir to run as a command and when the job runs in Jenkins which is triggered by a change in content of a file following error is shown [FSTrigger] Triggered by a change to a file (<a href="triggerCauseAction">log</a>) Building in workspace C:\Users\Pankaj\.jenkins\jobs\convert File to text form\workspace FATAL: null java.util.NoSuchElementException at java.util.TreeMap

Compilation error: Failure executing javac, but could not parse the error

ε祈祈猫儿з 提交于 2019-12-24 16:42:32
问题 I'm having the follow error when I launch a Hudson job like mvn clean compile . [INFO] Compiling 1541 source files to /users/applis/33g/ad33gwas/.hudson/jobs/sonar facade-commande/workspace/facade-commande/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] Failure executing javac, but could not parse the error: An exception has occurred in the compiler (1.5