hudson

Why does cucumber keep failling on jenkins, although tests pass?

北城余情 提交于 2019-12-06 16:01:11
My cucumber test work well on command line, but when I run them in Jenkins/Hudson continuous integration, I get the following, but am not sure how to fix it: 11 scenarios (3 skipped, 3 pending, 5 passed) 78 steps (51 skipped, 3 pending, 24 passed) 0m3.238s Build step 'Execute shell' marked build as failure Recording test results Failed to send e-mail to kamilski81 because no e-mail address is known, and no default e-mail domain is configured Failed to send e-mail to i.wooten because no e-mail address is known, and no default e-mail domain is configured Failed to send e-mail to scott.j.rodgers

Jenkins - MavenBuild.getMavenArtifacts() Returns Null

可紊 提交于 2019-12-06 15:38:13
问题 Since Jenkins 1.460, calling getMavenArtifacts() on an instance of MavenBuild is returning null, whereas previously that would work fine. Have there been breaking changes in the Jenkins API, or is this a Jenkins bug? The code I'm executing is a post-build System Groovy script, that exposes the Maven version of a build as an environment variable for subsequent steps in the Jenkins build process to use: import hudson.model.*; import hudson.util.*; def thr = Thread.currentThread(); def

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

主宰稳场 提交于 2019-12-06 14:08:25
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). 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 User/group to add: and then configure as required. In this case I've limited control to two users You need

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

本秂侑毒 提交于 2019-12-06 13:30:01
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 the "S" drive. I am currently evaluating Hudson on my

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

二次信任 提交于 2019-12-06 13:27:47
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-case"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="selenium.base"

jenkins remoting callable on slave using groovy

你离开我真会死。 提交于 2019-12-06 12:33:16
问题 I was trying the remoting code to communicate with a jenkins node via the groovy shell. Here is the bare code which I ran: import java.io.IOException; import java.lang.String; import hudson.remoting.*; import java.io.Serializable; Callable<String, IOException> task = new Callable<String, IOException>() { @Override public String call() throws IOException { // This code will run on the build slave return "Testing"; } @Override public void checkRoles(org.jenkinsci.remoting.RoleChecker checker)

Hudson and configurations (debug, release, parallel, etc)

与世无争的帅哥 提交于 2019-12-06 12:02:48
I wonder if there are some good practices for testing multiple configurations in Hudson. We compile tests in debug and release mode and also toggle MPI on and off. The make system takes a series of parameters (DEBUG=FALSE, OPT=TRUE, MPI=TRUE) and does the right thing, producing test executables that are well labeled. I could probably create a monolithic control script that does everything, but I wonder if I am missing some facility for iterating through a list of parameters. Even better would be if I could clean the project in between. Anyone have an opinion? Is this best done with separate

Unable to access Sonar MySQL database Caused by: java.sql.SQLException: Access denied for user 'sonar'@'glassfishdev.ccs.local' (using password: YES)

隐身守侯 提交于 2019-12-06 11:26:15
问题 I am trying to add Sonar to my Continuous Integration build system. I am using ANT as my build script and I am using the sonar-ant-task-1.1.jar for sonar to generate the reports based on my source code in SVN. Problem When the build runs and hits the sonar ant task I get the exception as follows: Caused by: java.sql.SQLException: Access denied for user 'sonar'@'glassfishdev.ccs.local' (using password: YES) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1075) at com.mysql.jdbc

Running DUnit tests from Hudson

可紊 提交于 2019-12-06 10:35:46
问题 I finally got Hudson to build my project and the corresponding test project (using the XMLTestRunner2 unit provided in the Embarcadero forum). Running the test executable manually correclty produces a "dunit-report.xml" file with the test results. I can't get Hudson to call my executable and produce this file though. What I did is to create a build step as a Windows batch command and just call the executable. I tried several things: bin\Test.exe start bin\Test.exe start /wait bin\Test.exe

How do I deploy to private Maven repo from CloudBees?

喜夏-厌秋 提交于 2019-12-06 10:26:28
问题 I'd like to use CloudBees for my CI environment, but I'd also like to deploy my Maven artifacts to my existing private Nexus repository. In my current local Hudson setup, I utilize the username/password settings within the .m2/settings.xml file as follows: ... <servers> <server> <id>my-repository</id> <username>username</username> <password>password</password> </server> </servers> ... How/where can I configure these credentials on CloudBees? 回答1: You can put these in your private webdav