1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2025-08-25 20:09:25 +02:00

add class

This commit is contained in:
Dima
2023-06-12 11:37:26 +03:00
parent 8a892bc676
commit 29520e7467

View File

@@ -0,0 +1,11 @@
package ru.pulsar.jenkins.library.utils
import com.cloudbees.groovy.cps.NonCPS
class PortPicker {
@NonCPS
static int getPort() {
return new ServerSocket(0).getLocalPort()
}
}