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

50
Jenkinsfile vendored
View File

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