|
41 | 41 |
|
42 | 42 | <properties> |
43 | 43 | <changelist>999999-SNAPSHOT</changelist> |
44 | | - <jenkins.host.address /> |
45 | | - <slaveAgentPort /> |
46 | 44 | <jenkins.baseline>2.504</jenkins.baseline> |
47 | 45 | <jenkins.version>${jenkins.baseline}.3</jenkins.version> |
48 | 46 | <no-test-jar>false</no-test-jar> |
|
294 | 292 | <artifactId>maven-surefire-plugin</artifactId> |
295 | 293 | <configuration> |
296 | 294 | <systemPropertyVariables> |
297 | | - <hudson.slaves.NodeProvisioner.initialDelay>0</hudson.slaves.NodeProvisioner.initialDelay> |
298 | | - <hudson.slaves.NodeProvisioner.recurrencePeriod>3000</hudson.slaves.NodeProvisioner.recurrencePeriod> |
299 | 295 | <org.jenkinsci.plugins.workflow.support.pickles.ExecutorPickle.timeoutForNodeMillis>60000</org.jenkinsci.plugins.workflow.support.pickles.ExecutorPickle.timeoutForNodeMillis> |
300 | | - <!-- have pods connect to this address for Jenkins --> |
301 | | - <jenkins.host.address>${jenkins.host.address}</jenkins.host.address> |
302 | | - <slaveAgentPort>${slaveAgentPort}</slaveAgentPort> |
303 | 296 | </systemPropertyVariables> |
304 | 297 | </configuration> |
305 | 298 | </plugin> |
|
308 | 301 | <artifactId>maven-hpi-plugin</artifactId> |
309 | 302 | <configuration> |
310 | 303 | <systemProperties> |
311 | | - <hudson.slaves.NodeProvisioner.initialDelay>0</hudson.slaves.NodeProvisioner.initialDelay> |
312 | | - <hudson.slaves.NodeProvisioner.MARGIN>50</hudson.slaves.NodeProvisioner.MARGIN> |
313 | | - <hudson.slaves.NodeProvisioner.MARGIN0>0.85</hudson.slaves.NodeProvisioner.MARGIN0> |
314 | | - <jenkins.host.address>${jenkins.host.address}</jenkins.host.address> |
315 | | - <port>${port}</port> |
316 | 304 | <org.csanchez.jenkins.plugins.kubernetes.pipeline.PodTemplateStepExecution.verbose>true</org.csanchez.jenkins.plugins.kubernetes.pipeline.PodTemplateStepExecution.verbose> |
317 | 305 | </systemProperties> |
318 | 306 | </configuration> |
|
388 | 376 | </plugins> |
389 | 377 | </build> |
390 | 378 | </profile> |
| 379 | + <profile> |
| 380 | + <!-- kubectl tunnel expose jenkins 8000:8000 8001:8001 --> |
| 381 | + <id>ktunnel</id> |
| 382 | + <build> |
| 383 | + <pluginManagement> |
| 384 | + <plugins> |
| 385 | + <plugin> |
| 386 | + <groupId>org.apache.maven.plugins</groupId> |
| 387 | + <artifactId>maven-surefire-plugin</artifactId> |
| 388 | + <configuration> |
| 389 | + <systemPropertyVariables> |
| 390 | + <jenkins.host.address>jenkins.default.svc.cluster.local</jenkins.host.address> |
| 391 | + <port>8000</port> |
| 392 | + <slaveAgentPort>8001</slaveAgentPort> |
| 393 | + </systemPropertyVariables> |
| 394 | + </configuration> |
| 395 | + </plugin> |
| 396 | + <plugin> |
| 397 | + <groupId>org.jenkins-ci.tools</groupId> |
| 398 | + <artifactId>maven-hpi-plugin</artifactId> |
| 399 | + <configuration> |
| 400 | + <defaultPort>8000</defaultPort> |
| 401 | + <systemProperties> |
| 402 | + <jenkins.host.address>jenkins.default.svc.cluster.local</jenkins.host.address> |
| 403 | + <jenkins.model.Jenkins.slaveAgentPort>8001</jenkins.model.Jenkins.slaveAgentPort> |
| 404 | + </systemProperties> |
| 405 | + </configuration> |
| 406 | + </plugin> |
| 407 | + </plugins> |
| 408 | + </pluginManagement> |
| 409 | + </build> |
| 410 | + </profile> |
391 | 411 | </profiles> |
392 | 412 |
|
393 | 413 | </project> |
0 commit comments