File tree Expand file tree Collapse file tree 4 files changed +12
-5
lines changed
main/java/com/browserstack/automate/ci/jenkins
test/java/com/browserstack/automate/ci/jenkins Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1010 </parent >
1111
1212 <artifactId >browserstack-integration</artifactId >
13- <version >1.2.1 -SNAPSHOT</version >
13+ <version >1.2.2 -SNAPSHOT</version >
1414 <packaging >hpi</packaging >
1515
1616 <name >BrowserStack</name >
Original file line number Diff line number Diff line change 1919import hudson .util .DescribableList ;
2020import org .apache .commons .lang .StringUtils ;
2121import org .kohsuke .stapler .DataBoundConstructor ;
22+ import org .kohsuke .stapler .DataBoundSetter ;
2223
2324import java .io .IOException ;
2425import java .io .PrintStream ;
@@ -31,15 +32,19 @@ public class BrowserStackBuildWrapper extends BuildWrapper {
3132
3233 private static final char CHAR_MASK = '*' ;
3334
34- private final LocalConfig localConfig ;
35+ private LocalConfig localConfig ;
3536
3637 private String credentialsId ;
3738 private String username ;
3839 private String accesskey ;
3940
4041 @ DataBoundConstructor
41- public BrowserStackBuildWrapper (String credentialsId , LocalConfig localConfig ) {
42+ public BrowserStackBuildWrapper (String credentialsId ) {
4243 this .credentialsId = credentialsId ;
44+ }
45+
46+ @ DataBoundSetter
47+ public void setLocalConfig (LocalConfig localConfig ) {
4348 this .localConfig = localConfig ;
4449 }
4550
Original file line number Diff line number Diff line change @@ -124,7 +124,8 @@ public void addBuildStep() throws IOException {
124124 localConfig .setLocalOptions ("-force" );
125125
126126 BrowserStackBuildWrapper buildWrapper =
127- new BrowserStackBuildWrapper (credentialsId , localConfig );
127+ new BrowserStackBuildWrapper (credentialsId );
128+ buildWrapper .setLocalConfig (localConfig );
128129 project .getBuildWrappersList ().add (buildWrapper );
129130 }
130131
Original file line number Diff line number Diff line change @@ -115,7 +115,8 @@ public void addBuildStep() throws IOException {
115115 LocalConfig localConfig = new LocalConfig ();
116116 localConfig .setLocalOptions ("-force" );
117117
118- BrowserStackBuildWrapper buildWrapper = new BrowserStackBuildWrapper (credentialsId , localConfig );
118+ BrowserStackBuildWrapper buildWrapper = new BrowserStackBuildWrapper (credentialsId );
119+ buildWrapper .setLocalConfig (localConfig );
119120 project .getBuildWrappersList ().add (buildWrapper );
120121 }
121122
You can’t perform that action at this time.
0 commit comments