using credentials to push to documentation repo
This commit is contained in:
parent
e9700ab493
commit
ecd2b0255c
|
@ -170,12 +170,14 @@ pipeline
|
||||||
checkout scmGit(branches: [[name: '*/master']], extensions: [checkoutOption(120), cloneOption(noTags:false, reference:'', shallow: false, timeout:120)], userRemoteConfigs: [[credentialsId: 'github_token_as_pwd_2', url: 'https://github.com/carla-simulator/carla-simulator.github.io.git']])
|
checkout scmGit(branches: [[name: '*/master']], extensions: [checkoutOption(120), cloneOption(noTags:false, reference:'', shallow: false, timeout:120)], userRemoteConfigs: [[credentialsId: 'github_token_as_pwd_2', url: 'https://github.com/carla-simulator/carla-simulator.github.io.git']])
|
||||||
unstash name: 'carla_docs'
|
unstash name: 'carla_docs'
|
||||||
|
|
||||||
sh '''
|
withCredentials([gitUsernamePassword(credentialsId: 'github_token_as_pwd_2', gitToolName: 'git-tool')]) {
|
||||||
tar -xvzf carla_doc.tar.gz
|
sh '''
|
||||||
git add Doxygen
|
tar -xvzf carla_doc.tar.gz
|
||||||
git commit -m "Updated c++ docs" || true
|
git add Doxygen
|
||||||
git push
|
git commit -m "Updated c++ docs" || true
|
||||||
'''
|
git push
|
||||||
|
'''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
post
|
post
|
||||||
{
|
{
|
||||||
|
@ -203,13 +205,14 @@ pipeline
|
||||||
{
|
{
|
||||||
checkout scmGit(branches: [[name: '*/ruben/jenkins_migration']], extensions: [checkoutOption(120), cloneOption(noTags:false, reference:'', shallow: false, timeout:120)], userRemoteConfigs: [[credentialsId: 'github_token_as_pwd_2', url: 'https://github.com/carla-simulator/carla-simulator.github.io.git']])
|
checkout scmGit(branches: [[name: '*/ruben/jenkins_migration']], extensions: [checkoutOption(120), cloneOption(noTags:false, reference:'', shallow: false, timeout:120)], userRemoteConfigs: [[credentialsId: 'github_token_as_pwd_2', url: 'https://github.com/carla-simulator/carla-simulator.github.io.git']])
|
||||||
unstash name: 'carla_docs'
|
unstash name: 'carla_docs'
|
||||||
|
withCredentials([gitUsernamePassword(credentialsId: 'github_token_as_pwd_2', gitToolName: 'git-tool')]) {
|
||||||
sh '''
|
sh '''
|
||||||
tar -xvzf carla_doc.tar.gz
|
tar -xvzf carla_doc.tar.gz
|
||||||
git add Doxygen
|
git add Doxygen
|
||||||
git commit -m "Updated c++ docs" || true
|
git commit -m "Updated c++ docs" || true
|
||||||
git push
|
git push
|
||||||
'''
|
'''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
post
|
post
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue