Mirror to GitHub

This commit is contained in:
AverageMarcus committed 2019-12-24 12:51:06 +00:00
1 parent 45049de87b
commit 69a3f54e4b
1 file changed
+13
Vendored
+13
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
"""
}
}
}
}