From 9afa322d0b50761d1037d8f63b9a43a746678540 Mon Sep 17 00:00:00 2001 From: The_Spider Date: Fri, 1 Apr 2022 21:19:33 -0500 Subject: [PATCH] format correction --- nordvpn-autoconfigure.jenkins | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/nordvpn-autoconfigure.jenkins b/nordvpn-autoconfigure.jenkins index f7833d6..e1ea4d3 100644 --- a/nordvpn-autoconfigure.jenkins +++ b/nordvpn-autoconfigure.jenkins @@ -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 + """ """ + } } } }