Added note about GitLab CI artifact
[Mograsim.git] / .gitlab-ci.yml
index 2753073..0108068 100644 (file)
@@ -33,11 +33,13 @@ cache:
 stages:
   - validate
   - test
+  - package_repo
 
 default:
   before_script:
+    - cd TempMavenTychoSnapshotWorkaround
     - mvn $MAVEN_CLI_OPTS clean # This is only temporary to resolve TYCHO 1.5.0-SNAPSHOT for the main build
-    - cd net.mograsim
+    - cd ..
 
 validate:
   stage: validate
@@ -49,6 +51,16 @@ test:
   script:
     - mvn $MAVEN_CLI_OPTS verify
   artifacts:
+    when: on_failure
+    expire_in: 1 week
     reports:
-      junit:
-        - tests/*/target/surefire-reports/TEST-*.xml
+      junit: tests/*/target/surefire-reports/TEST-*.xml
+
+package_repo:
+  stage: package_repo
+  when: manual
+  script: 
+    - mvn $MAVEN_CLI_OPTS verify
+  artifacts:
+    paths:
+      - releng/net.mograsim.plugin.updatesite/target/*.zip