Skip to content
Snippets Groups Projects
Commit d2a6ba11 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

build: Change variable name in model trigger

parent 5a24d5cb
No related branches found
No related tags found
No related merge requests found
......@@ -369,7 +369,7 @@ deploy-release:
- ./mvnw $MAVEN_CLI_OPTS $MAVEN_OPTS validate -DremoveSnapshot
- ./mvnw $MAVEN_CLI_OPTS $MAVEN_OPTS deploy -DskipTests
- export RELEASE_VERSION=$(./mvnw --batch-mode --no-transfer-progress --non-recursive help:evaluate -Dexpression=project.version | grep -v "\[.*")
- if [[ $VERSION =~ .*SNAPSHOT ]]; then exit 1; fi
- if [[ $RELEASE_VERSION =~ .*SNAPSHOT ]]; then exit 1; fi
- export RELEASE_TAG="v${RELEASE_VERSION}"
- git add pom.xml
- git commit -m "[ci skip] Set release version ${RELEASE_VERSION}"
......@@ -397,7 +397,7 @@ update_model_ALTERNARIA:
script:
- apk add --no-cache openjdk11
- export RELEASE_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=$RELEASE_VERSION
- trigger -h gitlab.nibio.no -a "$CICD_API_TOKEN" -p "$ACCESS_TOKEN_ALTERNARIA" -t $MAIN_BRANCH $ALTERNARIA_PROJECT_ID -e RELEASE_VERSION=$RELEASE_VERSION
tags:
- vips-java
rules:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment