-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrated RebuildParameterProvider extension for rebuild plugin comp…
…atibility 1. added rebuild dependency to pom 2. created ExtendedChoiceRebuildParameterProvider class 2. ExtendedChoiceParameterValue - get/set methods 3. ExtendedChoiceParameterDefinition - import Messages
- Loading branch information
Showing
5 changed files
with
68 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
/target/ | ||
/work/ | ||
/work/ | ||
/classes/ | ||
.project | ||
.classpath | ||
.settings/ |
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
1 change: 0 additions & 1 deletion
1
...cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition.java
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
31 changes: 31 additions & 0 deletions
31
...avel/hudson/plugins/extended_choice_parameter/ExtendedChoiceRebuildParameterProvider.java
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,31 @@ | ||
/* | ||
*Copyright (c) 2015 Len Isac | ||
*See the file license.txt for copying permission. | ||
*/ | ||
package main.java.com.cwctravel.hudson.plugins.extended_choice_parameter; | ||
|
||
import hudson.Extension; | ||
import hudson.model.ParameterValue; | ||
|
||
import com.sonyericsson.rebuild.RebuildParameterPage; | ||
import com.sonyericsson.rebuild.RebuildParameterProvider; | ||
|
||
/** | ||
* An extension class to inject {@link ExtendedChoiceParameterValue} to rebuild-plugin. | ||
*/ | ||
@Extension(optional = true) | ||
public class ExtendedChoiceRebuildParameterProvider extends RebuildParameterProvider { | ||
/** | ||
* @param value | ||
* @return | ||
* @see com.sonyericsson.rebuild.RebuildParameterProvider#getRebuildPage(hudson.model.ParameterValue) | ||
*/ | ||
@Override | ||
public RebuildParameterPage getRebuildPage(ParameterValue value) { | ||
if (value instanceof ExtendedChoiceParameterValue) { | ||
return new RebuildParameterPage(ExtendedChoiceParameterValue.class, "rebuild.groovy"); | ||
} | ||
|
||
return null; | ||
} | ||
} |