Skip to content
Permalink
Browse files

[JENKINS-33874] Move to 1.609.3 (because of JENKINS-28840)

  • Loading branch information...
Andres Rodriguez
Andres Rodriguez committed May 18, 2016
1 parent 8e4ca0f commit daf453dfc43db81ede5cde60d0469fda0b3321ab
@@ -3,7 +3,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>2.8</version>
<version>2.9</version>
</parent>

<licenses>
@@ -22,7 +22,7 @@
<url>http://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin</url>

<properties>
<jenkins.version>1.609</jenkins.version>
<jenkins.version>1.609.3</jenkins.version>
<java.level>6</java.level>
<!-- Use the same configuration than before. -->
<concurrency>2</concurrency>
@@ -27,7 +27,6 @@
import hudson.matrix.MatrixBuild;
import hudson.matrix.MatrixProject;
import hudson.model.AbstractBuild;
import hudson.model.Cause;
import hudson.model.FreeStyleBuild;
import hudson.model.FreeStyleProject;
import hudson.model.Node;
@@ -205,7 +204,7 @@ protected FreeStyleProject setupProject(List<UserRemoteConfig> repos, List<Branc
}

protected FreeStyleBuild build(final FreeStyleProject project, final Result expectedResult, final String... expectedNewlyCommittedFiles) throws Exception {
final FreeStyleBuild build = project.scheduleBuild2(0, new Cause.UserCause()).get();
final FreeStyleBuild build = project.scheduleBuild2(0).get();
for (final String expectedNewlyCommittedFile : expectedNewlyCommittedFiles) {
assertTrue(expectedNewlyCommittedFile + " file not found in workspace", build.getWorkspace().child(expectedNewlyCommittedFile).exists());
}
@@ -216,7 +215,7 @@ protected FreeStyleBuild build(final FreeStyleProject project, final Result expe
}

protected FreeStyleBuild build(final FreeStyleProject project, final String parentDir, final Result expectedResult, final String... expectedNewlyCommittedFiles) throws Exception {
final FreeStyleBuild build = project.scheduleBuild2(0, new Cause.UserCause()).get();
final FreeStyleBuild build = project.scheduleBuild2(0).get();
for (final String expectedNewlyCommittedFile : expectedNewlyCommittedFiles) {
assertTrue(build.getWorkspace().child(parentDir).child(expectedNewlyCommittedFile).exists());
}
@@ -227,7 +226,7 @@ protected FreeStyleBuild build(final FreeStyleProject project, final String pare
}

protected MatrixBuild build(final MatrixProject project, final Result expectedResult, final String... expectedNewlyCommittedFiles) throws Exception {
final MatrixBuild build = project.scheduleBuild2(0, new Cause.UserCause()).get();
final MatrixBuild build = project.scheduleBuild2(0).get();
for (final String expectedNewlyCommittedFile : expectedNewlyCommittedFiles) {
assertTrue(expectedNewlyCommittedFile + " file not found in workspace", build.getWorkspace().child(expectedNewlyCommittedFile).exists());
}
@@ -9,7 +9,6 @@
import hudson.model.Result;
import hudson.model.TaskListener;
import hudson.model.AbstractBuild;
import hudson.model.Cause;
import hudson.model.FreeStyleProject;
import hudson.model.Node;
import hudson.plugins.git.extensions.GitSCMExtension;
@@ -220,7 +219,7 @@ protected FreeStyleProject setupSimpleProject(String branchString) throws Except
}

protected FreeStyleBuild build(final FreeStyleProject project, final Result expectedResult, final String...expectedNewlyCommittedFiles) throws Exception {
final FreeStyleBuild build = project.scheduleBuild2(0, new Cause.UserCause()).get();
final FreeStyleBuild build = project.scheduleBuild2(0).get();
System.out.println(build.getLog());
for(final String expectedNewlyCommittedFile : expectedNewlyCommittedFiles) {
assertTrue(expectedNewlyCommittedFile + " file not found in workspace", build.getWorkspace().child(expectedNewlyCommittedFile).exists());
@@ -232,7 +231,7 @@ protected FreeStyleBuild build(final FreeStyleProject project, final Result expe
}

protected FreeStyleBuild build(final FreeStyleProject project, final String parentDir, final Result expectedResult, final String...expectedNewlyCommittedFiles) throws Exception {
final FreeStyleBuild build = project.scheduleBuild2(0, new Cause.UserCause()).get();
final FreeStyleBuild build = project.scheduleBuild2(0).get();
System.out.println(build.getLog());
for(final String expectedNewlyCommittedFile : expectedNewlyCommittedFiles) {
assertTrue(build.getWorkspace().child(parentDir).child(expectedNewlyCommittedFile).exists());
@@ -244,7 +243,7 @@ protected FreeStyleBuild build(final FreeStyleProject project, final String pare
}

protected MatrixBuild build(final MatrixProject project, final Result expectedResult, final String...expectedNewlyCommittedFiles) throws Exception {
final MatrixBuild build = project.scheduleBuild2(0, new Cause.UserCause()).get();
final MatrixBuild build = project.scheduleBuild2(0).get();
System.out.println(build.getLog());
for(final String expectedNewlyCommittedFile : expectedNewlyCommittedFiles) {
assertTrue(expectedNewlyCommittedFile + " file not found in workspace", build.getWorkspace().child(expectedNewlyCommittedFile).exists());
@@ -192,7 +192,7 @@ public void testProvidingRevision() throws Exception {
commitNewFile(commitFile2);

// create second build and set revision parameter using r1
FreeStyleBuild b2 = p1.scheduleBuild2(0, new Cause.UserCause(),
FreeStyleBuild b2 = p1.scheduleBuild2(0, new Cause.UserIdCause(),
Collections.singletonList(new RevisionParameterAction(r1))).get();

// Check revision built for b2 matches the r1 revision

0 comments on commit daf453d

Please sign in to comment.
You can’t perform that action at this time.