You've already forked jenkins-lib
mirror of
https://github.com/firstBitMarksistskaya/jenkins-lib.git
synced 2025-08-25 20:09:25 +02:00
fix class
This commit is contained in:
@@ -39,7 +39,7 @@ class Bdd implements Serializable {
|
||||
|
||||
def coverageOpts = config.coverageOptions;
|
||||
if (options.coverage) {
|
||||
steps.start("${coverageOpts.dbgsPath} --addr=127.0.0.1 --port=${PortPicker.port()}")
|
||||
steps.start("${coverageOpts.dbgsPath} --addr=127.0.0.1 --port=${PortPicker.getPort()}")
|
||||
steps.start("${coverageOpts.coverage41CPath} start -i DefAlias -u http://127.0.0.1:1550 -P $workspaceDir -s $srcDir -o build/out/bdd-coverage.xml")
|
||||
}
|
||||
|
||||
|
@@ -106,7 +106,7 @@ class SmokeTest implements Serializable {
|
||||
|
||||
def coverageOpts = config.coverageOptions;
|
||||
if (options.coverage) {
|
||||
steps.start("${coverageOpts.dbgsPath} --addr=127.0.0.1 --port=${PortPicker.port()}")
|
||||
steps.start("${coverageOpts.dbgsPath} --addr=127.0.0.1 --port=${PortPicker.getPort()}")
|
||||
steps.start("${coverageOpts.coverage41CPath} start -i DefAlias -u http://127.0.0.1:1550 -P $workspaceDir -s $srcDir -o build/out/smoketest-coverage.xml")
|
||||
}
|
||||
|
||||
|
@@ -1,14 +0,0 @@
|
||||
package ru.pulsar.jenkins.library.utils;
|
||||
|
||||
import com.cloudbees.groovy.cps.NonCPS;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.ServerSocket;
|
||||
|
||||
public class PortPicker {
|
||||
@NonCPS
|
||||
static int port() throws IOException {
|
||||
int result = new ServerSocket(0).getLocalPort();
|
||||
return result;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user