Mirror to GitHub
This commit is contained in:
parent
45049de87b
commit
69a3f54e4b
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@ -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
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user