diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3b325db31791c8abbbcc9261ed528cc41caa15e5..8e1a3197ebcff9e0efc8c16afe185a708cb224ec 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,6 +4,21 @@ stages:
   - deploy
 
 build:
+  stage: build
+  tags:
+    - docker
+  image: maven:3.6.3-openjdk-14
+  script:
+    - mvn clean package -DskipTests -DfinalName=vospace-datamodel
+  artifacts:
+    paths:
+      - target/vospace-datamodel.jar
+      - pom.xml
+    expire_in: 7 days
+  only:
+    - master
+
+build-test:
   stage: build
   tags:
     - docker
@@ -18,7 +33,7 @@ build:
   only:
     - test
 
-test:
+test-test:
   stage: test
   tags:
     - docker
@@ -30,6 +45,19 @@ test:
     - test
 
 deploy:
+  stage: deploy
+  tags:
+    - docker
+  script:
+    - mvn deploy:deploy-file
+        -Dfile=target/vospace-datamodel.jar
+        -DrepositoryId=ia2.snapshots
+        -DpomFile=pom.xml
+        -Durl=${IA2_MVN_REPO_SNAPSHOTS}
+  only:
+    - master
+
+deploy-test:
   stage: deploy
   tags:
     - docker