attempt to get openvpn config if null
This commit is contained in:
parent
8cf693d792
commit
2bec4ee19f
@ -79,6 +79,8 @@ pipeline {
|
|||||||
fi
|
fi
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
retry(3) {
|
||||||
|
try {
|
||||||
openVPNConfig = sh(
|
openVPNConfig = sh(
|
||||||
returnStdout: true,
|
returnStdout: true,
|
||||||
script: """# Get OpenVPN Config
|
script: """# Get OpenVPN Config
|
||||||
@ -102,6 +104,14 @@ curl \
|
|||||||
| base64 -w 0
|
| base64 -w 0
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
} catch(e) {
|
||||||
|
if (openVPNConfig == "") {
|
||||||
|
printf("nordURL: %s", nordURL)
|
||||||
|
throw e
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
withCredentials(
|
withCredentials(
|
||||||
[
|
[
|
||||||
string(
|
string(
|
||||||
|
Reference in New Issue
Block a user