RE: Creating a FreeStyleProject outside JUnit?

2013-01-18 Thread jserup
My first approach was to simply: public class JenkinsApiTest { public void test() { ItemGroupItem itemGroup = new MyItemGroup(); FreeStyleProject p = new FreeStyleProject(itemGroup, n0); p.getConfigFile().asString(); } this results in the AbstractProject constructor being

Re: Creating a FreeStyleProject outside JUnit?

2013-01-16 Thread jserup
Ok makes sense but is possible to create eg. a FreeStyleProject /outside/ a Junit TestRunner. Seems a bit strange that this can only be done through a TestRunner. -- View this message in context:

Creating a FreeStyleProject outside JUnit?

2013-01-15 Thread jserup
I am creating a FreeStyleProject using this test class: import org.jvnet.hudson.test.HudsonTestCase; import org.apache.commons.io.FileUtils; import hudson.model.*; import hudson.tasks.Shell; public class AppTest extends HudsonTestCase { public void test1() throws Exception {

Re: Developing a Jenkins plugin?

2012-11-21 Thread jserup
Thanks! -- View this message in context: http://jenkins.361315.n4.nabble.com/Developing-a-Jenkins-plugin-tp4646762p4646790.html Sent from the Jenkins users mailing list archive at Nabble.com.

Developing a Jenkins plugin?

2012-11-20 Thread jserup
When you create a maven job on Jenkins you can enable Build whenever a snapshot dependency has been build. I would like to create the same functionality for a gradle job/free style job as a plugin for jenkins and am therefore reading this guide:

Build whenever a SNAPSHOT dependency is built - Gradle/Jenkins integration?

2012-10-04 Thread jserup
This is a cross post from: http://forums.gradle.org/gradle/topics/build_whenever_a_snapshot_dependency_is_built_gradle_jenkins_integration?rfm=1 When building a maven project on Jenkins its possible to specify the build trigger: Build whenever a SNAPSHOT dependency is built This works out of

.m2 repository on slave1 not visible when building with slave2?

2012-10-02 Thread jserup
We have a bunch of gradle jobs that are build with the maven plugin meaning that the build artifacts gets deployed to the local .m2 repo. On Jenkins we have added 4 slaves each with its own .m2 repo. We have two projects A and B where B depends on A. If A gets build on slave2 and B gets build on

Specify different JDK for maven sub modules?

2012-10-01 Thread jserup
In Jenkins ver. 1.483 its possible to specify a JDK to use when building eg. a maven project. Now I need to specify this on the sub-module layer like: parent - child.a (jdk5) - child.b (jdk6) Is this currently supported in jenkins or are there any plans to support this? I have tried to

Inheriting JDK installations from master on slave?

2012-09-25 Thread jserup
I have installed Jenkins ver. 1.482 on an ubuntu machine and added a slave on another Ubuntu machine. Under Jenkins -Configuration I have added jdk5, jdk6 and jdk7 and checked install from java.sun.com. Some of the jobs run on the slave needs to be build with jdk5 so in the relevant job

Re: Inheriting JDK installations from master on slave?

2012-09-25 Thread jserup
my bad after closer inspection it was actually meant to fail with jdk5 :-) -- View this message in context: http://jenkins.361315.n4.nabble.com/Inheriting-JDK-installations-from-master-on-slave-tp4641292p4641307.html Sent from the Jenkins users mailing list archive at Nabble.com.

Configuration slicer/groovy script for common Gradle tasks?

2012-09-21 Thread jserup
Anyone found a plugin - or have written a script - for Jenkins that makes it possible to specify a list of common gradle tasks (eg. clean --refresh dependencies test install) for a set of jenkins jobs? I have installed the Configuration Slicer plugin and it has this for maven projects but not for

ERROR: Problem fetching from origin ... : fatal: Authentication failed

2012-09-18 Thread jserup
I am running Jenkins ver. 1.466.1 on an Ubuntu machine with Jenkins GIT plugin 1.1.23. Some of the jobs fetches changes from a git repository on another ubuntu machine (running git version 1.7.10) using the following format under Source code management in the job configuration: