hudson

Problems with “Aggregate downstream test results” in Hudson

巧了我就是萌 提交于 2019-12-05 15:30:27
问题 My Hudson projects don't seem to properly aggregate downstream test results and I'm wondering if I've missed a configuration step somewhere. I have two projects, Foo and Foo-Tests, both of which are freestyle jobs. On project Foo I have the following configuration: Checked "Aggregate downstream test results". Checked "Automatically aggregate all downstream tests" under the previous option. Checked "Build other projects" and specified "Foo-Tests" to build. On project Foo-Tests I have the

How can pass Hudson/Jenkins parameters to windows batch command

孤街浪徒 提交于 2019-12-05 15:19:25
问题 well i need to execute a batch file in my Hudson Job, I have a parameter(Jenkis parameter) and i need to pass this value like param to batch file, i tried this: Deploy.cmd -configuration=${DEPLOYCONFIGURATION} -source=${DeploySource} My Deploy.cmd is configurated for get this values but Jenkis doesn't assign the values.. For example, i have this: ${DEPLOYCONFIGURATION} = DEV ${DeploySource} = c:\myFolder Then,the batch file take this values %DEPLOYCONFIGURATION% = ${DEPLOYCONFIGURATION}

Build jenkins job when push code to bitbucket

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 12:44:59
I have a project in bitbucket and recently installed jenkins . In jenkins I created a job in jenkins . from New Item , I ticked Freestyle project and did not add anything to the jenkins project . in the configure section I added Source Code Management -> none Build Triggers -> Build when a change is pushed to BitBucket In Bitbucket went to Project settings Hooks Select hook -> jenkins Add hook and added the following values Endpoint :- http://myaddress.com:8080 Module name : my jenkins job name project name - empty token - empty so I want to bulid my jenkins job automatically when I push code

Hudson checkout gets stuck at 'git fetch'

99封情书 提交于 2019-12-05 12:28:18
I'm using git version 1.6.2.2.1669.g7eaf8 with Hudson Git plugin 0.7.3 on Hudson 1.314 When I trigger a build, Hudson does a git fetch, but it never returns. I had one stuck there for 14 days before I killed it. The console output - it just sits here for days on end: Started by user anonymous Checkout:workspace / C:\hudson\jobs\Group1-git\workspace - hudson.remoting.LocalChannel@3d858159 Last Build : #63 Checkout:workspace / C:\hudson\jobs\Group1-git\workspace - hudson.remoting.LocalChannel@3d858159 Fetching changes from the remote Git repository Fetching upstream changes from ssh://git@git

Change working directory in ant junit task

浪尽此生 提交于 2019-12-05 12:17:22
I have a ant file that runs JUnits tests. These tests rely on a relative path to certain configuration files. I've tried to set the working directory for the batch test, but fail. I want the working directory to be ${plugins.dir}/${name} The JUnit part of the ant script: <junit haltonfailure="no" printsummary="on" fork="true" showoutput="true" dir="${plugins.dir}/${name}"> <jvmarg value="-Duser.dir=${plugins.dir}/${name}"/> <classpath> <path refid="project.classpath"/> <pathelement location="${plugins.dir}/${dependency}/@dot/"/> <pathelement location="${plugins.dir}/${name}/" /> </classpath>

Restarting apache with Jenkins or Phing

怎甘沉沦 提交于 2019-12-05 12:16:39
I'm currently using Phing and Jenkins to automate builds and deployment for my CodeIgniter app. One problem I'm having trouble with is restarting the apache service. I tried in Phing but there isn't enough permissions. What is the best way to restart? EDIT: After adding jenkins into the sudoer file and exec'ing the service httpd restart, Jenkins throws: Process leaked file descriptors. Below is a snippet of the Phing output via Jenkins. It says a workaround is to install daemonize. Not sure what that means... ...Build_test > compress: [echo] YUI Compression started [echo] Replacing normal JS

Why up-to-date files committed to SVN will not be immediately pulled out by Hudson to build

≯℡__Kan透↙ 提交于 2019-12-05 10:50:10
I sometimes found our Hudson will not pull up-to-date versions of files from SVN to build up the package. For example, current latest revision is 1201, but Hudson use 1200 to build. Do you know the reason behind the scenes? This is a common problem when there is clock skew between Hudson and the Subversion server. I'd suggest looking at the timestamps of your recent commits, to see if the subversion server is giving future times. Or, potentially the Hudson server's clock has falled behind. Here is one thread from the Hudson mailing list about a similar issue, and HUDSON-1244 is the Hudson

Making Jenkins (Hudson) job depend on another job

笑着哭i 提交于 2019-12-05 09:41:14
问题 I have two jobs: Upload Launch-instance I want to make Launch-instance dependent on the other one, so that triggering Launch-instance automatically causes Upload to be run first. Can I achieve this using built-in Jenkins features or with a plugin? Note that I do not want Upload to always trigger Launch-instance , which is what the "Build after other projects are built" option on Launch-instance would do. What I want is more analogous to how depends attribute works in Ant . 回答1: Have you tried

Jenkins Packages on Groovy Classpath?

时光毁灭记忆、已成空白 提交于 2019-12-05 08:26:57
When using the Groovy Jenkins plugin (not the Groovy Post Build Plugin, which is a different thing) as a Post Step, I can't resolve classes in the hudson.model package. Do I need to add the Jenkins .war onto the classpath, or should these packages already be there? Script: import hudson.model.*; import hudson.util.*; AbstractBuild currentBuild = (AbstractBuild) Thread.currentThread().executable; def mavenVer = currentBuild.getMavenArtifacts().getModuleRecords()[0].mainArtifact.version; println mavenVer; ParametersAction newParamAction = new hudson.model.ParametersAction(new hudson.model

Hudson -CI Screen saver setup

允我心安 提交于 2019-12-05 04:51:19
HI , Is there any I can setup a screen saver with the list of projects running in hudson which indicates the status of the project. Say the part of the screen saver indicates green for projects got succeded , and shows the red if the project is failed to build. Probably the screen saver must be partitioned to multiple projects !!! You can create something in any suitable environment e.g. Flex / AS3. that can read XML and also generate the sort of screensaver design and executable you need (depending on your target platform) You could just create to a straightforward webpage and consume the