Skip to content
Snippets Groups Projects
Verified Commit 812174ed authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: pipeline

parent 82f48d15
No related branches found
No related tags found
No related merge requests found
...@@ -22,11 +22,12 @@ ...@@ -22,11 +22,12 @@
# ** end header # ** end header
# #
# TODO set DEPLOY_REF to dev after merge of f-feature-branch-pipeline
variables: variables:
CI_REVISION: f-versioning DEPLOY_REF: f-feature-branch-pipeline
CI_DEPLOY_BRANCH: f-versioning
CI_REGISTRY_IMAGE: $CI_REGISTRY/caosdb/caosdb-server/caosdb-server-testenv:latest CI_REGISTRY_IMAGE: $CI_REGISTRY/caosdb/caosdb-server/caosdb-server-testenv:latest
image: $CI_REGISTRY_IMAGE
stages: stages:
- setup - setup
- test - test
...@@ -53,7 +54,6 @@ build-testenv: ...@@ -53,7 +54,6 @@ build-testenv:
# Test: run unit tests of the server # Test: run unit tests of the server
test: test:
tags: [ docker ] tags: [ docker ]
image: $CI_REGISTRY_IMAGE
stage: test stage: test
script: script:
- mvn -v - mvn -v
...@@ -67,13 +67,11 @@ test: ...@@ -67,13 +67,11 @@ test:
# Deploy: Trigger building of server image and integration tests # Deploy: Trigger building of server image and integration tests
trigger_build: trigger_build:
tags: [ docker ] tags: [ docker ]
image: $CI_REGISTRY_IMAGE
stage: deploy stage: deploy
script: script:
- /usr/bin/curl -X POST - /usr/bin/curl -X POST
-F token=$DEPLOY_TRIGGER_TOKEN -F token=$DEPLOY_TRIGGER_TOKEN
-F "variables[CI_REVISION]=$CI_REVISION"
-F "variables[SERVER]=$CI_COMMIT_REF_NAME" -F "variables[SERVER]=$CI_COMMIT_REF_NAME"
-F "variables[TriggerdBy]=SERVER" -F "variables[TriggerdBy]=SERVER"
-F "variables[TriggerdByHash]=$CI_COMMIT_SHORT_SHA" -F "variables[TriggerdByHash]=$CI_COMMIT_SHORT_SHA"
-F ref=$CI_DEPLOY_BRANCH https://gitlab.indiscale.com/api/v4/projects/14/trigger/pipeline -F ref=$DEPLOY_REF https://gitlab.indiscale.com/api/v4/projects/14/trigger/pipeline
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment