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 10
10
</parent >
11
11
12
12
<artifactId >browserstack-integration</artifactId >
13
- <version >1.2.1 -SNAPSHOT</version >
13
+ <version >1.2.2 -SNAPSHOT</version >
14
14
<packaging >hpi</packaging >
15
15
16
16
<name >BrowserStack</name >
Original file line number Diff line number Diff line change 19
19
import hudson .util .DescribableList ;
20
20
import org .apache .commons .lang .StringUtils ;
21
21
import org .kohsuke .stapler .DataBoundConstructor ;
22
+ import org .kohsuke .stapler .DataBoundSetter ;
22
23
23
24
import java .io .IOException ;
24
25
import java .io .PrintStream ;
@@ -31,15 +32,19 @@ public class BrowserStackBuildWrapper extends BuildWrapper {
31
32
32
33
private static final char CHAR_MASK = '*' ;
33
34
34
- private final LocalConfig localConfig ;
35
+ private LocalConfig localConfig ;
35
36
36
37
private String credentialsId ;
37
38
private String username ;
38
39
private String accesskey ;
39
40
40
41
@ DataBoundConstructor
41
- public BrowserStackBuildWrapper (String credentialsId , LocalConfig localConfig ) {
42
+ public BrowserStackBuildWrapper (String credentialsId ) {
42
43
this .credentialsId = credentialsId ;
44
+ }
45
+
46
+ @ DataBoundSetter
47
+ public void setLocalConfig (LocalConfig localConfig ) {
43
48
this .localConfig = localConfig ;
44
49
}
45
50
Original file line number Diff line number Diff line change @@ -124,7 +124,8 @@ public void addBuildStep() throws IOException {
124
124
localConfig .setLocalOptions ("-force" );
125
125
126
126
BrowserStackBuildWrapper buildWrapper =
127
- new BrowserStackBuildWrapper (credentialsId , localConfig );
127
+ new BrowserStackBuildWrapper (credentialsId );
128
+ buildWrapper .setLocalConfig (localConfig );
128
129
project .getBuildWrappersList ().add (buildWrapper );
129
130
}
130
131
Original file line number Diff line number Diff line change @@ -115,7 +115,8 @@ public void addBuildStep() throws IOException {
115
115
LocalConfig localConfig = new LocalConfig ();
116
116
localConfig .setLocalOptions ("-force" );
117
117
118
- BrowserStackBuildWrapper buildWrapper = new BrowserStackBuildWrapper (credentialsId , localConfig );
118
+ BrowserStackBuildWrapper buildWrapper = new BrowserStackBuildWrapper (credentialsId );
119
+ buildWrapper .setLocalConfig (localConfig );
119
120
project .getBuildWrappersList ().add (buildWrapper );
120
121
}
121
122
You can’t perform that action at this time.
0 commit comments