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

Added Mend scanning job for release branches

parent 8a1fbdcc
No related branches found
No related tags found
1 merge request!123Develop
Pipeline #92957 passed
...@@ -2,6 +2,7 @@ stages: ...@@ -2,6 +2,7 @@ stages:
- test - test
- sonar - sonar
- build - build
- mend
test: test:
stage: test stage: test
...@@ -61,4 +62,17 @@ build_and_push_release_image: ...@@ -61,4 +62,17 @@ build_and_push_release_image:
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD $DOCKER_REPOSITORY docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD $DOCKER_REPOSITORY
docker build -t $DOCKER_REPOSITORY_LOCAL:$IMAGE_TAG . docker build -t $DOCKER_REPOSITORY_LOCAL:$IMAGE_TAG .
docker push $DOCKER_REPOSITORY_LOCAL:$IMAGE_TAG docker push $DOCKER_REPOSITORY_LOCAL:$IMAGE_TAG
docker logout $DOCKER_REPOSITORY docker logout $DOCKER_REPOSITORY
\ No newline at end of file
mend:
stage: mend
only:
- /^release/
variables:
PRODUCT_NAME: "nmaas"
PROJECT_NAME: "nmaas-platform"
script:
- |
export PRODUCT_VERSION=$(echo $CI_COMMIT_BRANCH | cut -c 9-)
export PROJECT_VERSION=$PRODUCT_VERSION
./run_ws.sh
\ No newline at end of file
...@@ -4,4 +4,4 @@ echo "Downloading WhiteSource agent..." ...@@ -4,4 +4,4 @@ echo "Downloading WhiteSource agent..."
curl -LJO https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar curl -LJO https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar
echo "Running WhiteSource scan..." echo "Running WhiteSource scan..."
java -jar wss-unified-agent.jar -userKey ${USER_KEY} -apiKey ${API_KEY} -projectVersion ${PROJECT_VERSION} -projectToken ${PROJECT_TOKEN} -productVersion ${PRODUCT_VERSION} -productToken ${PRODUCT_TOKEN} -c ws.config -d ../ 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.config -d ../
\ No newline at end of file \ 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