Skip to content
Snippets Groups Projects
Commit 66623ac1 authored by Kristina Mazur's avatar Kristina Mazur
Browse files

Fix pipeline

parent a4cb4fa5
No related branches found
No related tags found
1 merge request!73Initial open source version
Pipeline #1629799 waiting for manual action
......@@ -37,32 +37,24 @@ clone:
# clone repos
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@git.rwth-aachen.de/unicado/aircraft-design
- cd aircraft-design
# Clone libraries inside the aircraft-design directory
- git clone --recurse-submodules https://gitlab-ci-token:${CI_JOB_TOKEN}@git.rwth-aachen.de/unicado/libraries lib
# Change to the project directory (useful for multi-directory repositories)
- git clone --recurse-submodules https://gitlab-ci-token:${CI_JOB_TOKEN}@git.rwth-aachen.de/unicado/libraries libs/
# Change to the project directory (useful for multi-directory repositories)
- cd $CI_PROJECT_DIR
- ls -la $CI_PROJECT_DIR
artifacts:
# 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
exclude:
- docs/**/latex # Exclude LaTeX-generated files
- docs/**/man # Exclude manual pages if not needed
- docs/**/rtf # Exclude RTF output if not needed
- docs/**/xml # Exclude XML files if they are not required
- docs/**/tmp # Exclude temporary files
- docs/**/dot # Exclude Graphviz DOT files
expire_in: 1 day # Keep artifacts only for 1 day
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' # Run when the commit is on the default branch
when: on_success # Only run if the previous jobs are successful
- if: '$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH' # Allow manual triggers on non-default branches
when: manual # Run only when triggered manually
- if: '$CI_PIPELINE_SOURCE == "trigger"' # Triggered by another pipeline
when: on_success # Run if the source pipeline was successful
when: on_success # Run if the source pipeline was successful
# === Build and deploy the website ===
pages:
image: python:latest
......@@ -91,6 +83,4 @@ pages:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' # Run when the commit is on the default branch
when: on_success # Only run if the previous jobs are successful
- if: '$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH' # Allow manual triggers on non-default branches
when: manual # Run only when triggered manually
- if: '$CI_PIPELINE_SOURCE == "trigger"' # Triggered by another pipeline
when: on_success # Run if the source pipeline was successful
\ No newline at end of file
when: manual # Run only when triggered manually
\ No newline at end of file
This diff is collapsed.
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