浏览代码

Add OSS syncing task

James Allen 9 年之前
父节点
当前提交
340aa98de5
共有 1 个文件被更改,包括 11 次插入 和 0 次删除
  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 {