-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from jglick/RunMojo.minimumJavaVersion
Pass minimumJavaVersion to RunMojo so that hpi:run works again
- Loading branch information
Showing
6 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# install, not verify, because we want to check the artifact as we would be about to deploy it | ||
# release.skipTests normally set in jenkins-release profile since release:perform would do the tests | ||
invoker.goals=-Pjenkins-release -Drelease.skipTests=false clean install | ||
invoker.goals=-Pjenkins-release -Drelease.skipTests=false clean install hpi:run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package test; | ||
|
||
import hudson.Main; | ||
import hudson.init.Initializer; | ||
import java.util.concurrent.TimeUnit; | ||
import jenkins.model.Jenkins; | ||
import jenkins.util.Timer; | ||
|
||
public class JustTesting { | ||
|
||
private JustTesting() {} | ||
|
||
@Initializer | ||
public static void shutDown() { | ||
if (Main.isUnitTest) { | ||
return; | ||
} | ||
Timer.get().schedule(() -> { | ||
Jenkins.getInstance().doSafeExit(null); | ||
return null; | ||
}, 15, TimeUnit.SECONDS); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters