Skip to content
Snippets Groups Projects
Commit bdc36881 authored by Alfin Johny's avatar Alfin Johny
Browse files

Fix issues in cloning libraries

parent 3b4f457b
No related branches found
No related tags found
2 merge requests!55[WEBPAGE] Update style of current unicado page,!17Integrate mkdoxy in CI pipeline
......@@ -34,8 +34,11 @@ clone:
# Clone the aircraft-design repository, including its submodules
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@git.rwth-aachen.de/unicado/aircraft-design
- cd aircraft-design || { echo "Directory not found! Exiting..."; exit 1; }
- ls -l aircraft-design
# Clone the libraries repository, including its submodules
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@git.rwth-aachen.de/unicado/libraries
- cd libraries || { echo "Directory not found! Exiting..."; exit 1; }
- ls -l libraries
# Change to the project directory (useful for multi-directory repositories)
- cd $CI_PROJECT_DIR
......@@ -43,6 +46,7 @@ clone:
# Save the generated documentation as artifacts so they can be accessed later in the pipeline
paths:
- $CI_PROJECT_DIR/aircraft-design
- $CI_PROJECT_DIR/libraries
- $CI_PROJECT_DIR/docs/documentation
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' # Run when the commit is on the default branch
......@@ -71,6 +75,8 @@ pages:
script:
# Use the persisted content from the previous stage (aircraft-design)
- cp -r $CI_PROJECT_DIR/aircraft-design $CI_PROJECT_DIR/docs/documentation # Copy content to the docs/documentation folder
- echo $CI_PROJECT_DIR # Print the value of CI_PROJECT_DIR for debugging
- cp -r $CI_PROJECT_DIR/libraries $CI_PROJECT_DIR/docs/documentation # Copy content to the docs/documentation folder
- mkdir $CI_PROJECT_DIR/docs/aircraft-xml
- python $CI_PROJECT_DIR/scripts/document_aircraft_xml.py --title General --level 1 $CI_PROJECT_DIR/scripts/CSR-02.xml > $CI_PROJECT_DIR/docs/aircraft-xml/general.md
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment