Skip to content
Snippets Groups Projects
Commit 45790e7c authored by Lukasz Lopatowski's avatar Lukasz Lopatowski
Browse files

Added MEND config

parent ff37ed8c
Branches
No related tags found
No related merge requests found
stages:
- test
- build
- mend
test:
stage: test
......@@ -78,4 +79,20 @@ build_and_push_release_image:
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD $DOCKER_REPOSITORY
docker build -t $DOCKER_REPOSITORY_LOCAL:$IMAGE_TAG .
docker push $DOCKER_REPOSITORY_LOCAL:$IMAGE_TAG
docker logout $DOCKER_REPOSITORY
\ No newline at end of file
docker logout $DOCKER_REPOSITORY
mend:
stage: mend
image: openjdk:21-jdk-slim
only:
- /^release/
variables:
PRODUCT_NAME: "nmaas"
PROJECT_NAME: "nmaas-janitor"
script:
- |
export PRODUCT_VERSION=$(echo $CI_COMMIT_BRANCH | cut -c 9-)
export PROJECT_VERSION=$PRODUCT_VERSION
apt-get update && apt-get install -y curl
curl -LJO https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar
java -jar wss-unified-agent.jar -userKey ${MEND_USER_KEY} -apiKey ${MEND_API_KEY} -projectVersion ${PROJECT_VERSION} -project ${PROJECT_NAME} -productVersion ${PRODUCT_VERSION} -product ${PRODUCT_NAME} -c ./ws/ws.config -d ./
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment