alair 4 luni în urmă
părinte
comite
9d7f0fba60
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      Jenkinsfile-admin
  2. 1 1
      Jenkinsfile-ui

+ 1 - 1
Jenkinsfile-admin

@@ -45,7 +45,7 @@ pipeline{
         }
         stage('远程执行k8s-master的kubectl命令') {
             steps {
-                sh '''ssh root@192.168.0.3 kubectl apply -f ruoyi-admin-deploy.yaml'''
+                sh '''ssh root@192.168.0.3 kubectl apply -f /usr/local/k8s/ruoyi-admin-deploy.yaml''
             }
         }
     }

+ 1 - 1
Jenkinsfile-ui

@@ -50,7 +50,7 @@ pipeline{
         }
         stage('远程执行k8s-master的kubectl命令') {
             steps {
-                sh '''ssh root@192.168.0.3 kubectl apply -f ruoyi-ui-deploy.yaml'''
+                sh '''ssh root@192.168.0.3 kubectl apply -f /usr/local/k8s/ruoyi-ui-deploy.yaml'''
             }
         }
     }