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

Update .gitlab-ci.yml file, add Alternaria model

parent 62c5525b
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ variables:
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository -Dmaven.artifact.threads=10"
MAIN_BRANCH: "main"
RELEASE_BRANCH: "release"
ALTERNARIA_PROJECT_ID: "173"
APPLESCABM_PROJECT_ID: "20"
MAMESTRABR_PROJECT_ID: "31"
PSILARTEMP_PROJECT_ID: "37"
......@@ -44,6 +45,18 @@ deploy-snapshot:
# 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.
verify_model_ALTERNARIA:
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_ALTERNARIA" -t $MAIN_BRANCH $ALTERNARIA_PROJECT_ID -e VERSION=$PROJECT_VERSION
tags:
- vips-java
rules:
- if: '$CI_COMMIT_REF_NAME == $MAIN_BRANCH'
verify_model_APPLESCABM:
stage: verify
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