Added test environment
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -53,6 +53,8 @@ pipeline {
|
||||
steps {
|
||||
script {
|
||||
kubeconfig(credentialsId: 'k3s-kubeconfig') {
|
||||
sh 'cat k8s/deployment-test.yaml | sed "s/latest/$BUILD_NUMBER/g" | kubectl apply -n swiss -f -'
|
||||
sh 'kubectl apply -f k8s/service-test.yaml -n swiss'
|
||||
sh 'cat k8s/deployment.yaml | sed "s/latest/$BUILD_NUMBER/g" | kubectl apply -n swiss -f -'
|
||||
sh 'kubectl apply -f k8s/service.yaml -n swiss'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user