Pārlūkot izejas kodu

Add OSS syncing task

James Allen 9 gadi atpakaļ
vecāks
revīzija
340aa98de5
1 mainītis faili ar 11 papildinājumiem un 0 dzēšanām
  1. 11 0
      services/document-updater/Jenkinsfile

+ 11 - 0
services/document-updater/Jenkinsfile

@@ -60,6 +60,17 @@ pipeline {
         }
         }
       }
       }
     }
     }
+
+    stage('Sync OSS') {
+      when {
+        branch 'master'
+      }
+      steps {
+        sshagent (credentials: ['GIT_DEPLOY_KEY']) {
+          sh 'git push git@github.com:sharelatex/document-updater-sharelatex.git HEAD:master'
+        }
+      }
+    }
   }
   }
 
 
   post {
   post {