Include path to docker-compose.yaml for docs build
Jenkins runs each sh command in a separate sub-shell, this caused the
wrong docker-compose file to run during the "Build documentation" stage.
Here we specific the docket-compose.yaml explicitly.
@@ -81,10 +81,8 @@ node ('master') {
}
stage ("Build documentation") {
- sh 'cd docs'
- sh 'docker-compose up'
- sh 'docker-compose down'
- sh 'cd ..'
+ sh 'docker-compose -f docs/docker-compose.yaml up'
+ sh 'docker-compose -f docs/docker-compose.yaml down'
}
stage("Archive Build artifacts") {
