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

Update .gitlab-ci.yml file, add verify_model_applescabm

parent f8e750cd
Branches
Tags
No related merge requests found
...@@ -10,9 +10,9 @@ variables: ...@@ -10,9 +10,9 @@ variables:
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository -Dmaven.artifact.threads=10" MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository -Dmaven.artifact.threads=10"
MAIN_BRANCH: "main" MAIN_BRANCH: "main"
RELEASE_BRANCH: "release" RELEASE_BRANCH: "release"
APPLESCABM_PROJECT_ID: "20"
MAMESTRABR_PROJECT_ID: "31" MAMESTRABR_PROJECT_ID: "31"
PSILARTEMP_PROJECT_ID: "37" PSILARTEMP_PROJECT_ID: "37"
APPLESCABM_PROJECT_ID: "20"
cache: cache:
paths: paths:
- .m2/repository/ - .m2/repository/
...@@ -44,6 +44,18 @@ deploy-snapshot: ...@@ -44,6 +44,18 @@ 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_APPLESCABM:
stage: verify
image: registry.gitlab.com/finestructure/pipeline-trigger
script:
- apk add --no-cache openjdk11
- 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_APPLESCABM" -t $MAIN_BRANCH $APPLESCABM_PROJECT_ID -e VERSION=$PROJECT_VERSION
tags:
- vips-java
rules:
- if: '$CI_COMMIT_REF_NAME == $MAIN_BRANCH'
verify_model_MAMESTRABR: verify_model_MAMESTRABR:
stage: verify stage: verify
image: registry.gitlab.com/finestructure/pipeline-trigger image: registry.gitlab.com/finestructure/pipeline-trigger
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment