Mirror to GitHub

This commit is contained in:
Marcus Noble 2019-12-24 12:51:06 +00:00
parent 45049de87b
commit 69a3f54e4b
1 changed files with 13 additions and 0 deletions

13
Jenkinsfile vendored
View File

@ -44,5 +44,18 @@ pipeline {
}
}
stage('Mirror to GitHub') {
when { branch 'master' }
environment {
GITHUB_TOKEN = credentials('Github_token')
}
steps {
sh """
git remote add github https://${GITHUB_TOKEN}:@github.com/AverageMarcus/blog.git
git push github master
"""
}
}
}
}