From 340aa98de5dd1df7f48c694f4b593b0aa12fbe8c Mon Sep 17 00:00:00 2001 From: James Allen Date: Wed, 4 Oct 2017 11:27:19 +0100 Subject: [PATCH] Add OSS syncing task --- services/document-updater/Jenkinsfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/services/document-updater/Jenkinsfile b/services/document-updater/Jenkinsfile index 43b6722ba9..4ffd642356 100644 --- a/services/document-updater/Jenkinsfile +++ b/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 {