format correction
This commit is contained in:
parent
169b391455
commit
9afa322d0b
@ -78,10 +78,10 @@ pipeline {
|
||||
apk add --no-cache sed
|
||||
fi
|
||||
"""
|
||||
}
|
||||
openVPNConfig = sh(
|
||||
returnStdout: true,
|
||||
script: """# Get OpenVPN Config
|
||||
|
||||
openVPNConfig = sh(
|
||||
returnStdout: true,
|
||||
script: """# Get OpenVPN Config
|
||||
curl \
|
||||
--silent \
|
||||
--location \
|
||||
@ -102,14 +102,14 @@ curl \
|
||||
| base64 -w 0
|
||||
"""
|
||||
)
|
||||
withCredentials(
|
||||
[
|
||||
string(
|
||||
credentialsId: nordCreds,
|
||||
variable: "NORD_CREDS",
|
||||
)
|
||||
]
|
||||
) {
|
||||
withCredentials(
|
||||
[
|
||||
string(
|
||||
credentialsId: nordCreds,
|
||||
variable: "NORD_CREDS",
|
||||
)
|
||||
]
|
||||
) {
|
||||
|
||||
k8sSecret = """apiVersion: v1
|
||||
kind: Secret
|
||||
@ -120,6 +120,7 @@ data:
|
||||
openvpn-credentials.txt: """ + NORD_CREDS + """
|
||||
nordvpn.com.tcp.ovpn: """ + openVPNConfig + """
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user