adds test to check secret data
This commit is contained in:
parent
2456d6daa0
commit
32b3c3c43f
@ -160,6 +160,25 @@ data:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage ('Read Secret') {
|
||||||
|
steps {
|
||||||
|
container ('alpine') {
|
||||||
|
script {
|
||||||
|
def result = declarativeFunctions.createSecret(
|
||||||
|
kubeAuth: "k8s-dl-automation-access",
|
||||||
|
kubeURL: "https://k8s.test-chamber-13.lan:8043",
|
||||||
|
namespace: "dl-automation",
|
||||||
|
secret: k8sSecret,
|
||||||
|
secretID: "nordvpn.com.tcp.ovpn"
|
||||||
|
)
|
||||||
|
if result.length() == 0 {
|
||||||
|
throw new Exception("Secret is empty.")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage ('Restart Pod') {
|
stage ('Restart Pod') {
|
||||||
steps {
|
steps {
|
||||||
container ('alpine') {
|
container ('alpine') {
|
||||||
|
Reference in New Issue
Block a user