Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nmaas Portal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nmaas
nmaas Portal
Commits
2b999125
Commit
2b999125
authored
3 months ago
by
Lukasz Lopatowski
Browse files
Options
Downloads
Patches
Plain Diff
Added Mend scanning CI job
parent
99785af8
No related branches found
No related tags found
3 merge requests
!184
Develop
,
!119
Develop
,
!116
Develop
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+23
-1
23 additions, 1 deletion
.gitlab-ci.yml
ws/run_ws.sh
+0
-7
0 additions, 7 deletions
ws/run_ws.sh
with
23 additions
and
8 deletions
.gitlab-ci.yml
+
23
−
1
View file @
2b999125
...
...
@@ -2,6 +2,7 @@ stages:
-
test
-
sonar
-
build
-
mend
test
:
stage
:
test
...
...
@@ -64,4 +65,25 @@ 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:17-jdk-slim
only
:
-
/^release/
variables
:
PRODUCT_NAME
:
"
nmaas"
PROJECT_NAME
:
"
nmaas-portal"
script
:
-
|
export PRODUCT_VERSION=$(echo $CI_COMMIT_BRANCH | cut -c 9-)
export PROJECT_VERSION=$PRODUCT_VERSION
apt-get update && apt-get install -y curl gnupg
curl -sL https://deb.nodesource.com/setup_11.x | bash -
apt-get -y install nodejs
npm install -g @angular/cli
npm ci
chmod +x ./gradlew
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
This diff is collapsed.
Click to expand it.
ws/run_ws.sh
deleted
100644 → 0
+
0
−
7
View file @
99785af8
#!/bin/sh
echo
"Downloading WhiteSource agent..."
curl
-LJO
https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar
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
../
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment