hudson

How to pass parameters to Hudson job's shell commands

情到浓时终转凉″ 提交于 2019-12-03 11:09:17
I have a Hudson job that execute shell script on a remote server. Its shell command is: /usr/bin/deployWar.sh ${warfileName} I marked this build as parameterized, and added a string parameter: name: warFileName default value: none description: name of war file When I run it, the parameter gets assigned, but it get passed into the shell script. Parameterized Build Jenkins plugin documentation states that all the environment variables added by parameters are in upper case In your case this should work: /usr/bin/deployWar.sh ${WARFILENAME} There is nothing wrong in your approach. How do you know

Jenkins is going to shut down

余生颓废 提交于 2019-12-03 10:47:05
A strange thing happen sometime, Jenkins start displaying " Jenkins is going to shut down" even when nobody turned this message on and restarting Jenkins. Screenshot: This message is displayed when someone with enough administration rights has clicked "Prepare for Shutdown" from the global configuration, or went to http://jenkins/safeRestart URL. If you are absolutely sure that none of the administration have clicked "Prepare for Shutdown" (which you cannot be sure of, unless you are the only administrator), then you should look for someone using your credentials, either directly in browser,

Jenkins / Hudson CI Minimum Requirements for a linux RH installation

夙愿已清 提交于 2019-12-03 10:32:35
We are planning on using Jenkins (used to be Hudson) for the automated builds of our project. I need to find out what it needs from a system requirements standpoint (RAM, disk, CPU) for a Linux RH installation. We will be testing a Mobile application project. I did check this post but couldn't find a response. LeysS I've been maintaining a Jenkins / Sonar / Nexus and I pointed out a minimal configuration (Debian 5): CPU : n/a (bye bye plain old school CPU at least ;) ) RAM : 1GB (I prefer 2) HDD : depends on the needs. For my use, a 8 module J2EE Maven project + db scripts (6500 lines of code)

How to make a Jenkins job status as aborted

荒凉一梦 提交于 2019-12-03 10:12:05
I am running some batch commands as a prebuild step for a build. I want to make the status of the build as aborted based on some conditions. Can anyone tell me what is the errorlevel for 'aborted' in Jenkins? You have to install the " Conditional build step plugin " and the " Fail the build " plugins. Then you simply add a conditional step, and if the condition is true, you can call the fail build step with state "aborted". 来源: https://stackoverflow.com/questions/8488541/how-to-make-a-jenkins-job-status-as-aborted

Configuring Hudson to deploy a build

自古美人都是妖i 提交于 2019-12-03 09:49:43
问题 I'm trying to configure Hudson so that I will be able to automatically deploy a build (a .war file) to Tomcat. The newly deployed build will then be used by someone to test the application. I've tried using the Deploy Plugin to automatically deploy the .war file, and this works. However, the job that builds the .war file will run after every scm change (whenever code is committed). With the Deploy Plugin, the .war file would be deployed to Tomcat every time a build is made. Because code is

Can I mass edit jenkins jobs by modifying the config.xml files?

依然范特西╮ 提交于 2019-12-03 09:46:20
I have a lot of jobs in jenkins and we have decided to make some wide ranging changes to all of them which will be very tedious to change through the UI. It would be much easier to edit them using scripts on the jenkins master machine but I'm not sure how to get jenkins to recognize changes to the the config.xml that haven't come through the UI or another api. Is there a way to get jenkins to refresh job configurations from disk? Or a better way of mass editing jobs? Under the "Managr Hudson" option, there's a "Reload Configuration from Disk" item that will do what you want - re-reads the

What password encryption Hudson is using?

泪湿孤枕 提交于 2019-12-03 09:22:11
This is what I see in hudson/users/me/config.xml : [...] <hudson.security.HudsonPrivateSecurityRealm_-Details> <passwordHash>mEDUyJ:0c9e6f2556b9b3a0b9e9046c21490422b4a54877f057b527b2c0bd4dc83342d5</passwordHash> </hudson.security.HudsonPrivateSecurityRealm_-Details> [...] What is the algorithm (if SHA1, than what is the mEDUyJ prefix)? How can I get this hash in PHP, for example? The source code responsible for this is found in the hudson.security.HudsonPrivateSecurityRealm class (more specifically, the PasswordEncoder inner class). Consider your example: mEDUyJ

Hudson Build-Time Trend Plugin?

僤鯓⒐⒋嵵緔 提交于 2019-12-03 09:21:35
Is there a plugin which would allow me to create a "trend" graph for a hudson build which shows the build time for that project? I'm tasked with speeding up the build and I'd like to show a nice trend as I speed it up. Pascal Thivent This is supported out of the box: http://SERVER/hudson/job/JOBNAME/buildTimeTrend Jamie Cook To follow up from the @Pascal's answer, if you would like to bring this graph and show it more prominently you can edit the job description and add an image directly there <img src="http://test.vlc/job/flow_tester/buildTimeGraph/png" /> That way you can see the time trend

Hudson ERROR: M2_HOME is set to an invalid directory

匿名 (未验证) 提交于 2019-12-03 09:10:12
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: 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 Maven installation I cannot figure out

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

匿名 (未验证) 提交于 2019-12-03 09:05:37
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 above entry, the mapped network drive in Windows is