hudson

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

不羁的心 提交于 2019-12-08 05:57:18
问题 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]

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

只谈情不闲聊 提交于 2019-12-08 04:59:27
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? Florian F 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://www.brianlegros.com/blog/2009/12/20/using-xvnc-to-create-headless-ci-builds-for-flex-and-air

How to block some Jobs for some user level in Jenkins?

拜拜、爱过 提交于 2019-12-08 02:55:51
问题 I want a block some jobs for a user level for example I have 3 jobs: Job1 (All the register user can execute this). Job2 (Only some user can execute this) Job3 (All the register user can execute this). 回答1: Set the Global Security ( http://<your_server>/configureSecurity/? ) to the configuration that matches most jobs (enable Job Build ) and then enable Project-based security for the other jobs (via the jon configuration) and set up as required by disabling Job Build . Enter the user name in

Hudson + Selenium plugin - Getting HTTP error 403 when running tests

99封情书 提交于 2019-12-08 02:34:11
问题 I am trying to test my application using Selenium tool via the Hudson plugin (the one called sleniumhq plugin). As a proof of concept I decided to make a very simple test targetting google, the test is the one below: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1 /DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://selenium-ide.openqa.org/profiles/test

Maven - Separating Deployment & Project

倖福魔咒の 提交于 2019-12-08 01:35:59
问题 What is the 'best practice' way of separating Maven deployment configuration from the build config? I have a war project, that is built by Jenkins. I'd like Jenkins to deploy this to Elastic Beanstalk, but alas the best solution available at the moment is to use the beanstalk-maven-plugin . I'm not sure it makes sense for the POM.xml to include information about deployment; after all, at build time that .war could end up anywhere. In this situation, is there some way of using Maven modules to

Configuring Hudson/Jenkins for staging and production

北城余情 提交于 2019-12-08 01:12:23
问题 How do I configure Hudson/Jenkins to production and staging deploy with the same configuration? I have a build and deploy workflow configured in Jenkins to do production pushes. Now I need to use the same configuration to do a staging push, expect that couple of folder & DB names will change to reflect stage. I.e. Say from /var/prod/html to /var/stage/html and db from companyname_table to companyname_table_stage . I don’t want to do a copy of the configuration since I may have to change the

Unable to access private git repositories using Hudson

百般思念 提交于 2019-12-07 18:08:26
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 Trying next repository ERROR: Could not clone repository FATAL: Could not clone hudson.plugins.git

Extracting Tomcat Zip SOMETIMES fail with IOException: Negative seek offset

徘徊边缘 提交于 2019-12-07 14:32:14
问题 I am using maven cargo with its zip url installer feature to download a tomcat for my integration tests. This works fine on my computer, but when its run in husdon it fails sometimes (round about 10-20%). The failure is: Error while expanding /home/hudson/workspace/My Test Media-Archive/cfma/target/cargo/install/apache-tomcat-6.0.32.zip java.io.IOException: Negative seek offset at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:148) at org.apache.tools.ant.taskdefs.Expand.execute

Hudson git commands are *incredibly* slow

我的梦境 提交于 2019-12-07 14:28:12
问题 I have installed msysgit, and I am attempting to use it inside of Hudson. Whenever I run a command in an interactive shell, whether it be git-bash or a command prompt, the commands are instant. When I run them in Hudson, they lag for a very long time. Running /bin/git help took 63 seconds when I just invoked it. I've never waited long enough to see a clone begin outputting (>10 minutes). The Hudson mailing list is down, so I figured I would try here... 回答1: I've run into this problem as well,

Remove artifacts from Hudson, but retain logs in order to link to builds

蓝咒 提交于 2019-12-07 12:08:44
问题 We have the following requirements for our Hudson setup: We would like to directly link to all builds that have been executed The effective number of artifacts should be limited It is possible to limit the number of maximum builds in Hudson per job (see this question). This option effectively removes old artifacts. The problem is that this also removes all other information related to the build. Is there a way to retain linking directly to completed builds via http://${hudson}/job/${jobname}/