Skip to content
Snippets Groups Projects
Commit 0b6d87e3 authored by Brita Linnestad's avatar Brita Linnestad
Browse files

Update .gitlab-ci.yml file

parent d5c398e6
No related branches found
No related tags found
No related merge requests found
...@@ -45,17 +45,17 @@ deploy-snapshot: ...@@ -45,17 +45,17 @@ deploy-snapshot:
# Runs after new SNAPSHOT is deployed to package registry. Triggers job on main branch in model repo, # Runs after new SNAPSHOT is deployed to package registry. Triggers job on main branch in model repo,
# which builds model with the new version of VIPSCommon. This pipeline fails if model build fails. # which builds model with the new version of VIPSCommon. This pipeline fails if model build fails.
verify_model_ALTERNARIA: #verify_model_ALTERNARIA:
stage: verify # stage: verify
image: registry.gitlab.com/finestructure/pipeline-trigger # image: registry.gitlab.com/finestructure/pipeline-trigger
script: # script:
- apk add --no-cache openjdk11 # - apk add --no-cache openjdk11
- export PROJECT_VERSION=$(./mvnw --batch-mode --no-transfer-progress --non-recursive help:evaluate -Dexpression=project.version | grep -v "\[.*") # - export PROJECT_VERSION=$(./mvnw --batch-mode --no-transfer-progress --non-recursive help:evaluate -Dexpression=project.version | grep -v "\[.*")
- trigger -h gitlab.nibio.no -a "$CICD_API_TOKEN" -p "$ACCESS_TOKEN_ALTERNARIA" -t $MAIN_BRANCH $ALTERNARIA_PROJECT_ID -e VERSION=$PROJECT_VERSION # - trigger -h gitlab.nibio.no -a "$CICD_API_TOKEN" -p "$ACCESS_TOKEN_ALTERNARIA" -t $MAIN_BRANCH $ALTERNARIA_PROJECT_ID -e VERSION=$PROJECT_VERSION
tags: # tags:
- vips-java # - vips-java
rules: # rules:
- if: '$CI_COMMIT_REF_NAME == $MAIN_BRANCH' # - if: '$CI_COMMIT_REF_NAME == $MAIN_BRANCH'
verify_model_APPLESCABM: verify_model_APPLESCABM:
stage: verify stage: verify
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment