add mirror stage
This commit is contained in:
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@@ -91,7 +91,7 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('Mirror to Github') {
|
||||
stage('Mirror to Github - Grizzlycoda') {
|
||||
steps {
|
||||
sshagent(['edd05eb6-26b5-4c7b-a5cc-ea2ab899f4fa']) {
|
||||
sh '''
|
||||
@@ -101,5 +101,16 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Mirror to Github - 12ww1160') {
|
||||
steps {
|
||||
sshagent(['key-github-12ww1160-not-grizzly']) {
|
||||
sh '''
|
||||
git remote set-url --push master git@github.com:12ww1160/puppet_collection.git
|
||||
git push master --mirror
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user