test only documentation steps

This commit is contained in:
Ruben Abad 2024-01-30 13:26:53 +01:00
parent fe34fb2310
commit a22da7136a
1 changed files with 27 additions and 25 deletions

52
Jenkinsfile vendored
View File

@ -24,6 +24,7 @@ pipeline
}
stages
{
/*
stage('ubuntu setup')
{
steps
@ -161,32 +162,33 @@ pipeline
stash includes: 'carla_doc.tar.gz', name: 'carla_docs'
}
}
stage('ubuntu Doxygen upload')
{
when { anyOf { branch "master"; branch "dev"; buildingTag() } }
steps
{
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'
*/
// stage('ubuntu Doxygen upload')
// {
// when { anyOf { branch "master"; branch "dev"; buildingTag() } }
// steps
// {
// 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'
withCredentials([gitUsernamePassword(credentialsId: 'github_token_as_pwd_2', gitToolName: 'git-tool')]) {
sh '''
tar -xvzf carla_doc.tar.gz
git add Doxygen
git commit -m "Updated c++ docs" || true
git push
'''
}
}
post
{
always
{
deleteDir()
}
}
}
// withCredentials([gitUsernamePassword(credentialsId: 'github_token_as_pwd_2', gitToolName: 'git-tool')]) {
// sh '''
// tar -xvzf carla_doc.tar.gz
// git add Doxygen
// git commit -m "Updated c++ docs" || true
// git push
// '''
// }
// }
// post
// {
// always
// {
// deleteDir()
// }
// }
// }
stage('TEST: ubuntu Doxygen generation')
{
when { branch "ruben/jenkins_migration"; }