@@ -94,7 +94,7 @@ public void after() {
94
94
public void maven_build_on_master_with_specified_maven_installation_succeeds () throws Exception {
95
95
loadMavenJarProjectInGitRepo (this .gitRepoRule );
96
96
97
- String pipelineScript = "node('master' ) {\n " +
97
+ String pipelineScript = "node() {\n " +
98
98
" git($/" + gitRepoRule .toString () + "/$)\n " +
99
99
" withMaven(maven: 'apache-maven-3.6.3') {\n " +
100
100
" sh 'mvn package'\n " +
@@ -121,7 +121,7 @@ public void maven_build_on_master_with_specified_maven_installation_succeeds() t
121
121
public void maven_build_on_master_with_missing_specified_maven_installation_fails () throws Exception {
122
122
loadMavenJarProjectInGitRepo (this .gitRepoRule );
123
123
124
- String pipelineScript = "node('master' ) {\n " +
124
+ String pipelineScript = "node() {\n " +
125
125
" git($/" + gitRepoRule .toString () + "/$)\n " +
126
126
" withMaven(maven: 'install-does-not-exist') {\n " +
127
127
" sh 'mvn package'\n " +
@@ -137,7 +137,7 @@ public void maven_build_on_master_with_missing_specified_maven_installation_fail
137
137
public void maven_build_jar_project_on_master_succeeds () throws Exception {
138
138
loadMavenJarProjectInGitRepo (this .gitRepoRule );
139
139
140
- String pipelineScript = "node('master' ) {\n " +
140
+ String pipelineScript = "node() {\n " +
141
141
" git($/" + gitRepoRule .toString () + "/$)\n " +
142
142
" withMaven() {\n " +
143
143
" sh 'mvn package verify'\n " +
@@ -187,7 +187,7 @@ public void maven_build_jar_project_on_master_succeeds() throws Exception {
187
187
public void maven_build_jar_with_jacoco_succeeds () throws Exception {
188
188
loadMavenJarWithJacocoInGitRepo (this .gitRepoRule );
189
189
190
- String pipelineScript = "node('master' ) {\n " +
190
+ String pipelineScript = "node() {\n " +
191
191
" git($/" + gitRepoRule .toString () + "/$)\n " +
192
192
" withMaven() {\n " +
193
193
" sh 'mvn package verify'\n " +
@@ -221,7 +221,7 @@ public void maven_build_jar_with_jacoco_succeeds() throws Exception {
221
221
public void maven_build_jar_project_with_whitespace_char_in_name () throws Exception {
222
222
loadMavenJarProjectInGitRepo (this .gitRepoRule );
223
223
224
- String pipelineScript = "node('master' ) {\n " +
224
+ String pipelineScript = "node() {\n " +
225
225
" git($/" + gitRepoRule .toString () + "/$)\n " +
226
226
" withMaven() {\n " +
227
227
" sh 'mvn help:effective-settings'\n " +
@@ -312,7 +312,7 @@ private void maven_build_jar_project_on_master_with_disabled_publisher_param_suc
312
312
313
313
loadMavenJarProjectInGitRepo (this .gitRepoRule );
314
314
315
- String pipelineScript = "node('master' ) {\n " +
315
+ String pipelineScript = "node() {\n " +
316
316
" git($/" + gitRepoRule .toString () + "/$)\n " +
317
317
" withMaven(options:[" + symbol + "(disabled:" + disabled + ")]) {\n " +
318
318
" sh 'mvn package verify'\n " +
@@ -346,7 +346,7 @@ public void maven_build_jar_project_on_master_with_open_task_scanner_config_succ
346
346
347
347
loadMavenJarProjectInGitRepo (this .gitRepoRule );
348
348
349
- String pipelineScript = "node('master' ) {\n " +
349
+ String pipelineScript = "node() {\n " +
350
350
" git($/" + gitRepoRule .toString () + "/$)\n " +
351
351
" withMaven(options:[openTasksPublisher(" +
352
352
" disabled:false, " +
@@ -369,7 +369,7 @@ public void maven_build_jar_project_on_master_with_open_task_scanner_config_succ
369
369
public void maven_build_maven_jar_with_flatten_pom_project_on_master_succeeds () throws Exception {
370
370
loadMavenJarWithFlattenPomProjectInGitRepo (this .gitRepoRule );
371
371
372
- String pipelineScript = "node('master' ) {\n " +
372
+ String pipelineScript = "node() {\n " +
373
373
" git($/" + gitRepoRule .toString () + "/$)\n " +
374
374
" withMaven() {\n " +
375
375
" sh 'mvn package'\n " +
@@ -411,7 +411,7 @@ public void maven_build_maven_jar_with_flatten_pom_project_on_master_succeeds()
411
411
public void maven_build_maven_hpi_project_on_master_succeeds () throws Exception {
412
412
loadJenkinsPluginProjectInGitRepo (this .gitRepoRule );
413
413
414
- String pipelineScript = "node('master' ) {\n " +
414
+ String pipelineScript = "node() {\n " +
415
415
" git($/" + gitRepoRule .toString () + "/$)\n " +
416
416
" withMaven() {\n " +
417
417
" sh 'mvn package'\n " +
@@ -451,7 +451,7 @@ public void maven_build_maven_hpi_project_on_master_succeeds() throws Exception
451
451
public void maven_build_maven_plugin_project_on_master_succeeds () throws Exception {
452
452
loadMavenPluginProjectInGitRepo (this .gitRepoRule );
453
453
454
- String pipelineScript = "node('master' ) {\n " +
454
+ String pipelineScript = "node() {\n " +
455
455
" git($/" + gitRepoRule .toString () + "/$)\n " +
456
456
" withMaven() {\n " +
457
457
" sh 'mvn package'\n " +
@@ -493,7 +493,7 @@ public void maven_build_maven_plugin_project_on_master_succeeds() throws Excepti
493
493
public void maven_build_on_master_with_no_generated_jar_succeeds () throws Exception {
494
494
loadMavenJarProjectInGitRepo (this .gitRepoRule );
495
495
496
- String pipelineScript = "node('master' ) {\n " +
496
+ String pipelineScript = "node() {\n " +
497
497
" git($/" + gitRepoRule .toString () + "/$)\n " +
498
498
" withMaven() {\n " +
499
499
" sh 'mvn test'\n " +
@@ -974,15 +974,15 @@ public void maven_build_test_results_by_stage_and_branch() throws Exception {
974
974
975
975
String pipelineScript = "stage('first') {\n " +
976
976
" parallel(a: {\n " +
977
- " node('master' ) {\n " +
977
+ " node() {\n " +
978
978
" git($/" + gitRepoRule .toString () + "/$)\n " +
979
979
" withMaven() {\n " +
980
980
" sh 'mvn package verify'\n " +
981
981
" }\n " +
982
982
" }\n " +
983
983
" },\n " +
984
984
" b: {\n " +
985
- " node('master' ) {\n " +
985
+ " node() {\n " +
986
986
" git($/" + gitRepoRule .toString () + "/$)\n " +
987
987
" withMaven() {\n " +
988
988
" sh 'mvn package verify'\n " +
0 commit comments